0
votes

I’ve configured some environmental variables for my web app under azure portal’s “configuration > environmental variable” section. (portal.azure.com)

Now I need these variables in devOps during pipeline execution.

Note: I can’t hardcode environmental variables directly in devOps itself (pipeline variables) due to organizations security restrictions.

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.

Any idea on how to consume the environmental variables in devOps directly from azure portal’s configuration?

1

1 Answers

1
votes

You can integrate Azure Key Vault with Azure DevOps Variable Groups. Here is an article on how to do it: 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