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:
Environment:
- OS: Dev Container , Codespace
- azd version: 1.5.1 (commit 3856d1e98281683b8d112e222c0a7c7b3e148e96)
Repro Steps:
- Clone the repo to local and reopen with Dev Container and Codespace.
- Run
azd auth login
. - 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 toazd auth login
you should doaz 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.