Microsoft.Network virtualHubs/hubRouteTables 2020-06-01

Template format

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

{
  "name": "string",
  "type": "Microsoft.Network/virtualHubs/hubRouteTables",
  "apiVersion": "2020-06-01",
  "properties": {
    "routes": [
      {
        "name": "string",
        "destinationType": "string",
        "destinations": [
          "string"
        ],
        "nextHopType": "string",
        "nextHop": "string"
      }
    ],
    "labels": [
      "string"
    ]
  }
}

Property values

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

Microsoft.Network/virtualHubs/hubRouteTables object

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

See Set name and type for child resources.
apiVersion enum Yes 2020-06-01
properties object Yes Properties of the RouteTable resource. - HubRouteTableProperties object

HubRouteTableProperties object

Name Type Required Value
routes array No List of all routes. - HubRoute object
labels array No List of labels associated with this route table. - string

HubRoute object

Name Type Required Value
name string Yes The name of the Route that is unique within a RouteTable. This name can be used to access this route.
destinationType string Yes The type of destinations (eg: CIDR, ResourceId, Service).
destinations array Yes List of all destinations. - string
nextHopType string Yes The type of next hop (eg: ResourceId).
nextHop string Yes NextHop resource ID.

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Secured virtual hubs

Deploy to Azure
This template creates a secured virtual hub using Azure Firewall to secure your cloud network traffic destined to the Internet.