Microsoft.Network virtualHubs/routeTables

Template format

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

{
  "name": "string",
  "type": "Microsoft.Network/virtualHubs/routeTables",
  "apiVersion": "2020-07-01",
  "properties": {
    "routes": [
      {
        "destinationType": "string",
        "destinations": [
          "string"
        ],
        "nextHopType": "string",
        "nextHops": [
          "string"
        ]
      }
    ],
    "attachedConnections": [
      "string"
    ]
  }
}

Property values

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

Microsoft.Network/virtualHubs/routeTables object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes The name of the route table.
type enum Yes For JSON -routeTables
-or-
Microsoft.Network/virtualHubs/routeTables

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2020-07-01
properties object Yes Properties of the virtual hub route table v2. - VirtualHubRouteTableV2Properties object

VirtualHubRouteTableV2Properties object

Name Type Required Value
routes array No List of all routes. - VirtualHubRouteV2 object
attachedConnections array No List of all connections attached to this route table v2. - string

VirtualHubRouteV2 object

Name Type Required Value
destinationType string No The type of destinations.
destinations array No List of all destinations. - string
nextHopType string No The type of next hops.
nextHops array No NextHops ip address. - string