Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created March 12, 2022 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlokerse/3d3a262b9306c62e933f625afe79d7cf to your computer and use it in GitHub Desktop.
Save johnlokerse/3d3a262b9306c62e933f625afe79d7cf to your computer and use it in GitHub Desktop.
resource myKv 'Microsoft.KeyVault/vaults@2021-11-01-preview' existing = {
name: 'kv-john-2022'
scope: resourceGroup(subId, rgName)
}
module vm 'virtualMachine.bicep' = {
name: 'my-vm'
params: {
adminPassword: myKv.getSecret('adminPassword')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment