skip to Main Content

How to assign Global Administrator role to a Service Principal in Azure?

I can assign the owner role to a service principal # Assign Owner Permission to the Service Principal resource "azurerm_role_assignment" "sp-tenant-global-admin-role-assignment" { scope = "subscriptions/${data.azurerm_client_config.current.subscription_id}" role_definition_name = "Owner" principal_id = azuread_service_principal.sp-tenant-global-admin.object_id } However, I want to assign the Global Administrator…

VIEW QUESTION
Back To Top
Search