← cd ~/roles
// roles/azure · databases
PostgreSQL Flexible Server Long Term Retention Backup RoleAzure built-in role
Role to allow backup vault to access PostgreSQL Flexible Server Resource APIs for Long Term Retention Backup.
| Role ID | c088a766-074b-43ba-90d4-1fb21feae531 |
|---|---|
| Category | Databases |
| Actions | 14 |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.DBforPostgreSQL/flexibleServers/ltrBackup/action | Start LTR backup operation for a server |
Microsoft.DBforPostgreSQL/flexibleServers/ltrBackupAccess/action | Start LTR backup access operation for a server |
Microsoft.DBforPostgreSQL/flexibleServers/ltrBackupOperations/read | Returns the PostgreSQL server long term backup operation tracking by backup name. |
Microsoft.DBforPostgreSQL/flexibleServers/ltrBackupPreCheck/action | Start LTR backup pre-check operation for a server |
Microsoft.DBforPostgreSQL/flexibleServers/ltrPreBackup/action | Checks if a server is ready for a long term backup |
Microsoft.DBforPostgreSQL/flexibleServers/ltrRestoreFinalize/action | Start LTR restore finalize operation for a server |
Microsoft.DBforPostgreSQL/flexibleServers/ltrRestoreInitialize/action | Start LTR restore initialize operation for a server |
Microsoft.DBforPostgreSQL/flexibleServers/ltrRestorePreCheck/action | Start LTR restore pre-check operation for a server |
Microsoft.DBforPostgreSQL/flexibleServers/read | Return the list of servers or gets the properties for the specified server. |
Microsoft.DBforPostgreSQL/flexibleServers/startLtrBackup/action | Start long term backup for a server |
Microsoft.DBforPostgreSQL/locations/azureAsyncOperation/read | Return PostgreSQL Server Operation Results |
Microsoft.DBforPostgreSQL/locations/operationResults/read | Return ResourceGroup based PostgreSQL Server Operation Results |
Microsoft.Resources/subscriptions/read | Gets the list of subscriptions. |
Microsoft.Resources/subscriptions/resourceGroups/read | Gets or lists resource groups. |
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 "PostgreSQL Flexible Server Long Term Retention Backup Role" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "PostgreSQL Flexible Server Long Term Retention Backup Role" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, 'c088a766-074b-43ba-90d4-1fb21feae531')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'c088a766-074b-43ba-90d4-1fb21feae531')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "c088a766-074b-43ba-90d4-1fb21feae531"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)Other databases roles
- Azure Connected SQL Server Onboarding · 2 permissions
- CosmosBackupOperator · 2 permissions
- Semantic Reranker User · 2 permissions
- CosmosRestoreOperator · 3 permissions
- Cosmos DB Account Reader Role · 7 permissions
- Cosmos DB Operator · 8 permissions
- DocumentDB Account Contributor · 8 permissions
- Redis Cache Contributor · 8 permissions