[英]How to access azure portal’s configuration from devOps pipeline?
I've configured some environmental variables for my web app under azure portal's “configuration > environmental variable” section.我已经在 azure 门户的“配置 > 环境变量”部分下为我的 web 应用程序配置了一些环境变量。 (portal.azure.com) (传送门.azure.com)
Now I need these variables in devOps during pipeline execution.现在我在管道执行期间需要这些变量在 devOps 中。
Note: I can't hardcode environmental variables directly in devOps itself (pipeline variables) due to organizations security restrictions.注意:由于组织的安全限制,我不能直接在 devOps 本身(管道变量)中硬编码环境变量。
Also, saw that I can use key vault for this purpose, still keyvault needs a url and secret, which got to be hard coded in devOps.另外,看到我可以为此目的使用密钥保险库,但密钥保险库仍然需要 url 和机密,必须在 devOps 中硬编码。
Any idea on how to consume the environmental variables in devOps directly from azure portal's configuration?关于如何直接从 azure 门户的配置中使用 devOps 中的环境变量的任何想法?
You can integrate Azure Key Vault with Azure DevOps Variable Groups.您可以将 Azure Key Vault 与 Azure DevOps 变量组集成。 Here is an article on how to do it: https://zimmergren.net/using-azure-key-vault-secrets-from-azure-devops-pipeline/这是一篇关于如何做到这一点的文章: https://zimmergren.net/using-azure-key-vault-secrets-from-azure-devops-pipeline/
Additionally, you can use the Azure Key Vault Task in Azure DevOps: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-key-vault?view=azure-devops Additionally, you can use the Azure Key Vault Task in Azure DevOps: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-key-vault?view=azure-devops
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.