Skip to content

AZD Remote environment with Terraform local backend #4756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
HadwaAbdelhalem opened this issue Feb 3, 2025 · 0 comments · May be fixed by #4973
Open

AZD Remote environment with Terraform local backend #4756

HadwaAbdelhalem opened this issue Feb 3, 2025 · 0 comments · May be fixed by #4973
Assignees
Labels
remote-env Remote environments
Milestone

Comments

@HadwaAbdelhalem
Copy link
Contributor

HadwaAbdelhalem commented Feb 3, 2025

When AZD is configured to use Remote environment, it stores the environment related files in the storage account.

Using Terraform as IaC deployment tool, there are env specific additional files withing (.terraform) folder that gets created inside the .azure/ENVNAME folder like state files, and plan files used for the deployment folder. These files need to be stored to the env files in the storage account as well to be able to have the same consistent deployment details and state file available when using different vms as the files now stored globally and not locally on the machine.

Repro step:

name: azd-project-name
state:
 remote:
   backend: AzureBlobStorage
   config:
     accountName: azdremotestate
     containerName: myproject # Defaults to project name if not specified
  • Run azd up cmd to deploy the app and infrastructure.
  • Check the storage account for the environment. the state files are not there
@rajeshkamal5050 rajeshkamal5050 added the remote-env Remote environments label Feb 4, 2025
@rajeshkamal5050 rajeshkamal5050 added this to the Backlog milestone Feb 4, 2025
@HadwaAbdelhalem HadwaAbdelhalem self-assigned this Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
remote-env Remote environments
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants