Microsoft.Network virtualHubs 2018-04-01
- Latest
- 2024-03-01
- 2024-01-01
- 2023-11-01
- 2023-09-01
- 2023-06-01
- 2023-05-01
- 2023-04-01
- 2023-02-01
- 2022-11-01
- 2022-09-01
- 2022-07-01
- 2022-05-01
- 2022-01-01
- 2021-08-01
- 2021-05-01
- 2021-03-01
- 2021-02-01
- 2020-11-01
- 2020-08-01
- 2020-07-01
- 2020-06-01
- 2020-05-01
- 2020-04-01
- 2020-03-01
- 2019-12-01
- 2019-11-01
- 2019-09-01
- 2019-08-01
- 2019-07-01
- 2019-06-01
- 2019-04-01
- 2019-02-01
- 2018-12-01
- 2018-11-01
- 2018-10-01
- 2018-08-01
- 2018-07-01
- 2018-06-01
- 2018-04-01
Bicep resource definition
The virtualHubs resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/virtualHubs resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Network/virtualHubs@2018-04-01' = {
location: 'string'
name: 'string'
properties: {
addressPrefix: 'string'
hubVirtualNetworkConnections: [
{
id: 'string'
location: 'string'
properties: {
allowHubToRemoteVnetTransit: bool
allowRemoteVnetToUseHubVnetGateways: bool
provisioningState: 'string'
remoteVirtualNetwork: {
id: 'string'
}
}
tags: {
{customized property}: 'string'
}
}
]
provisioningState: 'string'
virtualWan: {
id: 'string'
}
}
tags: {
{customized property}: 'string'
}
}
Property values
HubVirtualNetworkConnection
Name | Description | Value |
---|---|---|
id | Resource ID. | string |
location | Resource location. | string |
properties | Parameters for HubVirtualNetworkConnection | HubVirtualNetworkConnectionProperties |
tags | Resource tags. | ResourceTags |
HubVirtualNetworkConnectionProperties
Name | Description | Value |
---|---|---|
allowHubToRemoteVnetTransit | VirtualHub to RemoteVnet transit to enabled or not. | bool |
allowRemoteVnetToUseHubVnetGateways | Allow RemoteVnet to use Virtual Hub's gateways. | bool |
provisioningState | The provisioning state of the resource. | 'Deleting' 'Failed' 'Succeeded' 'Updating' |
remoteVirtualNetwork | Reference to the remote virtual network. | SubResource |
Microsoft.Network/virtualHubs
Name | Description | Value |
---|---|---|
location | Resource location. | string |
name | The resource name | string (required) |
properties | Parameters for VirtualHub | VirtualHubProperties |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
ResourceTags
Name | Description | Value |
---|
ResourceTags
Name | Description | Value |
---|
SubResource
Name | Description | Value |
---|---|---|
id | Resource ID. | string |
VirtualHubProperties
Name | Description | Value |
---|---|---|
addressPrefix | Address-prefix for this VirtualHub. | string |
hubVirtualNetworkConnections | list of all vnet connections with this VirtualHub. | HubVirtualNetworkConnection[] |
provisioningState | The provisioning state of the resource. | 'Deleting' 'Failed' 'Succeeded' 'Updating' |
virtualWan | The VirtualWAN to which the VirtualHub belongs | SubResource |
Quickstart samples
The following quickstart samples deploy this resource type.
Bicep File | Description |
---|---|
Create a Route Server in a New Subnet | This template deploys a Route Server into a subnet named RouteServerSubnet. |
Creates Virtual WAN resources | This template allows you to create virtual WAN resources including Virtual WAN, Virtual Hub, VPN Gateway, VPN Site and a VPN Connecton. |
Secured virtual hubs | This template creates a secured virtual hub using Azure Firewall to secure your cloud network traffic destined to the Internet. |
ARM template resource definition
The virtualHubs resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/virtualHubs resource, add the following JSON to your template.
{
"type": "Microsoft.Network/virtualHubs",
"apiVersion": "2018-04-01",
"name": "string",
"location": "string",
"properties": {
"addressPrefix": "string",
"hubVirtualNetworkConnections": [
{
"id": "string",
"location": "string",
"properties": {
"allowHubToRemoteVnetTransit": "bool",
"allowRemoteVnetToUseHubVnetGateways": "bool",
"provisioningState": "string",
"remoteVirtualNetwork": {
"id": "string"
}
},
"tags": {
"{customized property}": "string"
}
}
],
"provisioningState": "string",
"virtualWan": {
"id": "string"
}
},
"tags": {
"{customized property}": "string"
}
}
Property values
HubVirtualNetworkConnection
Name | Description | Value |
---|---|---|
id | Resource ID. | string |
location | Resource location. | string |
properties | Parameters for HubVirtualNetworkConnection | HubVirtualNetworkConnectionProperties |
tags | Resource tags. | ResourceTags |
HubVirtualNetworkConnectionProperties
Name | Description | Value |
---|---|---|
allowHubToRemoteVnetTransit | VirtualHub to RemoteVnet transit to enabled or not. | bool |
allowRemoteVnetToUseHubVnetGateways | Allow RemoteVnet to use Virtual Hub's gateways. | bool |
provisioningState | The provisioning state of the resource. | 'Deleting' 'Failed' 'Succeeded' 'Updating' |
remoteVirtualNetwork | Reference to the remote virtual network. | SubResource |
Microsoft.Network/virtualHubs
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2018-04-01' |
location | Resource location. | string |
name | The resource name | string (required) |
properties | Parameters for VirtualHub | VirtualHubProperties |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
type | The resource type | 'Microsoft.Network/virtualHubs' |
ResourceTags
Name | Description | Value |
---|
ResourceTags
Name | Description | Value |
---|
SubResource
Name | Description | Value |
---|---|---|
id | Resource ID. | string |
VirtualHubProperties
Name | Description | Value |
---|---|---|
addressPrefix | Address-prefix for this VirtualHub. | string |
hubVirtualNetworkConnections | list of all vnet connections with this VirtualHub. | HubVirtualNetworkConnection[] |
provisioningState | The provisioning state of the resource. | 'Deleting' 'Failed' 'Succeeded' 'Updating' |
virtualWan | The VirtualWAN to which the VirtualHub belongs | SubResource |
Quickstart templates
The following quickstart templates deploy this resource type.
Template | Description |
---|---|
Azure Route Server in BGP peering with Quagga |
This template deploys a Router Server and Ubuntu VM with Quagga. Two external BGP sessions are established between the Router Server and Quagga. Installation and configuration of Quagga is executed by Azure custom script extension for linux |
Azure Virtual WAN (vWAN) Multi-Hub Deployment |
This template allows you to create an Azure Virtual WAN (vWAN) multi-hub deployment including all gateways and VNET connections. |
Azure vWAN Multi-Hub Deployment with Custom Routing Tables |
This template allows you to create an Azure Virtual WAN (vWAN) multi-hub deployment, including all gateways and VNET connections, and demonstrate the usage of Route Tables for custom routing. |
Create a Route Server in a New Subnet |
This template deploys a Route Server into a subnet named RouteServerSubnet. |
Creates Virtual WAN resources |
This template allows you to create virtual WAN resources including Virtual WAN, Virtual Hub, VPN Gateway, VPN Site and a VPN Connecton. |
Secured virtual hubs |
This template creates a secured virtual hub using Azure Firewall to secure your cloud network traffic destined to the Internet. |
vWAN P2S deployment with multi address pool and user groups |
This template deploys Azure Virtual WAN (vWAN) with a P2S configured with multiple address pool and user groups |
Terraform (AzAPI provider) resource definition
The virtualHubs resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/virtualHubs resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/virtualHubs@2018-04-01"
name = "string"
location = "string"
body = jsonencode({
properties = {
addressPrefix = "string"
hubVirtualNetworkConnections = [
{
id = "string"
location = "string"
properties = {
allowHubToRemoteVnetTransit = bool
allowRemoteVnetToUseHubVnetGateways = bool
provisioningState = "string"
remoteVirtualNetwork = {
id = "string"
}
}
tags = {
{customized property} = "string"
}
}
]
provisioningState = "string"
virtualWan = {
id = "string"
}
}
})
tags = {
{customized property} = "string"
}
}
Property values
HubVirtualNetworkConnection
Name | Description | Value |
---|---|---|
id | Resource ID. | string |
location | Resource location. | string |
properties | Parameters for HubVirtualNetworkConnection | HubVirtualNetworkConnectionProperties |
tags | Resource tags. | ResourceTags |
HubVirtualNetworkConnectionProperties
Name | Description | Value |
---|---|---|
allowHubToRemoteVnetTransit | VirtualHub to RemoteVnet transit to enabled or not. | bool |
allowRemoteVnetToUseHubVnetGateways | Allow RemoteVnet to use Virtual Hub's gateways. | bool |
provisioningState | The provisioning state of the resource. | 'Deleting' 'Failed' 'Succeeded' 'Updating' |
remoteVirtualNetwork | Reference to the remote virtual network. | SubResource |
Microsoft.Network/virtualHubs
Name | Description | Value |
---|---|---|
location | Resource location. | string |
name | The resource name | string (required) |
properties | Parameters for VirtualHub | VirtualHubProperties |
tags | Resource tags | Dictionary of tag names and values. |
type | The resource type | "Microsoft.Network/virtualHubs@2018-04-01" |
ResourceTags
Name | Description | Value |
---|
ResourceTags
Name | Description | Value |
---|
SubResource
Name | Description | Value |
---|---|---|
id | Resource ID. | string |
VirtualHubProperties
Name | Description | Value |
---|---|---|
addressPrefix | Address-prefix for this VirtualHub. | string |
hubVirtualNetworkConnections | list of all vnet connections with this VirtualHub. | HubVirtualNetworkConnection[] |
provisioningState | The provisioning state of the resource. | 'Deleting' 'Failed' 'Succeeded' 'Updating' |
virtualWan | The VirtualWAN to which the VirtualHub belongs | SubResource |