Real Azure resource example of resource nesting in Bicep #1944
-
RE: https://github.com/Azure/bicep/blob/main/docs/spec/resources.md#resource-nesting It would be great to get a real Azure resource example of how this is done. I've tried a few ways on a few things and have come up within nothing successful. I won't bother pasting my fails here, but does anyone have a proper example of the use case for this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This feature is checked into the main branch, but not available yet in the latest release. We are planning to get a release out today that will support this new syntax. Apologies for the confusion. |
Beta Was this translation helpful? Give feedback.
-
This seems to work now, thanks. resource asdf_kv 'Microsoft.KeyVault/vaults@2019-09-01' = {
name : name
location : resourceGroup().location
properties : {
sku : {
family : 'A'
name : 'standard'
}
tenantId : subscription().tenantId
accessPolicies: accessPolicies
}
resource mySecret 'secrets@2019-09-01' = {
name : 'mySecret'
properties: {
value : 'Super$ecret'
}
}
} |
Beta Was this translation helpful? Give feedback.
This seems to work now, thanks.