We are, sporadically, seeing problems that we cannot deploy code to our AppService, even though that the ARM deployment of the AppService has finished. This is only a problem the first time when deploying an AppService - retrying the pipeline that fails with the deployment has fixed the problem so far. Once the AppService has been deployed (ARM + code) the first time, we have not seen the problem afterwards. But as we are deploying a lot of new services on a daily basis in our CI/CD pipelines for testing purposes, this causes some noise.
And we are using the following Azure DevOps pipeline task for the deployment (https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/AzureWebAppV1):
task: AzureWebApp@1
displayName: Azure WebApp Deployment
inputs:
azureSubscription: 00000000-0000-0000-0000-000000000000
appType: webApp
appName: anonymizedAppServiceName
package: anonymizedAppServiceName.zip
deploymentMethod: runFromPackage
from which we get the following error:
"Resource 'anonymizedAppServiceName' doesn't exist. Resource should exist before deployment."
We have in one concrete case observed the following timings:
ARM Deployment: 16:13:52 -> 16:15:01
Code Deployment: 16:15:31 -> 16:15:47
But looking at the activity log for the WebApp, we are seeing activity even after the ARM deployment has finished:
"Update website": 16:14:18
"Update website": 16:14:40
"Update website": 16:24:23
Are we doing something wrong here? It seems that the AppService is not fully provisioned and ready for code deployment, even if the ARM deployment has completed?
