Skip to content

Commit

Permalink
Add basic Azure VM protection permisison set
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamaggarwal-rubrik committed Jul 29, 2023
1 parent 7b46c3a commit eb2100a
Show file tree
Hide file tree
Showing 3 changed files with 311 additions and 0 deletions.
228 changes: 228 additions & 0 deletions vm-protection/version-1/permission-group-BASIC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
[
{
"Actions": [
{
"value": "Microsoft.Compute/disks/read",
"use_case": "Use to retrieve the properties of a disk.",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/locations/vmSizes/read",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/skus/read",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/virtualMachines/instanceView/read",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/virtualMachines/start/action",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/virtualMachines/read",
"scope": "subscription"
},
{
"value": "Microsoft.Network/networkInterfaces/ipconfigurations/read",
"scope": "subscription"
},
{
"value": "Microsoft.Network/networkInterfaces/read",
"scope": "subscription"
},
{
"value": "Microsoft.Network/networkSecurityGroups/read",
"scope": "subscription"
},
{
"value": "Microsoft.Network/virtualNetworks/read",
"scope": "subscription"
},
{
"value": "Microsoft.Network/virtualNetworks/subnets/read",
"scope": "subscription"
},
{
"value": "Microsoft.Resources/checkResourceName/action",
"scope": "subscription"
},
{
"value": "Microsoft.Resources/subscriptions/locations/read",
"scope": "subscription"
},
{
"value": "Microsoft.Resources/subscriptions/resourceGroups/read",
"scope": "subscription"
},
{
"value": "Microsoft.Resources/subscriptions/resourceGroups/resources/read",
"scope": "subscription"
},
{
"value": "Microsoft.Storage/storageAccounts/blobServices/containers/read",
"scope": "subscription"
},
{
"value": "Microsoft.Resources/subscriptions/resources/read",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/availabilitySets/read",
"scope": "subscription"
},
{
"value": "Microsoft.Storage/storageAccounts/read",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/diskEncryptionSets/read",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/galleries/images/versions/read",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/disks/beginGetAccess/action",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/disks/endGetAccess/action",
"scope": "subscription"
},
{
"value": "Microsoft.Network/networkSecurityGroups/join/action",
"scope": "subscription"
},
{
"value": "Microsoft.Network/virtualNetworks/subnets/join/action",
"scope": "subscription"
},
{
"value": "Microsoft.Network/networkInterfaces/join/action",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/snapshots/read",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Compute/snapshots/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Compute/snapshots/delete",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Compute/snapshots/beginGetAccess/action",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Compute/snapshots/endGetAccess/action",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Resources/subscriptions/resourceGroups/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Authorization/locks/read",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Authorization/locks/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Authorization/locks/delete",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Storage/storageAccounts/listServiceSas/action",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Compute/disks/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Compute/disks/delete",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Compute/virtualMachines/delete",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Compute/virtualMachines/powerOff/action",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Compute/virtualMachines/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Network/networkInterfaces/delete",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Network/networkInterfaces/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.KeyVault/vaults/deploy/action",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Compute/virtualMachines/extensions/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Network/networkSecurityGroups/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Network/networkSecurityGroups/delete",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Storage/storageAccounts/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Storage/storageAccounts/blobServices/containers/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Storage/storageAccounts/blobServices/containers/delete",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Storage/storageAccounts/listkeys/action",
"use_case": "Required for accessing container for CCES. CCES needs storage container key during bootstrap.",
"scope": "subscription"
}
],
"NotActions": null,
"DataActions": [
{
"value": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read",
"scope": "subscription"
},
{
"value": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write",
"scope": "resourceGroup"
},
{
"value": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/delete",
"scope": "resourceGroup"
}
],
"NotDataActions": null
}
]
53 changes: 53 additions & 0 deletions vm-protection/version-1/permission-group-EXPORT_AND_RESTORE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[
{
"Actions": [
{
"value": "Microsoft.Compute/disks/write",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/disks/delete",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/virtualMachines/delete",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/virtualMachines/powerOff/action",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/virtualMachines/write",
"scope": "subscription"
},
{
"value": "Microsoft.Network/networkInterfaces/delete",
"scope": "subscription"
},
{
"value": "Microsoft.Network/networkInterfaces/write",
"scope": "subscription"
},
{
"value": "Microsoft.KeyVault/vaults/deploy/action",
"scope": "subscription"
},
{
"value": "Microsoft.Compute/virtualMachines/extensions/write",
"scope": "subscription"
},
{
"value": "Microsoft.Network/networkSecurityGroups/write",
"scope": "subscription"
},
{
"value": "Microsoft.Network/networkSecurityGroups/delete",
"scope": "subscription"
}
],
"NotActions": null,
"DataActions": null,
"NotDataActions": null
}
]
30 changes: 30 additions & 0 deletions vm-protection/version-1/permission-group-FILE_LEVEL_RECOVERY.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"Actions": [
{
"value": "Microsoft.Storage/storageAccounts/write",
"scope": "subscription"
},
{
"value": "Microsoft.Storage/storageAccounts/blobServices/containers/write",
"scope": "subscription"
},
{
"value": "Microsoft.Storage/storageAccounts/blobServices/containers/delete",
"scope": "subscription"
}
],
"NotActions": null,
"DataActions": [
{
"value": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write",
"scope": "subscription"
},
{
"value": "Microsoft.Storage/storageAccounts/blobServices/containers/blobs/delete",
"scope": "subscription"
}
],
"NotDataActions": null
}
]

0 comments on commit eb2100a

Please sign in to comment.