Use this data source to access information about an existing Storage Encryption Scope.
data "azurerm_storage_account" "example" {
name = "storageaccountname"
resource_group_name = "resourcegroupname"
}
data "azurerm_storage_encryption_scope" "example" {
name = "existingStorageES"
storage_account_id = data.azurerm_storage_account.example.id
}
output "id" {
value = data.azurerm_storage_encryption_scope.example.id
}
The following arguments are supported:
name
- (Required) The name of this Storage Encryption Scope.
storage_account_id
- (Required) The ID of the Storage Account where this Storage Encryption Scope exists.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Storage Encryption Scope.
key_vault_key_id
- The ID of the Key Vault Key.
source
- The source of the Storage Encryption Scope.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Storage Encryption Scope.