Skip to content

Declaring user-defined data type differences/usage #14054

Answered by johnlokerse
kamfaima asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kamfaima, there is no (technical) difference between those two examples. It's just a syntactic difference...

If we take a look at Azure Verified Modules (AVM - Key Vault) you also see this, but the focus is more on the name of the parameter. For example, in AVM a type that is an array is written in plural (e.g. accessPolicies or secrets) and other types such as string, int, bool are written in singular (e.g. enableRbacAuthorization or name).

So it depends on your own Bicep code convention how to deal with this. Both options are fine though!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kamfaima
Comment options

Answer selected by jeskew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants