Azure / awesome-azd

An awesome list that curates content (articles, videos, tutorials and docs) and templates (ready to use) for the Azure Developer CLI (`azd`). Plus a hosted azd-templates Gallery to simplify search & discovery
https://aka.ms/awesome-azd
MIT License
141 stars 70 forks source link

Missing Command from Terraform Templates #332

Open john0isaac opened 3 months ago

john0isaac commented 3 months ago

Any terraform template should have the command az login or az login --use-device-code for successful deployment.

If you only run azd auth login you get an error during the provisioning stage that it failed to authenticate and you need to run az login

Example affected repo: https://github.com/Azure-Samples/todo-python-mongo-terraform

The right steps are found here on my repo: https://github.com/john0isaac/simple-flask-app-terraform

I guess this can be fixed by azd team but for now, there needs to be a step where people authenticate with az until this is fixed.