Search code examples
azure-devopsazure-logic-appsazure-keyvaultazure-rm-template

How to override the key vault reference parameters in ARM Template using "ARM Template Deployment" task in Azure DevOps


I have developed logic app using VS2019. In that I’m reading the secret value from Azure Key Vault using the below lines of code:

logicapp.parameters.json

"azuretables_sharedkey": {
  "reference": {
    "keyVault": {
      "id": "/subscriptions/XXXXXXXXX/resourceGroups/XXXXXXXXXXX/providers/Microsoft.KeyVault/vaults/XXXX-KV-NonProd"
    },
    "secretName": "StorageAccountSharedKey"
  }
},

I have configured Build and Release pipeline to deploy the logic app into Azure using “ARM Template Deployment” task in Azure DevOps. But I want to override the above key vault reference parameters in Azure DevOps Build and Release Pipeline.

So, can anyone suggest me how to do it?


Solution

  • I have removed key vault reference code from template file. And then integrated Azure Key Vault with Common Library in Azure DevOps CI/CD pipelines by following this documentation.