Azure-Samples/aks-store-demo

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

zhangjiale-64 opened this issue · 2 comments

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

Environment:

  • OS: Dev Container , Codespace
  • azd version: 1.5.1 (commit 3856d1e98281683b8d112e222c0a7c7b3e148e96)

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.

@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 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.