Post

Defender for Cloud - Built-in Azure Roles and Permissions

Defender for Cloud - Built-in Azure Roles and Permissions

Defender for Cloud uses several built-in Azure roles behind the scenes. Finding the role names is easy enough, but understanding the exact control-plane and data-plane permissions assigned to each role usually means opening every role definition separately.

I flattened those definitions into one reference. Each section below keeps the role name, role ID, and description together with every Action, NotAction, and DataAction from the source data.

Microsoft’s Azure RBAC documentation is still the official starting point for understanding role assignments and built-in roles. Its built-in-role reference covers the broader Azure catalogue and links to individual permission definitions, but it does not bring every Defender-specific service role from this snapshot together in one Defender for Cloud view. That gap is the reason I created this consolidated list instead.

The source snapshot contains 34 Defender for Cloud-related built-in roles and 372 individual permission entries.

Official Azure RBAC documentation: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles

Roles at a Glance

Role NameDescription
Defender Agentless VM ScanRole that provides access to disk snapshot for security analysis.
Defender AIService role that provides permissions for Microsoft Defender for AI
Defender API SecurityGrants Microsoft Defender for Cloud access to computes to provide API security
Defender Azure Cosmos DBMicrosoft Defender for Azure Cosmos DB role. Grant permissions for enablement.
Defender Azure SQL DatabasesMicrosoft Defender for Azure SQL Databases role. Grant permissions for enablement.
Defender Cloud Secrets PostureService role that provides permissions for Microsoft Defender Cloud Secrets Posture
Defender Containers SensorGrants Microsoft Defender for Cloud access to Azure Kubernetes Services
Defender CSPMGrants permissions for Microsoft Defender for Cloud CSPM base plan features
Defender CSPM Storage Scanner OperatorLets you enable and configure Microsoft Defender CSPM’s sensitive data discovery feature on your storage accounts. Includes an ABAC condition to limit role assignments.
Defender Databricks OperatorGrants permissions for Microsoft Defender for Cloud feature on Databricks.
Defender For Container Registries OperatorGrants Microsoft Defender for Cloud access to Azure Container Registries
Defender for Storage Data ScannerGrants access to read blobs and update index tags. This role is used by the data scanner of Defender for Storage.
Defender for Storage Scanner OperatorLets you enable and configure Microsoft Defender for Storage’s malware scanning and sensitive data discovery features on your storage accounts. Includes an ABAC condition to limit role assignments.
Defender for Storage Threat ProtectionMicrosoft Defender for Storage Threat Protection role - grants the permissions needed to enable/disable Defender for Storage Advanced Threat Protection at resource level.
Defender Kubernetes Agent OperatorGrants Microsoft Defender for Cloud permissions to provision the Kubernetes defender security agent
Defender Kubernetes API AccessGrants Microsoft Defender for Cloud access to Azure Kubernetes Services
Defender Open Source Relational DatabasesMicrosoft Defender for Open Source Relational Databases role. Grant permissions for enablement.
Defender Registry AccessGrants Microsoft Defender for Cloud access to Azure Container Registry for security assessment of container images
Defender Sensitive Data DiscoveryGrants permissions for Microsoft Defender for Cloud Sensitive Data Discovery plan features
Defender Serverless ScannerGrants access to Serverless resources and thier connections
Defender Servers P1Defender Servers P1
Defender Servers P2Defender Servers P2
Defender Settings ContributorGrants Microsoft Defender for Cloud access to Defender Settings
Defender SQL Servers On MachinesMicrosoft Defender for SQL Servers On Machines role. Grant permissions for enablement.
Defender Storage Automated Malware RemediationGrants additional permissions for Microsoft Defender for Storage automated remediation operations including soft-delete management and blob deletion.
Defender Storage Malware Data ScannerGrants data plane permissions for Microsoft Defender for Storage scanning operations — blob/file read, index tag updates.
Defender Storage Malware OperatorGrants permissions for Microsoft Defender for Storage malware scanning operations including blob/file read, index tag updates, EventGrid management, and network bypass.
Defender Unified RBAC Authorization ManagerDefender Unified RBAC Authorization Manager. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.
Defender Unified RBAC Authorization ReaderDefender Unified RBAC Authorization Reader. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.
Defender Unified RBAC Contributor and ResponderDefender Unified RBAC Contributor and Responder. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.
Defender Unified RBAC Data ManagerDefender Unified RBAC Data Manager. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.
Defender Unified RBAC ReaderDefender Unified RBAC Reader. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.
Defender Unified RBAC ResponderDefender Unified RBAC Responder. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.
Defender Unified RBAC Scoped ReaderDefender Unified RBAC Scoped Reader. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.

Azure role definitions can change, so treat it as a point-in-time snapshot and check the current definition before using it for access reviews or custom-role design.

