Open petr-stupka opened 2 weeks ago
@wbreza can you take a look?
@petr-stupka Based on your configuration it looks like you are attempting to use the AZD remote state configuration also as your remote storage configuration for terraform.
There isn't any reason you could not use the same Azure storage account for both Terraform remote state and AZD remote environment state but right now this would require a bit more configuration.
Take a look at the Terraform configuration feature docs which outlines the required environment variables that you will need to set.
If you also want to use AZD remote environments take a look at the Remote environments feature docs.
Hi @wbreza sorry for the delay. The TF remote state is working fine for terraform. What is not working is to save the AZD remote environments on the same remote storage.
Output from
azd version
\ azd version 1.8.1Describe the bug
Configured remote env state like this (also tried to define the
containerName
)And following error is returned:
To Reproduce Using terraform-starter template
Expected behavior This should work. I'm Owner of the Subscription, also have RBAC roles
Storage Blob Data Owner
and tried to addStorage Blob Data Contributor
just to be on the safe sideEnvironment Information on your environment:
Additional Context I found this issue related to failing test > https://github.com/Azure/azure-dev/issues/3669 I assume the issue was not the test, but the AZD code and the test failed due to issue i'm facing now