Skip to content

Commit

Permalink
Merge branch 'main' into ross/defaultApplicationAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-p-smith authored Jun 9, 2022
2 parents 322ba61 + 559d061 commit f6c1618
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/core/terraform/identity.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ resource "azurerm_role_assignment" "vm_contributor" {
principal_id = azurerm_user_assigned_identity.id.principal_id
}

resource "azurerm_role_assignment" "billing_reader" {
scope = data.azurerm_subscription.current.id
role_definition_name = "Billing Reader"
principal_id = azurerm_user_assigned_identity.id.principal_id
}

resource "azurerm_role_assignment" "acrpull_role" {
scope = data.azurerm_container_registry.mgmt_acr.id
role_definition_name = "AcrPull"
Expand All @@ -37,3 +43,4 @@ resource "azurerm_role_assignment" "cosmos_contributor" {
role_definition_name = "Contributor"
principal_id = azurerm_user_assigned_identity.id.principal_id
}

0 comments on commit f6c1618

Please sign in to comment.