-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az webapp deloy failure with az cli 2.70 & 2.71 version #31405
Description
Describe the bug
We recently upgraded our az-cli image from 2.58 to 2.70 and we noticed that there are some additional steps added when running az webapp deploy.
With 2.58 we are seeing:
- az webapp deploy --name app-sat-snw-dev-cus --resource-group rg-sns-deva51-centralus --type jar --src-path /__w/sat-notification-web/sat-notification-web/sat-notification-web/deploy.jar
WARNING: Initiating deployment
WARNING: Deploying from local path: /__w/sat-notification-web/sat-notification-web/sat-notification-web/deploy.jar
WARNING: Deployment has completed successfully
WARNING: You can visit your app at: http://app-sat-snw-dev-cus.azurewebsites.net/
But with 2.70/2.71 we are seeing
- az webapp deploy --name app-sat-snw-dev-cus --resource-group rg-sns-deva51-centralus --enable-kudu-warmup false --restart false --type jar --src-path /__w/sat-notification-web/sat-notification-web/sat-notification-web/deploy.jar
WARNING: Initiating deployment
WARNING: Deploying from local path: /__w/sat-notification-web/sat-notification-web/sat-notification-web/deploy.jar
WARNING: Polling the status of sync deployment. Start Time: 2025-05-05 13:16:01.208729+00:00 UTC
WARNING: Status: Build successful. Time: 1(s)
WARNING: Status: Starting the site... Time: 16(s)
...
ERROR: Deployment failed because the site failed to start within 10 mins.
InprogressInstances: 0, SuccessfulInstances: 0, FailedInstances: 1
Error: Deployment for site 'app-sat-snw-dev-cus' with DeploymentId '4479f21f-a413-4b37-b148-060b644ffed7' failed because the worker proccess failed to start within the allotted time.
Please check the runtime logs for more info: https://app-sat-snw-dev-cus.scm.azurewebsites.net/api/logs/docker
At the same time, the app service will jump to 100% cpu and I can no longer deploy. I have to switch back to 2.58 to redeploy.
I tried to disable both --enable-kudo-warmup false and --restart false but still having the same result.
Is there a fix or a workaround that I can skip this "Starting the site" step?
Thanks
Related command
az webapp deploy --name app-sat-snw-dev-cus --resource-group rg-sns-deva51-centralus --enable-kudu-warmup false --restart false --type jar --src-path /__w/sat-notification-web/sat-notification-web/sat-notification-web/deploy.jar
Errors
ERROR: Deployment failed because the site failed to start within 10 mins.
InprogressInstances: 0, SuccessfulInstances: 0, FailedInstances: 1
Error: Deployment for site 'app-sat-snw-dev-cus' with DeploymentId '4479f21f-a413-4b37-b148-060b644ffed7' failed because the worker proccess failed to start within the allotted time.
Please check the runtime logs for more info: https://app-sat-snw-dev-cus.scm.azurewebsites.net/api/logs/docker
Issue script & Debug output
N/A
Expected behavior
az webapp deploy ran successfully.
Environment Summary
azure-cli 2.70.0 *
core 2.70.0 *
telemetry 1.1.0
Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1
Python location '/usr/bin/python3.12'
Config directory '/github/home/.azure'
Extensions directory '/github/home/.azure/cliextensions'
Python (Linux) 3.12.9 (main, Mar 11 2025, 15:30:57) [GCC 13.2.0]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response