Support for the Data Source for azurerm_storage_account to be able to pull the managed identity #17171
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Community Note
Description
Aim is to get the managed identity value from an already created storage account.
Current behavior is :
If the storage is initiated within the same deployment then the managed identity can be accessed via :
azurerm_storage_account.example.identity.0.principal_id
This value can be pulled out of the azure cli response regarding the storage
Potential fix:
Addition of identity block to the azurerm_storage_account data source.
New or Affected Resource(s)/Data Source(s)
azurerm_storage_account
Potential Terraform Configuration
References
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/storage_account
The text was updated successfully, but these errors were encountered: