Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networksecuritygroups", "name": "[concat(variables('nsgname'))]", "apiversion": "2020-07-01", "location": "[parameters('location')]", "condition": "[equals(length(parameters('subnetid')), 0)]", "properties": {"securityrules": "[variables('selectedsecurityrules')]"}}{"type": "microsoft.network/virtualnetworks", "name": "[variables('vnetname')]", "apiversion": "2020-07-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups/", variables('nsgname'))]"], "condition": "[equals(length(parameters('subnetid')), 0)]", "properties": {"addressspace": {"addressprefixes": ["10.0.0.0/16"]}, "subnets": [{"name": "[variables('subnetname')]", "properties": {"addressprefix": "10.0.0.0/24", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgname'))]"}}}]}}{"type": "microsoft.network/publicipaddresses", "name": "[concat(variables('publicipnamedb'), "-", copyindex())]", "apiversion": "2020-07-01", "condition": "[equals(length(parameters('subnetid')), 0)]", "dependson": ["[resourceid('microsoft.network/virtualnetworks/", variables('vnetname'))]"], "location": "[parameters('location')]", "copy": {"name": "dbpiploop", "count": "[variables('dbvmcount')]"}, "properties": {"publicipallocationmethod": "dynamic"}}{"type": "microsoft.network/loadbalancers", "name": "[variables('loadbalancernamedb')]", "apiversion": "2020-07-01", "location": "[parameters('location')]", "condition": "[greater(variables('dbvmcount') , 1)]", "dependson": ["[resourceid('microsoft.network/virtualnetworks/", variables('vnetname'))]"], "properties": {"frontendipconfigurations": "[variables('lbfrontendconfigs')[parameters('dbtype')][variables('internalostype')]]", "backendaddresspools": "[variables('lbbackendpools')[parameters('dbtype')][variables('internalostype')]]", "loadbalancingrules": "[variables('lbrules')[parameters('dbtype')][variables('internalostype')]]", "probes": "[variables('lbprobes')[parameters('dbtype')][variables('internalostype')]]"}} 