Is it possible to parametrise getSecret arguments in bicepparam files? #11761
Closed
oliverlabs
started this conversation in
Authoring Help
Replies: 1 comment
-
This should be possible in Bicep 0.21.1, which was released at the end of last week. You can use symbolic references or interpolated strings for all arguments to using './main.bicep'
param location = '<region>'
param subscriptionId = '<subscriptionId>'
param rgName = '<rgName>'
param kvName = '<kvName>'
param sqlServerName = '<serverName>'
param adminLogin = 'exampleadmin'
param adminPassword = az.getSecret(subscriptionId, rgName, kvName, 'ExamplePassword') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Example
.bicepparam
file:I would like to reference
subscriptionId
,rgName
, andkvName
params in theadminPassword
param. Is that possible or do I have to always explicitly specify them?I tried referencing via
az.getSecret('${subscriptionId}', <...>)
, but it didn't seem to work.Error message:
Beta Was this translation helpful? Give feedback.
All reactions