Bicep deployment with Azure CLI

Dale Godfredson 221 Reputation points
2022-06-01T02:35:51.237+00:00

Trying to deploy a bicep file using Azure CLI as follows

az deployment sub create --location australiasoutheast --template-file main.bicep 

Deployed successfully the first time but every time I attempt it now it returns:

Please provide string value for 'location' (? for help):

It will run but I need to re-enter the location that is specified above.

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
260 questions
0 comments No comments
{count} votes

Accepted answer
  1. srbhatta-MSFT 8,546 Reputation points Microsoft Employee
    2022-06-04T19:29:09.243+00:00

    Hello @Dale Godfredson ,
    Thanks for reaching out to Microsoft QnA. Happy to answer your question.
    Yes, you will have to provide the location every time you create a deployment.
    Does that answer your query? Please feel free to reach back if you have any questions and tag me in your reply. Thank You.

    0 comments No comments

0 additional answers

Sort by: Most helpful