Skip to content
Discussion options

You must be logged in to vote

Right, it's my own misunderstanding of how they get populated. One of those things when you post it, you get it a few min later. I think it's better to create separate resources and reference them via resourceId(), but for those who want to know what it looks like the way i was doing it:

resource vnet 'Microsoft.Network/virtualNetworks@2020-06-01' = {
    name                            : p_vnetObject.name
    location                        : resourceGroup().location
    properties                      : {
        addressSpace                : {
            addressPrefixes         : p_vnetObject.cidr
        }
        subnets                     : [for subitem in p_vnetObject.subnets: {
…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by alex-frankel
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