Below the PowerShell command to extract the role definitions and permissions from your Azure subscription. It outputs a table with the role name, ID, description, and all permission types.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Get-AzRoleDefinition | ForEach-Object {
	$role = $_
	$perm = $role.Permissions[0]
	
    [PSCustomObject]@{
		Name           = $role.Name
		Id             = $role.Id
		Description    = $role.Description
		IsCustom       = $role.IsCustom
		Actions        = ($perm.Actions -join ';')
		NotActions     = ($perm.NotActions -join ';')
		DataActions    = ($perm.DataActions -join ';')
		NotDataActions = ($perm.NotDataActions -join ';')
    }
}

Reading the Permission Tables

Azure role definitions separate permissions by how they apply:

  • Action is an individual management or control-plane operation against an Azure resource provider. Operations such as Microsoft.Compute/virtualMachines/start/action, read, and write manage the resource through Azure Resource Manager.
  • NotAction subtracts an operation from the set granted by Actions. The effective control-plane permissions are therefore Actions - NotActions.
  • DataAction is an individual data-plane operation against data held inside a resource. For example, Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read reads blob content, while a control-plane action manages the container resource itself.
  • NotDataAction subtracts an operation from the set granted by DataActions, following the same model as NotActions. The source definitions used here contain no NotDataActions, so none appear in the role tables below.

In the role definition JSON, these fields are the plural arrays Actions, NotActions, DataActions, and NotDataActions. The tables use the singular form because each row represents one operation string from an array.

The complete evaluation logic is:

  • Allowed control-plane operations: Actions - NotActions
  • Allowed data-plane operations: DataActions - NotDataActions
  • Deny assignments, when present, override both

A NotAction is not a deny. It only removes an operation from this role definition’s grant. Another role assignment can still grant the same operation.

