Azure role · compute
VM Restore OperatorAzure built-in role
Create and Delete resources during VM Restore. This role is in preview and subject to change.
Read onlyChange some thingsChange anythingGive access to others
Medium risk. It can create, change or delete some resources in scope.
In short: VM Restore Operator is an Azure built-in role with 41 actions and 4 data actions.
| Role ID | dfce8971-25e3-42e3-ba33-6055438e3080 |
|---|---|
| Category | Compute |
| Actions | 41 |
| Data actions | 4 |
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
| Permission | What it allows |
|---|---|
Microsoft.Authorization/*/read | Any read operation on anything under Microsoft.Authorization |
Microsoft.Compute/disks/read | Get the properties of a Disk |
Microsoft.Compute/disks/write | Creates a new Disk or updates an existing one |
Microsoft.Compute/disks/delete | Deletes the Disk |
Microsoft.Compute/disks/beginGetAccess/action | Get the SAS URI of the Disk for blob access |
Microsoft.Compute/disks/endGetAccess/action | Revoke the SAS URI of the Disk |
Microsoft.Compute/locations/diskOperations/read | Gets the status of an asynchronous Disk operation |
Microsoft.Compute/virtualMachines/read | Get the properties of a virtual machine |
Microsoft.Compute/virtualMachines/write | Creates a new virtual machine or updates an existing virtual machine |
Microsoft.Compute/virtualMachines/delete | Deletes the virtual machine |
Microsoft.Compute/virtualMachines/instanceView/read | Gets the detailed runtime status of the virtual machine and its resources |
Microsoft.Compute/virtualMachines/extensions/read | Get the properties of a virtual machine extension |
Microsoft.Compute/virtualMachines/extensions/write | Creates a new virtual machine extension or updates an existing one |
Microsoft.Compute/virtualMachines/extensions/delete | Deletes the virtual machine extension |
Microsoft.Insights/alertRules/* | Every operation under Microsoft.Insights/alertRules |
Microsoft.Network/locations/operationResults/read | Gets operation result of an async POST or DELETE operation |
Microsoft.Network/locations/operations/read | Gets operation resource that represents status of an asynchronous operation |
Microsoft.Network/locations/usages/read | Gets the resources usage metrics |
Microsoft.Network/networkInterfaces/delete | Deletes a network interface |
Microsoft.Network/networkInterfaces/ipconfigurations/read | Gets a network interface ip configuration definition. |
Microsoft.Network/networkInterfaces/join/action | Joins a Virtual Machine to a network interface. Not Alertable. |
Microsoft.Network/networkInterfaces/read | Gets a network interface definition. |
Microsoft.Network/networkInterfaces/write | Creates a network interface or updates an existing network interface. |
Microsoft.Network/networkSecurityGroups/read | Gets a network security group definition |
Microsoft.Network/networkSecurityGroups/securityRules/read | Gets a security rule definition |
Microsoft.Network/publicIPAddresses/delete | Deletes a public IP address. |
Microsoft.Network/publicIPAddresses/join/action | Joins a public IP address. Not Alertable. |
Microsoft.Network/publicIPAddresses/read | Gets a public IP address definition. |
Microsoft.Network/publicIPAddresses/write | Creates a public IP address or updates an existing public IP address. |
Microsoft.Network/virtualNetworks/read | Get the virtual network definition |
Microsoft.Network/virtualNetworks/subnets/join/action | Joins a virtual network. Not Alertable. |
Microsoft.Network/virtualNetworks/subnets/read | Gets a virtual network subnet definition |
Microsoft.Resources/deployments/* | Every operation under Microsoft.Resources/deployments |
Microsoft.Resources/subscriptions/resourceGroups/read | Gets or lists resource groups. |
Microsoft.Storage/checkNameAvailability/read | Checks that account name is valid and is not in use. |
Microsoft.Storage/storageAccounts/blobServices/containers/delete | Returns the result of deleting a container |
Microsoft.Storage/storageAccounts/blobServices/containers/read | Returns a container |
Microsoft.Storage/storageAccounts/blobServices/containers/write | Returns the result of patch blob container |
Microsoft.Storage/storageAccounts/listKeys/action | Returns the access keys for the specified storage account. |
Microsoft.Storage/storageAccounts/read | Returns the list of storage accounts or gets the properties for the specified storage account. |
Microsoft.Storage/storageAccounts/write | Creates a storage account with the specified parameters or update the properties or tags or adds custom domain for the specified storage account. |
Data actions
| Permission | What it allows |
|---|---|
Microsoft.Storage/storageAccounts/blobServices/containers/blobs/delete | Returns the result of deleting a blob |
Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read | Returns a blob or a list of blobs |
Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write | Returns the result of writing a blob |
Microsoft.Storage/storageAccounts/blobServices/containers/blobs/add/action | Returns the result of adding blob content |
Assign it
Scope it as tightly as you can: a resource or resource group rather than the whole subscription.
az role assignment create \
--assignee "jane.doe@contoso.com" \
--role "VM Restore Operator" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "VM Restore Operator" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"What each line does
- Line 1: Creates a role assignment in Azure. Makes a change.
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, 'dfce8971-25e3-42e3-ba33-6055438e3080')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'dfce8971-25e3-42e3-ba33-6055438e3080')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "dfce8971-25e3-42e3-ba33-6055438e3080"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)Other compute roles
- Compute Gallery Sharing Admin · 1 permission
- Compute Gallery Image Reader · 2 permissions
- Desktop Virtualization User · 2 permissions
- Virtual Machine Local User Login · 2 permissions
- Azure Batch Account Reader · 3 permissions
- Disk Backup Reader · 3 permissions
- Data Operator for Managed Disks · 4 permissions
- Windows 365 Network User · 4 permissions
Find the smallest role for a task →
Link to this page
Writing a guide or answering a question? Copy this link.
<a href="https://azureblog.co.uk/roles/azure/vm-restore-operator/">VM Restore Operator Azure role explained</a>Spotted something out of date or wrong? Tell us and we'll fix it.