Azure Virtual Machine Scanning Setup
Why should I scan my virtual machines?
Prerequisites
Create a custom role
4
Paste the role JSON
"assignableScopes": [
"/subscriptions/<your-subscription-id>"
]"assignableScopes": [
"/providers/Microsoft.Management/managementGroups/<your-directory-tenant-id>"
]{
"properties": {
"roleName": "Aikido VM Scanner",
"description": "",
"assignableScopes": [
"<insert scope from above>"
],
"permissions": [
{
"actions": [
"Microsoft.Compute/virtualMachines/read",
"Microsoft.Compute/disks/beginGetAccess/action",
"Microsoft.Compute/disks/endGetAccess/action",
"Microsoft.Compute/disks/read",
"Microsoft.Compute/snapshots/read",
"Microsoft.Compute/snapshots/write",
"Microsoft.Compute/snapshots/delete",
"Microsoft.Compute/snapshots/beginGetAccess/action",
"Microsoft.Compute/snapshots/endGetAccess/action",
"Microsoft.Authorization/roleAssignments/read"
],
"notActions": [],
"dataActions": [],
"notDataActions": []
}
]
}
}Assign the role to your app registration
VM grouping
Last updated
Was this helpful?