简体   繁体   English

是否有 azure 策略拒绝存储帐户部署以确保 json 自定义策略中的软删除?

[英]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.

相关问题 使用拒绝策略将容器添加到存储帐户 - Add container to storage account with deny policy 如何为存储帐户创建自定义策略以拒绝公共访问并允许选定的网络绕过 AzureServices? - How to create a custom policy for storage account to deny public access and allow selected networks bypassing the AzureServices? 如何设置附加到Azure存储的Azure搜索软删除策略 - How to setup an Azure Search soft-delete policy attached to Azure Storage 修复 Azure 存储帐户的网络限制策略 - Remediation for Network restriction policy of Azure Storage account 使用 Azure 策略将角色分配给存储帐户 - Use Azure policy to assign a role to a storage account Azure 禁止创建存储帐户的策略 - Azure Policy to disallow Storage account creation 如何确保永久执行存储帐户 Azure 策略的诊断设置? - How to ensure the diagnostic settings for storage accounts Azure policy is permanently enforced? 存储帐户生命周期策略管理工作的 Azure IAM 权限是什么? - What are the Azure IAM permissions for storage account lifecycle policy management to work? 使用 azure 策略将客户管理的密钥附加到存储帐户 - Appending customer managed keys to storage account using azure policy 使用 Azure 策略定义为存储帐户启用诊断设置 - Enable diagnostic settings for Storage account using Azure Policy Definition
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM