Score:0

Does Microsoft's Bicep DSL allow line continuation in function calls?

cn flag

I'm starting to use Bicep to deploy Azure resources, and sometimes have to refer to other resources with the resourceId() function, but the arguments for this can be pretty long. In many languages, I could just put each parameter on its own line:

resourceId(
  'Microsoft.Network/virtualNetworks/subnets',
  'my-vnet',
  'my-subnet'
)

VSCode's Bicep linter marks this as an error, however, while it is fine with them all on a single line.

Is there a way to do this in Bicep? Microsoft's documentation on the actual syntax rules is either lacking or very hard to find!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.