Open StephenWeatherford opened 2 years ago
NOTE: This means that any references directly to the subnet need to change to reference(), or else you also need to add an "existing" resource for the subnets in order to use a symbolic name.
Editing the title, because the linter rule should now actually be the reverse. All subnets should be declared as child resources once the new API rolls out fully.
See also https://github.com/Azure/bicep/issues/3886
Example:
GOOD: https://github.com/Azure/bicep/blob/cb2fb8d223862260cfe8bfdc5899477deca3ff7f/docs/examples/101/vnet-two-subnets/main.bicep#L23
BAD: https://github.com/Azure/azure-quickstart-templates/blob/0fc9fbd4407bbb1f58148bdc7247aa095c16b39a/quickstarts/microsoft.network/vnet-two-subnets/main.bicep#L33