fujiwara / tfstate-lookup

Lookup resource attributes in tfstate.
Mozilla Public License 2.0
97 stars 21 forks source link

Feature Request: Azure - Support AAD Auth #143

Closed jkroepke closed 11 months ago

jkroepke commented 1 year ago

Please add support for use_azuread_auth (+ parameter on the URL)

https://developer.hashicorp.com/terraform/language/settings/backends/azurerm#use_azuread_auth

Here is an example to authenticate without using a Storage Account Key (https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/storage/azblob/blob/examples_test.go#authenticate-the-client)

and azidentity.NewDefaultAzureCredential(nil) is already used.

https://github.com/fujiwara/tfstate-lookup/blob/b2cc81e5c97df6328e3f30a4fd0c9ea095b93d9e/tfstate/remote_azurerm.go#L102