Wildcard entries such as Microsoft.Security/*/read are retained exactly as defined. They can cover new matching operations added by the resource provider later.

Defender Agentless VM Scan

Role that provides access to disk snapshot for security analysis.

Role ID: d24ecba3-c1f4-40fa-a7bb-4588a071e8fd

Permission TypePermission
ActionMicrosoft.Compute/disks/read
ActionMicrosoft.Compute/disks/beginGetAccess/action
ActionMicrosoft.Compute/diskEncryptionSets/read
ActionMicrosoft.Compute/virtualMachines/instanceView/read
ActionMicrosoft.Compute/virtualMachines/read
ActionMicrosoft.Compute/virtualMachineScaleSets/instanceView/read
ActionMicrosoft.Compute/virtualMachineScaleSets/read
ActionMicrosoft.Compute/virtualMachineScaleSets/virtualMachines/read
ActionMicrosoft.Compute/virtualMachineScaleSets/virtualMachines/instanceView/read
ActionMicrosoft.Resources/subscriptions/resourceGroups/read

Defender Kubernetes API Access

Grants Microsoft Defender for Cloud access to Azure Kubernetes Services

Role ID: d5a2ae44-610b-4500-93be-660a0c5f5ca6

Permission TypePermission
ActionMicrosoft.ContainerService/managedClusters/trustedAccessRoleBindings/write
ActionMicrosoft.ContainerService/managedClusters/trustedAccessRoleBindings/read
ActionMicrosoft.ContainerService/managedClusters/trustedAccessRoleBindings/delete
ActionMicrosoft.ContainerService/managedClusters/read
ActionMicrosoft.Features/features/read
ActionMicrosoft.Features/providers/features/read
ActionMicrosoft.Features/providers/features/register/action
ActionMicrosoft.Security/pricings/securityoperators/read
ActionMicrosoft.Security/securityOperators/read
ActionMicrosoft.Authorization/policyAssignments/read
ActionMicrosoft.Authorization/policySetDefinitions/read

Defender Registry Access

Grants Microsoft Defender for Cloud access to Azure Container Registry for security assessment of container images

Role ID: 96062cf7-95ca-4f89-9b9d-2a2aa47356af

Permission TypePermission
ActionMicrosoft.ContainerRegistry/registries/pull/read
ActionMicrosoft.ContainerRegistry/registries/push/write
ActionMicrosoft.ContainerRegistry/registries/artifacts/delete
DataActionMicrosoft.ContainerRegistry/registries/repositories/metadata/read
DataActionMicrosoft.ContainerRegistry/registries/repositories/content/read
DataActionMicrosoft.ContainerRegistry/registries/repositories/metadata/write
DataActionMicrosoft.ContainerRegistry/registries/repositories/content/write
DataActionMicrosoft.ContainerRegistry/registries/repositories/metadata/delete
DataActionMicrosoft.ContainerRegistry/registries/repositories/content/delete

Defender for Storage Data Scanner

Grants access to read blobs and update index tags. This role is used by the data scanner of Defender for Storage.

Role ID: 1e7ca9b1-60d1-4db8-a914-f2ca1ff27c40

Permission TypePermission
ActionMicrosoft.Storage/storageAccounts/blobServices/containers/read
ActionMicrosoft.Storage/storageAccounts/blobServices/read
ActionMicrosoft.Storage/storageAccounts/fileServices/shares/read
DataActionMicrosoft.Storage/storageAccounts/blobServices/containers/blobs/read
DataActionMicrosoft.Storage/storageAccounts/blobServices/containers/blobs/tags/write
DataActionMicrosoft.Storage/storageAccounts/blobServices/containers/blobs/tags/read
DataActionMicrosoft.Storage/storageAccounts/blobServices/containers/blobs/delete
DataActionMicrosoft.Storage/storageAccounts/fileServices/fileshares/files/read
DataActionMicrosoft.Storage/storageAccounts/fileServices/readFileBackupSemantics/action

Defender for Storage Scanner Operator

Lets you enable and configure Microsoft Defender for Storage’s malware scanning and sensitive data discovery features on your storage accounts. Includes an ABAC condition to limit role assignments.

Role ID: 0f641de8-0b88-4198-bdef-bd8b45ceba96

Permission TypePermission
ActionMicrosoft.Authorization/roleAssignments/write
ActionMicrosoft.Authorization/roleAssignments/delete
ActionMicrosoft.Authorization/*/read
ActionMicrosoft.Resources/deployments/*
ActionMicrosoft.Resources/subscriptions/resourceGroups/read
ActionMicrosoft.Resources/subscriptions/read
ActionMicrosoft.Management/managementGroups/read
ActionMicrosoft.Resources/deployments/*
ActionMicrosoft.Support/*
ActionMicrosoft.Security/defenderforstoragesettings/read
ActionMicrosoft.Security/defenderforstoragesettings/write
ActionMicrosoft.Security/advancedThreatProtectionSettings/read
ActionMicrosoft.Security/advancedThreatProtectionSettings/write
ActionMicrosoft.Security/datascanners/read
ActionMicrosoft.Security/datascanners/write
ActionMicrosoft.Security/dataScanners/delete
ActionMicrosoft.Storage/storageAccounts/write
ActionMicrosoft.Storage/storageAccounts/read
ActionMicrosoft.EventGrid/topics/read
ActionMicrosoft.EventGrid/eventSubscriptions/read
ActionMicrosoft.EventGrid/eventSubscriptions/write
ActionMicrosoft.EventGrid/eventSubscriptions/delete
ActionMicrosoft.Storage/storageAccounts/blobServices/read
ActionMicrosoft.Storage/storageAccounts/blobServices/write

Defender Kubernetes Agent Operator

Grants Microsoft Defender for Cloud permissions to provision the Kubernetes defender security agent

Role ID: 8bb6f106-b146-4ee6-a3f9-b9c5a96e0ae5

Permission TypePermission
ActionMicrosoft.Authorization/*/read
ActionMicrosoft.Insights/alertRules/*
ActionMicrosoft.Resources/deployments/*
ActionMicrosoft.Resources/subscriptions/resourceGroups/read
ActionMicrosoft.Resources/subscriptions/resourceGroups/write
ActionMicrosoft.Resources/subscriptions/operationresults/read
ActionMicrosoft.Resources/subscriptions/read
ActionMicrosoft.KubernetesConfiguration/extensions/write
ActionMicrosoft.KubernetesConfiguration/extensions/read
ActionMicrosoft.KubernetesConfiguration/extensions/delete
ActionMicrosoft.KubernetesConfiguration/extensions/operations/read
ActionMicrosoft.Kubernetes/connectedClusters/Write
ActionMicrosoft.Kubernetes/connectedClusters/read
ActionMicrosoft.OperationalInsights/workspaces/write
ActionMicrosoft.OperationalInsights/workspaces/read
ActionMicrosoft.OperationalInsights/workspaces/listKeys/action
ActionMicrosoft.OperationalInsights/workspaces/sharedkeys/action
ActionMicrosoft.Kubernetes/register/action
ActionMicrosoft.KubernetesConfiguration/register/action

Defender CSPM Storage Scanner Operator

Lets you enable and configure Microsoft Defender CSPM’s sensitive data discovery feature on your storage accounts. Includes an ABAC condition to limit role assignments.

Role ID: 8480c0f0-4509-4229-9339-7c10018cb8c4

Permission TypePermission
ActionMicrosoft.Storage/storageAccounts/write
ActionMicrosoft.Storage/storageAccounts/read
ActionMicrosoft.Authorization/*/read
ActionMicrosoft.Resources/subscriptions/resourceGroups/read
ActionMicrosoft.Resources/subscriptions/read
ActionMicrosoft.Management/managementGroups/read
ActionMicrosoft.Resources/deployments/*
ActionMicrosoft.Support/*
ActionMicrosoft.Security/datascanners/read
ActionMicrosoft.Security/datascanners/write
ActionMicrosoft.Security/dataScanners/delete

Defender Containers Sensor

Grants Microsoft Defender for Cloud access to Azure Kubernetes Services

Role ID: 5e93ba01-8f92-4c7a-b12a-801e3df23824

Permission TypePermission
ActionMicrosoft.Authorization/*/read
ActionMicrosoft.Insights/alertRules/*
ActionMicrosoft.Resources/deployments/*
ActionMicrosoft.Resources/subscriptions/resourceGroups/read
ActionMicrosoft.Resources/subscriptions/resourceGroups/write
ActionMicrosoft.Resources/subscriptions/operationresults/read
ActionMicrosoft.Resources/subscriptions/read
ActionMicrosoft.ContainerService/managedClusters/read
ActionMicrosoft.ContainerService/managedClusters/trustedAccessRoleBindings/delete
ActionMicrosoft.ContainerService/managedClusters/trustedAccessRoleBindings/read
ActionMicrosoft.ContainerService/managedClusters/trustedAccessRoleBindings/write
ActionMicrosoft.ContainerService/managedClusters/write
ActionMicrosoft.Security/pricings/securityoperators/read
ActionMicrosoft.Security/securityOperators/read
ActionMicrosoft.OperationalInsights/workspaces/write
ActionMicrosoft.OperationalInsights/workspaces/read
ActionMicrosoft.OperationalInsights/workspaces/listKeys/action
ActionMicrosoft.OperationalInsights/workspaces/sharedkeys/action
ActionMicrosoft.OperationalInsights/workspaces/sharedkeys/read

Defender Sensitive Data Discovery

Grants permissions for Microsoft Defender for Cloud Sensitive Data Discovery plan features

Role ID: 0b6ca2e8-2cdc-4bd6-b896-aa3d8c21fc35

Permission TypePermission
ActionMicrosoft.Security/defenderforstoragesettings/read
ActionMicrosoft.Security/defenderforstoragesettings/write
ActionMicrosoft.Security/advancedThreatProtectionSettings/read
ActionMicrosoft.Security/advancedThreatProtectionSettings/write
ActionMicrosoft.Security/securityOperators/read
ActionMicrosoft.Storage/storageAccounts/write
ActionMicrosoft.Storage/storageAccounts/read
ActionMicrosoft.Storage/storageAccounts/blobServices/containers/read
ActionMicrosoft.Storage/storageAccounts/fileServices/shares/read
DataActionMicrosoft.Storage/storageAccounts/blobServices/containers/blobs/read
DataActionMicrosoft.Storage/storageAccounts/fileServices/fileshares/files/read

Defender Serverless Scanner

Grants access to Serverless resources and thier connections

Role ID: 68ac31b4-936a-4046-a6d2-ba6f8a757bf6

Permission TypePermission
Actionmicrosoft.web/sites/publish/action
ActionMicrosoft.Web/sites/sitecontainers/read
Actionmicrosoft.web/sites/slots/publish/action
Actionmicrosoft.web/sites/config/list/action
Actionmicrosoft.web/sites/slots/config/list/action

Defender For Container Registries Operator

Grants Microsoft Defender for Cloud access to Azure Container Registries

Role ID: c5c82243-e78e-43f9-8428-793bba85b28e

Permission TypePermission
ActionMicrosoft.ContainerRegistry/registries/pull/read
ActionMicrosoft.ContainerRegistry/registries/metadata/read
ActionMicrosoft.ContainerRegistry/registries/read
DataActionMicrosoft.ContainerRegistry/registries/repositories/content/read
DataActionMicrosoft.ContainerRegistry/registries/repositories/metadata/read
DataActionMicrosoft.ContainerRegistry/registries/catalog/read

Defender Unified RBAC Data Manager

Defender Unified RBAC Data Manager. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.

Role ID: 40ead2a5-466e-4039-8a80-325542d9d2dd

Permission TypePermission
ActionMicrosoft.operationalinsights/workspaces/read
ActionMicrosoft.operationalinsights/workspaces/write
ActionMicrosoft.operationalinsights/workspaces/query/read
ActionMicrosoft.operationalinsights/workspaces/tables/write
ActionMicrosoft.operationalinsights/workspaces/tables/delete
ActionMicrosoft.operationalinsights/workspaces/sharedkeys/action

Defender Unified RBAC Authorization Reader

Defender Unified RBAC Authorization Reader. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.

Role ID: ca62263b-07d5-4b48-b437-088803f5c2ff

No Actions, NotActions, or DataActions are present in the source definition.

Defender Unified RBAC Authorization Manager

Defender Unified RBAC Authorization Manager. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.

Role ID: 1fd5d8bf-9037-4ede-89bf-680f798e2765

No Actions, NotActions, or DataActions are present in the source definition.

Defender Unified RBAC Responder

Defender Unified RBAC Responder. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.

Role ID: 1bacae94-6c0f-4d2d-8dfa-408d5a28e6ec

Permission TypePermission
ActionMicrosoft.SecurityInsights/*/read
ActionMicrosoft.SecurityInsights/dataConnectorsCheckRequirements/action
ActionMicrosoft.SecurityInsights/automationRules/*
ActionMicrosoft.SecurityInsights/cases/*
ActionMicrosoft.SecurityInsights/incidents/*
ActionMicrosoft.SecurityInsights/entities/runPlaybook/action
ActionMicrosoft.SecurityInsights/threatIntelligence/indicators/appendTags/action
ActionMicrosoft.SecurityInsights/threatIntelligence/indicators/query/action
ActionMicrosoft.SecurityInsights/threatIntelligence/bulkTag/action
ActionMicrosoft.SecurityInsights/threatIntelligence/indicators/appendTags/action
ActionMicrosoft.SecurityInsights/threatIntelligence/indicators/replaceTags/action
ActionMicrosoft.SecurityInsights/threatIntelligence/queryIndicators/action
ActionMicrosoft.SecurityInsights/businessApplicationAgents/systems/undoAction/action
ActionMicrosoft.OperationalInsights/workspaces/analytics/query/action
ActionMicrosoft.OperationalInsights/workspaces/*/read
ActionMicrosoft.OperationalInsights/workspaces/dataSources/read
ActionMicrosoft.OperationalInsights/workspaces/savedSearches/read
ActionMicrosoft.OperationsManagement/solutions/read
ActionMicrosoft.OperationalInsights/workspaces/query/read
ActionMicrosoft.OperationalInsights/workspaces/query/*/read
ActionMicrosoft.OperationalInsights/workspaces/dataSources/read
ActionMicrosoft.OperationalInsights/querypacks/*/read
ActionMicrosoft.Resources/deployments/*
ActionMicrosoft.Resources/subscriptions/resourceGroups/read
ActionMicrosoft.Insights/workbooks/read
ActionMicrosoft.Authorization/*/read
NotActionMicrosoft.SecurityInsights/cases/*/Delete
NotActionMicrosoft.SecurityInsights/incidents/*/Delete
NotActionMicrosoft.SecurityInsights/ConfidentialWatchlists/*
NotActionMicrosoft.OperationalInsights/workspaces/query/ConfidentialWatchlist/*

Defender Unified RBAC Contributor and Responder

Defender Unified RBAC Contributor and Responder. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.

Role ID: 625a1cea-653b-4a19-bd3a-df1d66ab6637

Permission TypePermission
ActionMicrosoft.OperationalInsights/querypacks/*/read
ActionMicrosoft.OperationalInsights/workspaces/*/read
ActionMicrosoft.OperationalInsights/workspaces/analytics/query/action
ActionMicrosoft.OperationalInsights/workspaces/dataSources/read
ActionMicrosoft.OperationalInsights/workspaces/query/*/read
ActionMicrosoft.OperationalInsights/workspaces/query/read
ActionMicrosoft.OperationalInsights/workspaces/savedSearches/*
ActionMicrosoft.OperationalInsights/workspaces/savedSearches/read
ActionMicrosoft.OperationsManagement/solutions/read
ActionMicrosoft.Resources/deployments/*
ActionMicrosoft.Resources/subscriptions/resourceGroups/read
ActionMicrosoft.SecurityInsights/*
ActionMicrosoft.SecurityInsights/*/read
ActionMicrosoft.SecurityInsights/automationRules/*
ActionMicrosoft.SecurityInsights/businessApplicationAgents/systems/undoAction/action
ActionMicrosoft.SecurityInsights/cases/*
ActionMicrosoft.SecurityInsights/dataConnectorsCheckRequirements/action
ActionMicrosoft.SecurityInsights/entities/runPlaybook/action
ActionMicrosoft.SecurityInsights/incidents/*
ActionMicrosoft.SecurityInsights/threatIntelligence/bulkTag/action
ActionMicrosoft.SecurityInsights/threatIntelligence/indicators/appendTags/action
ActionMicrosoft.SecurityInsights/threatIntelligence/indicators/query/action
ActionMicrosoft.SecurityInsights/threatIntelligence/indicators/replaceTags/action
ActionMicrosoft.SecurityInsights/threatIntelligence/queryIndicators/action
ActionMicrosoft.Insights/workbooks/*
ActionMicrosoft.Authorization/*/read
NotActionMicrosoft.SecurityInsights/cases/*/Delete
NotActionMicrosoft.SecurityInsights/incidents/*/Delete
NotActionMicrosoft.SecurityInsights/ConfidentialWatchlists/*
NotActionMicrosoft.OperationalInsights/workspaces/query/ConfidentialWatchlist/*

Defender Unified RBAC Reader

Defender Unified RBAC Reader. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.

Role ID: 78b7345a-1e1b-483a-ac62-62228c6ea89d

Permission TypePermission
ActionMicrosoft.SecurityInsights/*/read
ActionMicrosoft.SecurityInsights/dataConnectorsCheckRequirements/action
ActionMicrosoft.SecurityInsights/threatIntelligence/indicators/query/action
ActionMicrosoft.SecurityInsights/threatIntelligence/queryIndicators/action
ActionMicrosoft.OperationalInsights/workspaces/analytics/query/action
ActionMicrosoft.OperationalInsights/workspaces/*/read
ActionMicrosoft.OperationalInsights/workspaces/LinkedServices/read
ActionMicrosoft.OperationalInsights/workspaces/savedSearches/read
ActionMicrosoft.OperationsManagement/solutions/read
ActionMicrosoft.OperationalInsights/workspaces/query/read
ActionMicrosoft.OperationalInsights/workspaces/query/*/read
ActionMicrosoft.OperationalInsights/querypacks/*/read
ActionMicrosoft.OperationalInsights/workspaces/dataSources/read
ActionMicrosoft.OperationalInsights/workspaces/read
ActionMicrosoft.Insights/workbooks/read
ActionMicrosoft.Authorization/*/read
ActionMicrosoft.Resources/deployments/*
ActionMicrosoft.Resources/subscriptions/resourceGroups/read
NotActionMicrosoft.SecurityInsights/ConfidentialWatchlists/*
NotActionMicrosoft.OperationalInsights/workspaces/query/ConfidentialWatchlist/*
DataActionMicrosoft.OperationalInsights/workspaces/tables/data/read

Defender Cloud Secrets Posture

Service role that provides permissions for Microsoft Defender Cloud Secrets Posture

Role ID: 512ef07a-840c-48d2-9be4-9a30a75a5c70

Permission TypePermission
ActionMicrosoft.DocumentDB/databaseAccounts/listKeys/action
ActionMicrosoft.documentdb/mongoClusters/read
ActionMicrosoft.DocumentDB/databaseAccounts/listConnectionStrings/action
ActionMicrosoft.CognitiveServices/accounts/listKeys/action

Defender CSPM

Grants permissions for Microsoft Defender for Cloud CSPM base plan features

Role ID: 46023a6a-0702-4cbf-956c-d8c3ac27bc2b

Permission TypePermission
DataActionMicrosoft.CognitiveServices/accounts/aiservices/agents/read
DataActionMicrosoft.CognitiveServices/accounts/aiservices/assets/read

Defender API Security

Grants Microsoft Defender for Cloud access to computes to provide API security

Role ID: 6f91a4f9-10ee-4b95-b8cd-96ee73c5968d

Permission TypePermission
ActionMicrosoft.Security/pricings/read
ActionMicrosoft.Security/apiCollections/read
ActionMicrosoft.ApiManagement/service/read
ActionMicrosoft.ApiManagement/service/apis/read
ActionMicrosoft.ApiManagement/service/apis/operations/read
ActionMicrosoft.ApiManagement/service/apiVersionSets/read
ActionMicrosoft.ApiManagement/service/apis/diagnostics/read
ActionMicrosoft.ApiManagement/service/apis/diagnostics/write
ActionMicrosoft.ApiManagement/service/apis/diagnostics/delete
ActionMicrosoft.ApiManagement/service/apis/policies/read
ActionMicrosoft.ApiManagement/service/backends/read
ActionMicrosoft.ApiManagement/service/workspaces/read
ActionMicrosoft.ApiManagement/service/workspaces/apis/read
ActionMicrosoft.ApiManagement/service/workspaces/apis/operations/read
ActionMicrosoft.ApiManagement/service/workspaces/apiVersionSets/read
ActionMicrosoft.ApiManagement/service/workspaces/apis/diagnostics/read
ActionMicrosoft.ApiManagement/service/workspaces/apis/diagnostics/write
ActionMicrosoft.ApiManagement/service/workspaces/apis/diagnostics/delete
ActionMicrosoft.ApiManagement/service/workspaces/apis/policies/read
ActionMicrosoft.ApiManagement/service/workspaces/backends/read
ActionMicrosoft.ApiManagement/gateways/configConnections/read
ActionMicrosoft.ApiManagement/service/workspaceLinks/read

Defender Settings Contributor

Grants Microsoft Defender for Cloud access to Defender Settings

Role ID: 7d0c0268-1199-449b-a52e-75c20879f46b

Permission TypePermission
Actionmicrosoft.security/pricings/read
Actionmicrosoft.security/pricings/write
Actionmicrosoft.security/pricings/securityoperators/read
Actionmicrosoft.security/securityoperators/read
Actionmicrosoft.security/register/action
Actionmicrosoft.security/settings/read
Actionmicrosoft.security/settings/write

Defender Unified RBAC Scoped Reader

Defender Unified RBAC Scoped Reader. This role is managed and assigned automatically by the Defender Unified RBAC system. Manual assignment of this role is not recommended, as the Defender Unified RBAC system may modify or remove it at any time based on system requirements.

Role ID: d56b031f-8d90-4376-9231-b5c94fce88ef

Permission TypePermission
ActionMicrosoft.OperationalInsights/workspaces/query/read
ActionMicrosoft.OperationalInsights/workspaces/read
NotActionMicrosoft.SecurityInsights/ConfidentialWatchlists/*
NotActionMicrosoft.OperationalInsights/workspaces/query/ConfidentialWatchlist/*
NotActionMicrosoft.SecurityInsights/alertRules/read
DataActionMicrosoft.OperationalInsights/workspaces/tables/data/read

Defender Databricks Operator

Grants permissions for Microsoft Defender for Cloud feature on Databricks.

Role ID: 0e2ecf2a-0574-4b08-89e2-be133aa6303f

Permission TypePermission
ActionMicrosoft.Databricks/workspaces/read
ActionMicrosoft.Databricks/workspaces/assignWorkspaceAdmin/action

Defender Open Source Relational Databases

Microsoft Defender for Open Source Relational Databases role. Grant permissions for enablement.

Role ID: 99626c15-0799-47ad-96ab-f298031f69d6

Permission TypePermission
ActionMicrosoft.DBforMySQL/flexibleServers/advancedThreatProtectionSettings/read
ActionMicrosoft.DBforMySQL/flexibleServers/advancedThreatProtectionSettings/write
ActionMicrosoft.DBforMySQL/flexibleServers/read
ActionMicrosoft.DBforPostgreSQL/flexibleServers/read
ActionMicrosoft.DBforPostgreSQL/flexibleServers/advancedThreatProtectionSettings/read
ActionMicrosoft.DBforPostgreSQL/flexibleServers/advancedThreatProtectionSettings/write

Defender Azure Cosmos DB

Microsoft Defender for Azure Cosmos DB role. Grant permissions for enablement.

Role ID: d2acaa63-2a62-4c01-998a-cdbe7a00d709

Permission TypePermission
ActionMicrosoft.DocumentDB/databaseAccounts/read
ActionMicrosoft.Security/advancedThreatProtectionSettings/read
ActionMicrosoft.Security/advancedThreatProtectionSettings/write

Defender SQL Servers On Machines

Microsoft Defender for SQL Servers On Machines role. Grant permissions for enablement.

Role ID: d9468a2b-1820-47e1-a40e-d2b7fba1879a

Permission TypePermission
ActionMicrosoft.Compute/virtualMachines/extensions/delete
ActionMicrosoft.Compute/virtualMachines/extensions/read
ActionMicrosoft.Compute/virtualMachines/extensions/write
ActionMicrosoft.Compute/virtualMachines/instanceView/read
ActionMicrosoft.Compute/virtualMachines/read
ActionMicrosoft.HybridCompute/machines/read
ActionMicrosoft.HybridCompute/machines/extensions/write
ActionMicrosoft.HybridCompute/machines/extensions/delete
ActionMicrosoft.HybridCompute/machines/extensions/read
ActionMicrosoft.Compute/virtualMachines/write

Defender for Storage Threat Protection

Microsoft Defender for Storage Threat Protection role - grants the permissions needed to enable/disable Defender for Storage Advanced Threat Protection at resource level.

Role ID: a366d631-94bf-46bf-b4af-b38f28c80774

Permission TypePermission
ActionMicrosoft.Security/advancedThreatProtectionSettings/read
ActionMicrosoft.Security/advancedThreatProtectionSettings/write
ActionMicrosoft.Security/defenderForStorageSettings/read
ActionMicrosoft.Security/defenderForStorageSettings/write
ActionMicrosoft.Storage/storageAccounts/read

Defender Servers P1

Defender Servers P1

Role ID: 78b19ac9-582c-44d8-9e11-733ae424ad83

Permission TypePermission
ActionMicrosoft.OperationalInsights/workspaces/read
ActionMicrosoft.OperationsManagement/solutions/read
ActionMicrosoft.Compute/virtualMachines/read
ActionMicrosoft.HybridCompute/machines/read
ActionMicrosoft.Compute/virtualMachines/extensions/read
ActionMicrosoft.Compute/virtualMachines/extensions/write
ActionMicrosoft.HybridCompute/machines/extensions/write
ActionMicrosoft.HybridCompute/machines/extensions/delete
ActionMicrosoft.HybridCompute/machines/extensions/read
ActionMicrosoft.Compute/virtualMachines/extensions/delete

Defender Servers P2

Defender Servers P2

Role ID: 1dc24dd8-b00e-4344-837c-58b193cd23c7

Permission TypePermission
ActionMicrosoft.Compute/virtualMachines/read
ActionMicrosoft.Network/loadBalancers/read
ActionMicrosoft.Network/networkSecurityGroups/read
ActionMicrosoft.Network/networkSecurityGroups/write
ActionMicrosoft.Network/azureFirewalls/read
ActionMicrosoft.Network/azureFirewalls/write
ActionMicrosoft.Network/virtualNetworks/read
ActionMicrosoft.Network/networkInterfaces/read
ActionMicrosoft.Network/publicIPAddresses/read
ActionMicrosoft.Network/routeTables/read
ActionMicrosoft.HybridCompute/machines/read
ActionMicrosoft.OperationalInsights/workspaces/read
ActionMicrosoft.OperationsManagement/solutions/read
ActionMicrosoft.Compute/virtualMachines/extensions/read
ActionMicrosoft.Compute/virtualMachines/extensions/write
ActionMicrosoft.HybridCompute/machines/extensions/write
ActionMicrosoft.HybridCompute/machines/extensions/delete
ActionMicrosoft.HybridCompute/machines/extensions/read
ActionMicrosoft.Compute/virtualMachines/extensions/delete

Defender AI

Service role that provides permissions for Microsoft Defender for AI

Role ID: 6fe711ec-654d-4ef7-8e32-eb7de3d94774

Permission TypePermission
ActionMicrosoft.CognitiveServices/accounts/read
ActionMicrosoft.CognitiveServices/accounts/defenderForAISettings/read
ActionMicrosoft.CognitiveServices/accounts/defenderForAISettings/write
ActionMicrosoft.CognitiveServices/accounts/defenderForAISettings/delete
ActionMicrosoft.CognitiveServices/raiPolicy/read
ActionMicrosoft.CognitiveServices/raiPolicy/write
ActionMicrosoft.Search/searchServices/knowledgeBases/read

Defender Storage Malware Data Scanner

Grants data plane permissions for Microsoft Defender for Storage scanning operations — blob/file read, index tag updates.

Role ID: cd50fd1f-0421-46f2-8cce-afc587dbcc77

Permission TypePermission
ActionMicrosoft.Storage/storageAccounts/blobServices/containers/read
ActionMicrosoft.Storage/storageAccounts/fileServices/shares/read
DataActionMicrosoft.Storage/storageAccounts/blobServices/containers/blobs/read
DataActionMicrosoft.Storage/storageAccounts/blobServices/containers/blobs/tags/write
DataActionMicrosoft.Storage/storageAccounts/blobServices/containers/blobs/tags/read
DataActionMicrosoft.Storage/storageAccounts/fileServices/fileshares/files/read
DataActionMicrosoft.Storage/storageAccounts/fileServices/readFileBackupSemantics/action
DataActionMicrosoft.EventGrid/events/send/action

Defender Azure SQL Databases

Microsoft Defender for Azure SQL Databases role. Grant permissions for enablement.

Role ID: eef9d654-743f-4e2c-ad0f-9ed243177663

Permission TypePermission
ActionMicrosoft.Sql/managedInstances/read
ActionMicrosoft.Sql/managedInstances/securityAlertPolicies/read
ActionMicrosoft.Sql/managedInstances/securityAlertPolicies/write
ActionMicrosoft.Sql/servers/read
ActionMicrosoft.Sql/servers/securityAlertPolicies/read
ActionMicrosoft.Sql/servers/securityAlertPolicies/write
ActionMicrosoft.Sql/servers/sqlVulnerabilityAssessments/read
ActionMicrosoft.Sql/servers/sqlVulnerabilityAssessments/write
ActionMicrosoft.Synapse/workspaces/read
ActionMicrosoft.Synapse/workspaces/securityAlertPolicies/read
ActionMicrosoft.Synapse/workspaces/securityAlertPolicies/write
ActionMicrosoft.Sql/servers/vulnerabilityAssessments/read
ActionMicrosoft.Synapse/workspaces/vulnerabilityAssessments/read
ActionMicrosoft.Sql/managedInstances/vulnerabilityAssessments/read
ActionMicrosoft.Sql/servers/sqlVulnerabilityAssessments/delete
ActionMicrosoft.Sql/servers/advancedThreatProtectionSettings/read
ActionMicrosoft.Sql/servers/advancedThreatProtectionSettings/write
ActionMicrosoft.Sql/managedInstances/advancedThreatProtectionSettings/write
ActionMicrosoft.Sql/managedInstances/advancedThreatProtectionSettings/read
ActionMicrosoft.Sql/managedInstances/vulnerabilityAssessments/write
ActionMicrosoft.Sql/managedInstances/vulnerabilityAssessments/delete
ActionMicrosoft.Security/SqlVulnerabilityAssessments/read
ActionMicrosoft.Security/SqlVulnerabilityAssessments/write

Defender Storage Malware Operator

Grants permissions for Microsoft Defender for Storage malware scanning operations including blob/file read, index tag updates, EventGrid management, and network bypass.

Role ID: 971cce9f-2680-4357-9678-c947847a9425

Permission TypePermission
ActionMicrosoft.Security/defenderforstoragesettings/read
ActionMicrosoft.Security/defenderforstoragesettings/write
ActionMicrosoft.Security/advancedThreatProtectionSettings/read
ActionMicrosoft.Security/advancedThreatProtectionSettings/write
ActionMicrosoft.Security/securityOperators/read
ActionMicrosoft.Storage/storageAccounts/write
ActionMicrosoft.Storage/storageAccounts/read
ActionMicrosoft.EventGrid/topics/read
ActionMicrosoft.EventGrid/register/action
ActionMicrosoft.EventGrid/eventSubscriptions/read
ActionMicrosoft.EventGrid/eventSubscriptions/write
ActionMicrosoft.EventGrid/eventSubscriptions/delete
ActionMicrosoft.Storage/storageAccounts/blobServices/containers/read
ActionMicrosoft.Storage/storageAccounts/fileServices/shares/read

Defender Storage Automated Malware Remediation

Grants additional permissions for Microsoft Defender for Storage automated remediation operations including soft-delete management and blob deletion.

Role ID: c6c9b2d8-9a5e-4122-85e1-81612a046ab2

Permission TypePermission
ActionMicrosoft.Storage/storageAccounts/blobServices/read
ActionMicrosoft.Storage/storageAccounts/blobServices/write
DataActionMicrosoft.Storage/storageAccounts/blobServices/containers/blobs/delete
This post is licensed under CC BY 4.0 by the author.