Skip to content

Instantly share code, notes, and snippets.

@spy86
Created April 29, 2026 09:06
Show Gist options
  • Select an option

  • Save spy86/a90f392ac76a5bcf17e16cc4f418f238 to your computer and use it in GitHub Desktop.

Select an option

Save spy86/a90f392ac76a5bcf17e16cc4f418f238 to your computer and use it in GitHub Desktop.
resource "azurerm_role_assignment" "ra" {
scope = azurerm_resource_group.rg.id
role_definition_name = "Reader"
principal_id = data.azurerm_client_config.current.object_id
}
resource "azurerm_storage_account" "sa_dep" {
name = local.storage_name
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
account_tier = "Standard"
account_replication_type = "LRS"
depends_on = [azurerm_role_assignment.ra]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment