Skip to content
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

AZD Remote environment with Terraform local backend #4756

Open
HadwaAbdelhalem opened this issue Feb 3, 2025 · 0 comments
Open

AZD Remote environment with Terraform local backend #4756

HadwaAbdelhalem opened this issue Feb 3, 2025 · 0 comments
Labels
remote-env Remote environments
Milestone

Comments

@HadwaAbdelhalem
Copy link
Contributor

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

Wen using Terraform as IaC deployment tool, there are env specific additional files withing (.terraform) folder that gets created inside the .azure/ 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: saazdremotestate
     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
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

No branches or pull requests

2 participants