我认为您需要在资源Microsoft.RecoveryServices/vaults/backupPolicies 的properties 中指定"timeZone": "Romance Standard Time"。
试用该示例对我有用,testpolicy 是使用Romance Standard Time 配置的策略。
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vault_name": {
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.RecoveryServices/vaults",
"apiVersion": "2021-01-01",
"name": "[parameters('vault_name')]",
"location": "westus2",
"tags": {
},
"sku": {
"name": "RS0",
"tier": "Standard"
},
"properties": {}
},
{
"type": "Microsoft.RecoveryServices/vaults/backupPolicies",
"apiVersion": "2021-01-01",
"name": "[concat(parameters('vault_name'), '/testpolicy')]",
"dependsOn": [
"[resourceId('Microsoft.RecoveryServices/vaults', parameters('vault_name'))]"
],
"properties": {
"backupManagementType": "AzureIaasVM",
"instantRPDetails": {},
"schedulePolicy": {
"schedulePolicyType": "SimpleSchedulePolicy",
"scheduleRunFrequency": "Daily",
"scheduleRunTimes": [
"2021-05-04T04:30:00Z"
],
"scheduleWeeklyFrequency": 0
},
"retentionPolicy": {
"retentionPolicyType": "LongTermRetentionPolicy",
"dailySchedule": {
"retentionTimes": [
"2021-05-04T04:30:00Z"
],
"retentionDuration": {
"count": 180,
"durationType": "Days"
}
}
},
"instantRpRetentionRangeInDays": 2,
"timeZone": "Romance Standard Time",
"protectedItemsCount": 0
}
}
]
}
在门户中查看结果: