Open andreigorgan opened 4 months ago
Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions.
Note that the Azure backend is maintained by the AzureRM provider team, who primarily work out of the terraform-provider-azurerm
repository and have their own prioritization process and schedule.
Thanks again!
Terraform Version
Use Cases
According to azurerm provider docs, the azurerm provider supports service principal authentication with the ARM_CLIENT_CERTIFICATE env var (base64 encoded .pfx file contents).
It would be great if azure remote state backend would support that too.
Attempted Solutions
Here is an example of the backend configuration used:
Example of environment variables used:
Outputed logs from
terraform init
:As you can see Service Principal / Client Certificate authentication is not used.
Proposal
I am guessing that the starting point would be to add a property in the schema here: https://github.com/hashicorp/terraform/blob/5868f994139db04a5f6989491f1dbb84486873ac/internal/backend/remote-state/azure/backend.go#L112
References
Same was proposed for azurerm provider: https://github.com/hashicorp/terraform-provider-azurerm/issues/17741