Azure-cli: Could not create Python app from CLI with `az webapp up`

Created on 17 Dec 2019  路  11Comments  路  Source: Azure/azure-cli

Could not complete "Quickstart: Create a Python app in Azure App Service on Linux". I obtained the following error when deploying the app.

Deployment endpoint responses with status code 503
Deployment status endpoint https://mypytest.scm.azurewebsites.net/api/deployments/latest returns malformed data. Retrying...

Command Name
az webapp up

Errors:

HTTPSConnectionPool(host='luisazuretest.scm.azurewebsites.net', port=443): Max retries exceeded with url: /api/deployments/latest (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x068173F0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
Traceback (most recent call last):
pip-install-t7say61i\urllib3\urllib3\connection.py, ln 159, in _new_conn
urllib3\urllib3\util\connection.py, ln 57, in create_connection
Azure\CLI2\lib\socket.py, ln 745, in getaddrinfo
...
pip-install-mjd5h3hf\requests\requests\sessions.py, ln 646, in send
pip-install-mjd5h3hf\requests\requests\adapters.py, ln 516, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='luisazuretest.scm.azurewebsites.net', port=443): Max retries exceeded with url: /api/deployments/latest (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x068173F0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))

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 --sku F1 -n mypytest -l francecentral

Expected Behavior

Environment Summary

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

azure-cli 2.0.77

Additional Context


Service Attention Web Apps

Most helpful comment

Should reopen. Still a problem.

All 11 comments

can you please re-try & let us know if this still persists?

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI @antcp

@panchagnula Thanks. 馃槃

Closing this since there has been no update on this for more than 3 days. Please re-activate if this is still not resolved. Thanks!

I got the same error by using Azure CLI on CMD. And try to run many times it could not be resolved. Please suggest me to solve this problem.

Thank you.

image

image

I got the same error by using Azure CLI on CMD. And try to run many times it could not be resolved. Please suggest me to solve this problem.

Thank you.

image

image

I had the same error when running "az webapp up ..." and the issue was the location of an endpoint. Try "az account list-locations" and select the location that's the closest as possible to your location. I hope this helps !

Should reopen. Still a problem.

Getting the same problem here

@outforpublic if you are still seeing a problem here could you please file a new issue - the existing bug was fixed a while back so the root cause might be different if you are seeing this.

Hey guys! This worked for me:

I first did a zip of my app, afterwards I used this command instead for the deployment:

az webapp deployment source config-zip --resource-group --name --src clouddrive/.zip

Hope it works for you!

https://docs.microsoft.com/en-us/azure/app-service/deploy-zip

I got the same error by using Azure CLI on CMD. And try to run many times it could not be resolved. Please suggest me to solve this problem.
Thank you.
image
image

I had the same error when running "az webapp up ..." and the issue was the location of an endpoint. Try "az account list-locations" and select the location that's the closest as possible to your location. I hope this helps !

This worked for me, I'm located in central europe and by default the az webapp up command creates the resource group in US so you have to explicitly state the location for example
--location westeurope

After rerunning with the --location option it worked

Was this page helpful?
0 / 5 - 0 ratings