[英]Is there an azure policy to deny Storage account deployment to ensure soft delete in json custom policy?
I have tried these two policy aliases which didn't work我已经尝试了这两个不起作用的策略别名
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Storage/storageAccounts/blobServices"
},
{
"field": "Microsoft.Storage/storageAccounts/blobServices/deleteRetentionPolicy.enabled",
# "Microsoft.Storage/storageAccounts/blobServices/deleteRetentionPolicy.enabled"
"equals": false
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
}
}, },
No, currently, there is no such policy for that.不,目前没有这样的政策。
There is already an user feedback here , please up-vote it.这里已经有用户反馈,请投票。 Let's wait the team to implement this feature.让我们等待团队实现此功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.