azure-cli: az webapp up ZIP deployment fails

Per guidance from your team concerning a known issue with az webapp up, I downgraded to 2.0.75. However, the ZIP deployment of my webapp fails (although checking in my Azure portal, the app service is successfully created).

Thank you.

Command Name az webapp up

Errors:

Zip deployment failed. {'id': '9aa4f222956f41579af84b2832bff1be', 'status': 3, 'status_text': '', 'author_email': 'N/A', 'author': 'N/A', 'deployer': 'Push-Deployer', 'message': 'Created via a push deployment', 'progress': '', 'received_time': '2019-11-16T03:22:35.7796793Z', 'start_time': '2019-11-16T03:22:35.9229355Z', 'end_time': '2019-11-16T03:22:36.3614476Z', 'last_success_end_time': None, 'complete': True, 'active': False, 'is_temp': False, 'is_readonly': True, 'url': 'https://kaboom201911152.scm.azurewebsites.net/api/deployments/latest', 'log_url': 'https://kaboom201911152.scm.azurewebsites.net/api/deployments/latest/log', 'site_name': 'kaboom201911152'}. Please run the command az webapp log tail
                           -n kaboom201911152 -g contoso-travel-rg

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az webapp up -n {} --resource-group {} --location {}

Expected Behavior

Environment Summary

Windows-10-10.0.17763-SP0
Python 3.6.6
Shell: cmd.exe

azure-cli 2.0.71 *

Additional Context

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 30 (12 by maintainers)

Most upvoted comments

closing due to lack of activity - please reactivate if you are still seeing this with the latest version of CLI. Thanks!

closing this since the original issue was fixed. Please create new issue if some one is still seeing this with the latest CLI version. Thanks!

@iddqdiddqd & all I am sorry for the experience with zip deploy & all of you helping each other with suggestions. The error indicates a run time issue with Zip deploy itself, & not the command specific problem. Ideally command & CLI would do a better job surfacing the errors - we are working the team that owns deployments, to surface these logs better & also make deployment handle zip files created by various tools (tar as well). While we don’t have an ETA yet, please expect some improvements next release starting with changes to az webapp deploy command https://docs.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest#az-webapp-deploy, which uses a New API for deployment. @StrawnSC FYI

I stop the webapp, and deploy, and works for me.

I have the same issue when following the exercises in this learning path: https://docs.microsoft.com/en-us/learn/modules/host-a-web-app-with-azure-app-service/ . I don’t know if the location has anything to do with the issue, but I am trying to access the Central US location (since that is the one in the Sandbox environment) from the Netherlands. After creating the webapp, instead of getting the default python webapp result, I get The service is unavailable. after browsing to the website. Then after attempting to do a manual az webapp up (as described in a later exercise in the module), I get a 503 similar to the above. Needless to say, browsing to the website still returns The service is unavailable.