Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.3k views
in Technique[技术] by (71.8m points)

azure - AzureResponseError: Operation returned an invalid status code 'Unauthorized'

I have cloned my app from GitHub into the Azure shell. When I tried to create and deploy the webapp I am facing few errors. First I tried az webapp up -n newappname and I got the below error

enter image description here

Then I created a web app myself in the portal and just tried deploying it from Azure shell using the command az webapp up -n newappname_createdatportal. I got the below error

enter image description here

Any suggestions here will be much appreciated!

question from:https://stackoverflow.com/questions/65836339/azureresponseerror-operation-returned-an-invalid-status-code-unauthorized

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It seems it was a bug for old Azure CLI version, run az upgrade --yes and restart your prompt solve the problem for me.

Here are something to notice:

  1. my Azure CLI version: 2.18.0

  2. the command I use:

    az upgrade --yes
    #restart session and run this for authorizing
    az login 
    az webapp up -n webappnamecreated
    

Here is the reproduce screenshot: enter image description here

Here is the successful screenshot: enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...