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')]]"}}{"type": "microsoft.network/networkinterfaces", "name": "[concat(variables('nicnamedb'), "-", copyindex())]", "apiversion": "2020-07-01", "copy": {"name": "dbnicloop", "count": "[variables('dbvmcount')]"}, "dependson": ["dbpiploop", "[resourceid('microsoft.network/virtualnetworks/",  variables('vnetname'))]", "[resourceid('microsoft.network/loadbalancers/", variables('loadbalancernamedb'))]"], "location": "[parameters('location')]", "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "dynamic", "publicipaddress": "[if(equals(length(parameters(\"subnetid\')), 0), json(concat(\"{"id": "\", resourceid(\"microsoft.network/publicipaddresses\", concat(variables(\"publicipnamedb\'), \"-\", copyindex())) ,\""}\')), json(\"null\'))]", "subnet": {"id": "[variables('selectedsubnetid')]"}, "loadbalancerbackendaddresspools": "[if(greater(variables('dbvmcount') , 1), variables('nicbackaddresspools')[parameters('dbtype')][variables('internalostype')], json('null'))]"}}], "enableacceleratednetworking": "[variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].usefastnetwork]"}}