0

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!

Iain Hallam
  • 447
  • 2
  • 6
  • 21

0 Answers0