Azure role · 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.
Read onlyChange some thingsChange anythingGive access to others
Medium risk. It can create, change or delete some resources in scope.
In short: PostgreSQL Flexible Server Long Term Retention Backup Role is an Azure built-in role with 14 actions.
| 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>"What each line does
- Line 1: Creates a role assignment in Azure. Makes a change.
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
Find the smallest role for a task →
Link to this page
Writing a guide or answering a question? Copy this link.
<a href="https://azureblog.co.uk/roles/azure/postgresql-flexible-server-long-term-retention-backup-role/">PostgreSQL Flexible Server Long Term Retention Backup Role Azure role explained</a>Spotted something out of date or wrong? Tell us and we'll fix it.