Azure / Azure/azure-dev

Missing Command from Terraform Templates

Open
#7,386 8 comments 0 reactions 1 assignee Assigned to @alexwolfmsft View on GitHub
area/docs area/terraform customer-reported needs-team-attention question
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.