简体   繁体   English

如何从 devOps 管道访问 azure 门户的配置?

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

相关问题 如何从管道 Azure Devops 访问私有存储库? - How to access a private repository from a pipeline Azure Devops? 从 Azure Devops 管道访问私有源 - Access to private feed from Azure Devops pipeline 如何删除管道对自托管代理的访问(没有原始 PAT 或对 azure devops 的访问)? - How to remove pipeline's access to self hosted agent (without the original PAT or access to the azure devops)? 如何从 Azure DevOps 触发 AzureML 管道? - How to trigger an AzureML Pipeline from Azure DevOps? 如何从 Azure DevOps 中的另一个管道触发一个管道阶段? - How to trigger one pipeline stage from another pipeline in Azure DevOps? PR 管道与 Azure Devops 中的 CI 管道有何不同? - How does a PR pipeline vary from CI pipeline in Azure Devops? 如何从 Azure Devops 中的另一个管道有条件地运行一个管道? - How to run one pipeline conditionally from another pipeline in Azure Devops? 如何从部署管道内的 Azure DevOps 安全文件访问 SSH 证书? - How to access SSH certificates from Azure DevOps Secure Files inside deployment pipeline? 从 Azure Devops Pipeline 上传到 AWS s3 存储桶 - Uploading to AWS s3 bucket from Azure Devops Pipeline 如何从Azure DevOps管道向Azure密钥库写入机密? - How to write a secret to azure key vault from Azure DevOps pipeline?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM