Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-07-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "tags": {"displayname": "public ip", "quickstartname": "[variables('quickstarttags').name]", "provider": "[variables('todoapptags').provider]"}, "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[variables('dnsnameforpublicip')]"}}}{"type": "microsoft.network/networksecuritygroups", "name": "[variables('nsgname')]", "apiversion": "2020-07-01", "location": "[parameters('location')]", "comments": "nsg for subnet", "tags": {"displayname": "network security group", "quickstartname": "[variables('quickstarttags').name]", "provider": "[variables('todoapptags').provider]"}, "properties": {"securityrules": [{"name": "ssh-allow", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "internet", "destinationaddressprefix": "10.0.0.0/16", "access": "allow", "priority": 110, "direction": "inbound"}}, {"name": "nodejs-allow", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8080", "destinationaddressprefix": "10.0.0.0/16", "sourceaddressprefix": "internet", "access": "allow", "priority": 120, "direction": "inbound"}}]}}{"apiversion": "2020-07-01", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups/", variables('nsgname'))]"], "tags": {"displayname": "virtual network", "quickstartname": "[variables('quickstarttags').name]", "provider": "[variables('todoapptags').provider]"}, "properties": {"addressspace": {"addressprefixes": ["10.0.0.0/16"]}, "subnets": [{"name": "subnet", "properties": {"addressprefix": "10.0.0.0/24", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgname'))]"}}}]}}{"apiversion": "2020-07-01", "type": "microsoft.network/networkinterfaces", "name": "[variables('nicname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('publicipaddressname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]"], "tags": {"displayname": "network interface card", "quickstartname": "[variables('quickstarttags').name]", "provider": "[variables('todoapptags').provider]"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "dynamic", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('publicipaddressname'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets/",variables('virtualnetworkname'), "subnet')]"}}}]}} 