Skip to content
Discussion options

You must be logged in to vote

The only way to secure strings is via the secure string parameter, in which case it can be pulled from a keyvault.

  • You will have to add these as individual parameters on your template.
@secure()
param serviceURI1 string

unless you are able to read it from somewhere in Azure via listkeys etc.

below is a sample of one way to achieve this via a secret lookup. You will need to pre-create the secret values in the KV.

var actionGroups = [
  {
    'name': 'AG01'
    'secretName': 'webHook1'
  }
]

var kvName = 'mykv1'

resource KV 'Microsoft.KeyVault/vaults@2021-06-01-preview' existing = {
  name: kvName
}

module actionGroup 'actionGroup.bicep' = [ for (ag,index) in actionGroups : {
  name: '…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brwilkinson
Comment options

@klausgh4836
Comment options

Answer selected by brwilkinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants