Skip to content

Using variable or parameter for output name #3936

Answered by kevball2
kevball2 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks everyone for the feedback. Having a little time away from the issue and I realized I was needlessly complicating the problem.
having a generalized key Vault Secret module

param env string
param location string
param secretName string
param secretValue string

resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' existing = {
  name: 'kv-shared-${env}-${location}'
  resource secret 'secrets' = {
    name: secretName
    properties: {
    value:  secretValue
   }
  }
}

output keyVaultSecretUri string = keyVault::secret.properties.secretUri

all I need to do is name the module for the associated service secret being saved to the key vault.

module appInsightSecret 'keyvaultSecret.bi…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@kevball2
Comment options

@kevball2
Comment options

@brwilkinson
Comment options

@kevball2
Comment options

@brwilkinson
Comment options

Comment options

You must be logged in to vote
1 reply
@brwilkinson
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
3 participants