azureblog.co.uk
Azure role · security

Security Manager (Legacy)Azure built-in role

This is a legacy role. Please use Security Administrator instead

In short: Security Manager (Legacy) is an Azure built-in role with 10 actions.

Role IDe3d13bf0-dd5a-482e-ba6b-9b8433878d10
CategorySecurity
Actions10
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.ClassicCompute/*/readAny read operation on anything under Microsoft.ClassicCompute
Microsoft.ClassicCompute/virtualMachines/*/writeAny write operation on anything under Microsoft.ClassicCompute/virtualMachines
Microsoft.ClassicNetwork/*/readAny read operation on anything under Microsoft.ClassicNetwork
Microsoft.Insights/alertRules/*Every operation under Microsoft.Insights/alertRules
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.Security/*Every operation under Microsoft.Security
Microsoft.Support/*Every operation under Microsoft.Support

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 "Security Manager (Legacy)" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines1 changes something · hover a line number for notes
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Security Manager (Legacy)" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
What each line does
  1. Line 1: Creates a role assignment in Azure. Makes a change.
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'e3d13bf0-dd5a-482e-ba6b-9b8433878d10')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'e3d13bf0-dd5a-482e-ba6b-9b8433878d10')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "e3d13bf0-dd5a-482e-ba6b-9b8433878d10"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other security roles

Find the smallest role for a task →

Link to this page

Writing a guide or answering a question? Copy this link.

html1 line
<a href="https://azureblog.co.uk/roles/azure/security-manager-legacy/">Security Manager (Legacy) Azure role explained</a>

Spotted something out of date or wrong? Tell us and we'll fix it.