Azure-Samples / aks-store-demo

Sample microservices app for AKS demos, tutorials, and experiments
MIT License
143 stars 225 forks source link

Failed to run ''azd up" command in Dev Container and Codespace #92

Closed zhangjiale-64 closed 7 months ago

zhangjiale-64 commented 7 months ago

Describe the issue: When runningazd up in Dev Container and Codespace , get error as follow: image

Environment:

Repro Steps:

  1. Clone the repo to local and reopen with Dev Container and Codespace.
  2. Run azd auth login.
  3. Run azd up .

Expected behavior: Run azd up can pass in Dev Container and Codespace.

@hemarina and @pauldotyu for notification.

pauldotyu commented 7 months ago

@zhangjiale-64 thanks for testing and submitting this issue. Unfortunately azd auth login is not enough. Terraform requires Azure CLI login context, so in addition to azd auth login you should do az login and it will work.

zhangjiale-64 commented 7 months ago

@zhangjiale-64 thanks for testing and submitting this issue. Unfortunately azd auth login is not enough. Terraform requires Azure CLI login context, so in addition to azd auth login you should do az login and it will work.

@pauldotyu After do az login and it works. This issue will no longer be reproduced and we will close this issue.