azureblog.co.uk
← cd ~/roles
// roles/azure · compute

Windows Admin Center Administrator LoginAzure built-in role

Let's you manage the OS of your resource via Windows Admin Center as an administrator.

Role IDa6333a3e-0164-44c3-b281-7a577aff287f
CategoryCompute
Actions41
Data actions4

Before you assign it

  • It reaches the data, not just the resource. It has 4 data actions, such as reading blobs, secrets or messages.

What it can do

PermissionWhat it allows
Microsoft.HybridCompute/machines/*/readAny read operation on anything under Microsoft.HybridCompute/machines
Microsoft.HybridCompute/machines/extensions/*Every operation under Microsoft.HybridCompute/machines/extensions
Microsoft.HybridCompute/machines/upgradeExtensions/actionUpgrades Extensions on Azure Arc machines
Microsoft.HybridCompute/operations/readRead all Operations for Azure Arc for Servers
Microsoft.Network/networkInterfaces/readGets a network interface definition.
Microsoft.Network/loadBalancers/readGets a load balancer definition
Microsoft.Network/publicIPAddresses/readGets a public IP address definition.
Microsoft.Network/virtualNetworks/readGet the virtual network definition
Microsoft.Network/networkSecurityGroups/readGets a network security group definition
Microsoft.Network/networkSecurityGroups/defaultSecurityRules/readGets a default security rule definition
Microsoft.Network/networkWatchers/securityGroupView/actionView the configured and effective network security group rules applied on a VM.
Microsoft.Network/networkSecurityGroups/securityRules/readGets a security rule definition
Microsoft.Network/networkSecurityGroups/securityRules/writeCreates a security rule or updates an existing security rule
Microsoft.HybridConnectivity/endpoints/writeCreate or update the endpoint to the target resource.
Microsoft.HybridConnectivity/endpoints/readList of endpoints to the target resource.
Microsoft.HybridConnectivity/endpoints/serviceConfigurations/writeCreate or update a service in serviceConfiguration for the endpoint resource.
Microsoft.HybridConnectivity/endpoints/serviceConfigurations/readAPI to enumerate registered services in service configurations under a Endpoint Resource
Microsoft.HybridConnectivity/endpoints/listManagedProxyDetails/actionFetches the managed proxy details
Microsoft.Compute/virtualMachines/readGet the properties of a virtual machine
Microsoft.Compute/virtualMachines/patchAssessmentResults/latest/readRetrieves the summary of the latest patch assessment operation
Microsoft.Compute/virtualMachines/patchAssessmentResults/latest/softwarePatches/readRetrieves list of patches assessed during the last patch assessment operation
Microsoft.Compute/virtualMachines/patchInstallationResults/readRetrieves the summary of the latest patch installation operation
Microsoft.Compute/virtualMachines/patchInstallationResults/softwarePatches/readRetrieves list of patches attempted to be installed during the last patch installation operation
Microsoft.Compute/virtualMachines/extensions/readGet the properties of a virtual machine extension
Microsoft.Compute/virtualMachines/instanceView/readGets the detailed runtime status of the virtual machine and its resources
Microsoft.Compute/virtualMachines/runCommands/readGet the properties of a virtual machine run command
Microsoft.Compute/virtualMachines/vmSizes/readLists available sizes the virtual machine can be updated to
Microsoft.Compute/locations/publishers/artifacttypes/types/readGet the properties of a VMExtension Type
Microsoft.Compute/locations/publishers/artifacttypes/types/versions/readGet the properties of a VMExtension Version
Microsoft.Compute/diskAccesses/readGet the properties of DiskAccess resource
Microsoft.Compute/galleries/images/readGets the properties of Gallery Image
Microsoft.Compute/images/readGet the properties of the Image
Microsoft.AzureStackHCI/Clusters/ReadGets clusters
Microsoft.AzureStackHCI/Clusters/ArcSettings/ReadGets Arc resource of Azure Local cluster
Microsoft.AzureStackHCI/Clusters/ArcSettings/Extensions/ReadGets extension resource of HCI cluster
Microsoft.AzureStackHCI/Clusters/ArcSettings/Extensions/WriteCreate or update extension resource of HCI cluster
Microsoft.AzureStackHCI/Clusters/ArcSettings/Extensions/DeleteDelete extension resources of Azure Local cluster
Microsoft.AzureStackHCI/Operations/ReadGets operations
Microsoft.ConnectedVMwarevSphere/VirtualMachines/ReadRead virtualmachines
Microsoft.ConnectedVMwarevSphere/VirtualMachines/Extensions/WriteWrite extension resource
Microsoft.ConnectedVMwarevSphere/VirtualMachines/Extensions/ReadGets extension resource

Data actions

PermissionWhat it allows
Microsoft.HybridCompute/machines/WACLoginAsAdmin/actionLets you manage the OS of your resource via Windows Admin Center as an administrator.
Microsoft.Compute/virtualMachines/WACloginAsAdmin/actionLets you manage the OS of your resource via Windows Admin Center as an administrator
Microsoft.AzureStackHCI/Clusters/WACloginAsAdmin/ActionManage OS of Azure Local resource via Windows Admin Center as an administrator
Microsoft.ConnectedVMwarevSphere/virtualmachines/WACloginAsAdmin/actionLets you manage the OS of your resource via Windows Admin Center as an administrator.

Assign it

Scope it as tightly as you can: a resource or resource group rather than the whole subscription.

azure cli
az role assignment create \
  --assignee "jane.doe@contoso.com" \
  --role "Windows Admin Center Administrator Login" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Windows Admin Center Administrator Login" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'a6333a3e-0164-44c3-b281-7a577aff287f')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'a6333a3e-0164-44c3-b281-7a577aff287f')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "a6333a3e-0164-44c3-b281-7a577aff287f"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other compute roles

Find the smallest role for a task →