首页 > 解决方案 > 如何在 Chef Inspec 中集成 azure msi?

问题描述

我们正在尝试在 azdo 中使用 chef inspec 来验证 terraform 配置的资源,但这里看起来我们必须键入tenantid、secretid、clientid 和订阅。有什么方法可以在 Chef Inspec中使用azure msi而无需解析秘密?

标签: azure-devopschef-infrainspec

解决方案


  1. You can pass values as a secret variables to your pipeline job. Then replace chef inspec azure authentication environment variables with these secrets.

  2. If you don't want to pass variables, then save Azure SPN credentials in Azure Key Vault and use AzureKeyVault@2 task in your pipeline to read and set chef inspec azure authentication environment variables.


推荐阅读