azureblog.co.uk
← cd ~/roles
// roles/azure · management-and-governance

Scheduled Patching ContributorAzure built-in role

Provides access to manage maintenance configurations with maintenance scope InGuestPatch and corresponding configuration assignments

Role IDcd08ab90-6b14-449c-ad9a-8f8e549482c6
CategoryManagement-and-governance
Actions14
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Maintenance/maintenanceConfigurations/readRead maintenance configuration.
Microsoft.Maintenance/maintenanceConfigurations/writeCreate or update maintenance configuration.
Microsoft.Maintenance/maintenanceConfigurations/deleteDelete maintenance configuration.
Microsoft.Maintenance/configurationAssignments/readRead maintenance configuration assignment.
Microsoft.Maintenance/configurationAssignments/writeCreate or update maintenance configuration assignment.
Microsoft.Maintenance/configurationAssignments/deleteDelete maintenance configuration assignment.
Microsoft.Maintenance/configurationAssignments/maintenanceScope/InGuestPatch/readRead maintenance configuration assignment for InGuestPatch maintenance scope.
Microsoft.Maintenance/configurationAssignments/maintenanceScope/InGuestPatch/writeCreate or update a maintenance configuration assignment for InGuestPatch maintenance scope.
Microsoft.Maintenance/configurationAssignments/maintenanceScope/InGuestPatch/deleteDelete maintenance configuration assignment for InGuestPatch maintenance scope.
Microsoft.Maintenance/maintenanceConfigurations/maintenanceScope/InGuestPatch/readRead maintenance configuration for InGuestPatch maintenance scope.
Microsoft.Maintenance/maintenanceConfigurations/maintenanceScope/InGuestPatch/writeCreate or update a maintenance configuration for InGuestPatch maintenance scope.
Microsoft.Maintenance/maintenanceConfigurations/maintenanceScope/InGuestPatch/deleteDelete maintenance configuration for InGuestPatch maintenance scope.
Microsoft.Maintenance/applyUpdates/readRead apply updates to a resource.
Microsoft.Maintenance/updates/readRead updates to a resource.

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 "Scheduled Patching Contributor" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Scheduled Patching Contributor" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'cd08ab90-6b14-449c-ad9a-8f8e549482c6')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'cd08ab90-6b14-449c-ad9a-8f8e549482c6')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "cd08ab90-6b14-449c-ad9a-8f8e549482c6"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other management-and-governance roles

Find the smallest role for a task →