如果用户是资源组和其中的SQL Server实例的所有者,则他/她可以配置LTR策略。但是,当尝试在“可用备份”选项卡中列出它们时,没有任何内容。选择“长期备份保留”时,这同样适用于数据库还原。 是否有人知道可以解决此问题的某些角色或资源访问权限?
p.s。不再使用保险柜。
[解决方案]订阅级别的“ SQL Server贡献者”角色可解决该问题。无论如何,谢谢大家。
答案 0 :(得分:0)
作为一种解决方法,您可以尝试使用PowerShell列出服务器内的LTR备份:
# Get the list of all LTR backups in a specific Azure region
# The backups are grouped by the logical database id.
# Within each group they are ordered by the timestamp, the earliest
# backup first.
$ltrBackups = Get-AzureRmSqlDatabaseLongTermRetentionBackup -LocationName $server.Location
# Get the list of LTR backups from the Azure region under
# the named server.
$ltrBackups = Get-AzureRmSqlDatabaseLongTermRetentionBackup -LocationName $server.Location -ServerName $serverName
# Get the LTR backups for a specific database from the Azure region under the named server
$ltrBackups = Get-AzureRmSqlDatabaseLongTermRetentionBackup -LocationName $server.Location -ServerName $serverName -DatabaseName $dbName
# List LTR backups only from live databases (you have option to choose All/Live/Deleted)
$ltrBackups = Get-AzureRmSqlDatabaseLongTermRetentionBackup -LocationName $server.Location -DatabaseState Live
# Only list the latest LTR backup for each database
$ltrBackups = Get-AzureRmSqlDatabaseLongTermRetentionBackup -LocationName $server.Location -ServerName $serverName -OnlyLatestPerDatabase
确保按照here的说明正确配置了LTR备份。