[Azure Bicep Deploy Issue] Error while attempting to retrieve the latest Bicep version: ('Connection aborted.'

Henry Zhang 206 Reputation points
2023-05-12T03:29:08.67+00:00

User's image

Hello,

We are deploying to azure via Azure devops server release pipeline, the release was successful before. But when we tried again tonight, we got this error. We are running the Azure cli deploy command based on a bicep file.

az deployment group creat --template-file "XXXX.bicep" (other parameters as well, we got the right syntax)

Error we got:
ERROR: Error while attempting to retrieve the latest Bicep version: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)).

From the error message, looks like we can not download the newest version of Bicep.

Does anyone know why? Maybe an issue on Azure's side?

Btw, there is no tag for "Bicep" when I create this Q

Thanks

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,298 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nagesh ajab 0 Reputation points
    2024-07-14T12:52:45.4+00:00

    run command prompt/ powershell/ VS code with administrator rights and then it will work

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.