Bicep naming conventions/standards #2761
Answered
by
alex-frankel
brwilkinson
asked this question in
General
-
Are there any Bicep naming standards docs or info on conventions available? As an example:
from the spec docs it seems just use camel case everywhere? :) var locationlookup = {
AZE2: 'eastus2'
AZC1: 'centralus'
AEU2: 'eastus2'
ACU1: 'centralus'
}
var location = locationlookup[prefix]
var identity = [for uai in deploymentinfo.uaiInfo: {
name: uai.name
match: global.cn == '.' || contains(global.cn, uai.name)
}]
resource RG 'Microsoft.Resources/resourceGroups@2021-01-01' = {
name: rg
location: location
properties:{}
}
module UAI './RG-UAI.bicep' = [for (uai, index) in identity: if (uai.match) {
name: 'mod-uai-${uai.name}'
scope: RG
params: {
uai: uai
}
}]
output enviro string = enviro
output deployment string = deployment
output location string = location
``` |
Beta Was this translation helpful? Give feedback.
Answered by
alex-frankel
May 21, 2021
Replies: 1 comment
-
We have been doing camelCase everywhere. The only official guidance is in our PR submission template, which states that you should use camelCase in your examples/snippets unless you have a compelling reason to use something else. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
brwilkinson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have been doing camelCase everywhere. The only official guidance is in our PR submission template, which states that you should use camelCase in your examples/snippets unless you have a compelling reason to use something else.