azureblog.co.uk
← cd ~/roles
// roles/azure · web-and-mobile

Website ContributorAzure built-in role

Lets you manage websites (not web plans), but not access to them.

Role IDde139f84-1756-47ae-9be6-808fbbe84772
CategoryWeb-and-mobile
Actions13
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Insights/alertRules/*Every operation under Microsoft.Insights/alertRules
Microsoft.Insights/components/*Every operation under Microsoft.Insights/components
Microsoft.ResourceHealth/availabilityStatuses/readGets the availability statuses for all resources in the specified scope
Microsoft.Resources/deployments/*Every operation under Microsoft.Resources/deployments
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.Support/*Every operation under Microsoft.Support
Microsoft.Web/certificates/*Every operation under Microsoft.Web/certificates
Microsoft.Web/listSitesAssignedToHostName/readGet names of sites assigned to hostname.
Microsoft.Web/register/actionRegister Microsoft.Web resource provider for the subscription.
Microsoft.Web/serverFarms/join/actionJoins an App Service Plan
Microsoft.Web/serverFarms/readGet the properties on an App Service Plan
Microsoft.Web/sites/*Every operation under Microsoft.Web/sites

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 "Website Contributor" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Website Contributor" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'de139f84-1756-47ae-9be6-808fbbe84772')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'de139f84-1756-47ae-9be6-808fbbe84772')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "de139f84-1756-47ae-9be6-808fbbe84772"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other web-and-mobile roles

Find the smallest role for a task →