[英]How to integrate Azure Policy with Azure DevOps?
I created the ARM templates for Azure Web App, Azure SQL Database, Key vault and Azure Storage.我为 Azure Web App、Azure SQL 数据库、Key Vault 和 Azure 存储创建了 ARM 模板。 And deployed these ARM templates in to azure using Azure DevOps process CI and CD.
并使用 Azure DevOps 流程 CI 和 CD 将这些 ARM 模板部署到 azure 中。
But I want to enforce policies as part of the development process.但我想将政策作为开发过程的一部分。 I know Microsoft released the feature of Azure Policy integration with Azure DevOps is now available.
我知道 Microsoft 发布了 Azure Policy 与 Azure DevOps 集成的功能现已可用。 But I don't know how to integrate policies with Azure DevOps.
但我不知道如何将策略与 Azure DevOps 集成。
Can anyone suggest me or provide any useful documentation?任何人都可以建议我或提供任何有用的文档吗?
After creating and assigning policies, they are automatically evaluated on every template deployment.创建和分配策略后,它们会在每个模板部署上自动进行评估。 If there is an attempt to deploy a template that violates a policy with a deny effect, you can see this in Azure DevOps:
如果尝试部署违反具有拒绝效果的策略的模板,您可以在 Azure DevOps 中看到这一点:
Edit: How to use steps for creating and assigning policies and finding the output can be found on the docs: https://docs.microsoft.com/en-us/azure/devops/pipelines/release/azure-policy?view=azure-devops .编辑:如何使用创建和分配策略以及查找输出的步骤可以在文档中找到: https : //docs.microsoft.com/en-us/azure/devops/pipelines/release/azure-policy? view = azure-devops 。 Also, you can now evaluate Azure Policies via an Release Gate.
此外,您现在可以通过 Release Gate 评估 Azure 策略。 See: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-policy-check-gate?view=azure-devops
请参阅: https : //docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-policy-check-gate?view=azure-devops
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.