Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["10.0.0.0/16"]}, "subnets": [{"name": "[variables('subnetname')]", "properties": {"addressprefix": "10.0.2.0/24"}}]}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[concat(variables('networkinterfacename'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "nicloop", "count": "[variables('numberofinstances')]"}, "dependson": ["[variables('virtualnetworkname')]", "[variables('loadbalancername')]"], "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[variables('subnetref')]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('loadbalancername'), "backendpool1')]"}]}}]}}{"type": "microsoft.network/loadbalancers", "apiversion": "2020-06-01", "name": "[variables('loadbalancername')]", "location": "[parameters('location')]", "sku": {"name": "standard"}, "dependson": ["[variables('virtualnetworkname')]"], "properties": {"frontendipconfigurations": [{"properties": {"subnet": {"id": "[variables('subnetref')]"}, "privateipaddress": "10.0.2.6", "privateipallocationmethod": "static"}, "name": "loadbalancerfrontend"}], "backendaddresspools": [{"name": "backendpool1"}], "loadbalancingrules": [{"properties": {"frontendipconfiguration": {"id": "[resourceid('microsoft.network/loadbalancers/frontendipconfigurations", variables('loadbalancername'), "loadbalancerfrontend')]"}, "backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('loadbalancername'), "backendpool1')]"}, "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('loadbalancername'), "lbprobe')]"}, "protocol": "tcp", "frontendport": 80, "backendport": 80, "idletimeoutinminutes": 15}, "name": "lbrule"}], "probes": [{"properties": {"protocol": "tcp", "port": 80, "intervalinseconds": 15, "numberofprobes": 2}, "name": "lbprobe"}]}} 