Linux Azure App Service ARM Template with ZipDeploy Fails Due To Container Restart

Pete 0 Reputation points
2024-11-19T15:39:11.92+00:00

I have an ARM template to deploy an Azure App Service on Linux/Node 20. I am using ZipDeploy configured within the ARM template to deploy the application code as shown below.

The deployment successfully triggers, however, the container restarts while the deployment is occurring. The container logs do not supply any reason for the restart. What am I missing to get the deploy to be able to complete successfully?

2024-11-19T14:28:35.1779343Z Container start method finished after 5194 ms.
2024-11-19T14:29:03.3959268Z Container is terminating. Grace period: 0 seconds.
	"type": "Microsoft.Web/sites/extensions",
	"apiVersion": "2024-04-01",
	"name": "[concat(parameters('webAppName'), '/ZipDeploy')]",
    "properties": {
		"packageUri": "https://validurl/to/zipfile.zip",
		"appOffline": true 
    },
    "dependsOn": [
        "[resourceId('Microsoft.Web/sites', parameters('webAppName'))]"
    ]
}
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,003 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.