Some checks failed
check agents / check (push) Failing after 13s
The cp1-solution-architecture-agent and the sa-aws/azure/gcp-cloud MCP servers, a separate stream from the individual and sub-agent patterns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
631 B
631 B
Managed identity and role assignment
Give a workload a user-assigned identity, and grant its role at the narrowest scope. scope here is one storage account's id.
variable "storage_account_id" {
type = string
}
resource "azurerm_user_assigned_identity" "app" {
name = "id-app"
location = var.location
resource_group_name = var.resource_group_name
}
resource "azurerm_role_assignment" "app_blob_reader" {
scope = var.storage_account_id
role_definition_name = "Storage Blob Data Reader"
principal_id = azurerm_user_assigned_identity.app.principal_id
}