Microsoft.Network virtualHubs/hubVirtualNetworkConnections 2020-05-01

Template format

To create a Microsoft.Network/virtualHubs/hubVirtualNetworkConnections resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Network/virtualHubs/hubVirtualNetworkConnections",
  "apiVersion": "2020-05-01",
  "properties": {
    "remoteVirtualNetwork": {
      "id": "string"
    },
    "allowHubToRemoteVnetTransit": "boolean",
    "allowRemoteVnetToUseHubVnetGateways": "boolean",
    "enableInternetSecurity": "boolean",
    "routingConfiguration": {
      "associatedRouteTable": {
        "id": "string"
      },
      "propagatedRouteTables": {
        "labels": [
          "string"
        ],
        "ids": [
          {
            "id": "string"
          }
        ]
      },
      "vnetRoutes": {
        "staticRoutes": [
          {
            "name": "string",
            "addressPrefixes": [
              "string"
            ],
            "nextHopIpAddress": "string"
          }
        ]
      }
    }
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Network/virtualHubs/hubVirtualNetworkConnections object

Name Type Required Value
name string Yes The name of the HubVirtualNetworkConnection.
type enum Yes hubVirtualNetworkConnections
-or-
Microsoft.Network/virtualHubs/hubVirtualNetworkConnections

See Set name and type for child resources.
apiVersion enum Yes 2020-05-01
properties object Yes Properties of the hub virtual network connection. - HubVirtualNetworkConnectionProperties object

HubVirtualNetworkConnectionProperties object

Name Type Required Value
remoteVirtualNetwork object No Reference to the remote virtual network. - SubResource object
allowHubToRemoteVnetTransit boolean No Deprecated: VirtualHub to RemoteVnet transit to enabled or not.
allowRemoteVnetToUseHubVnetGateways boolean No Deprecated: Allow RemoteVnet to use Virtual Hub's gateways.
enableInternetSecurity boolean No Enable internet security.
routingConfiguration object No The Routing Configuration indicating the associated and propagated route tables on this connection. - RoutingConfiguration object

SubResource object

Name Type Required Value
id string No Resource ID.

RoutingConfiguration object

Name Type Required Value
associatedRouteTable object No The resource id RouteTable associated with this RoutingConfiguration. - SubResource object
propagatedRouteTables object No The list of RouteTables to advertise the routes to. - PropagatedRouteTable object
vnetRoutes object No List of routes that control routing from VirtualHub into a virtual network connection. - VnetRoute object

PropagatedRouteTable object

Name Type Required Value
labels array No The list of labels. - string
ids array No The list of resource ids of all the RouteTables. - SubResource object

VnetRoute object

Name Type Required Value
staticRoutes array No List of all Static Routes. - StaticRoute object

StaticRoute object

Name Type Required Value
name string No The name of the StaticRoute that is unique within a VnetRoute.
addressPrefixes array No List of all address prefixes. - string
nextHopIpAddress string No The ip address of the next hop.