Microsoft.Network virtualHubs 2019-07-01
Стаття 09.12.2024
Співавторів: 2
Зворотний зв’язок
Зміст статті
Bicep resource definition
Resource format
Property Values
Usage Examples
API Versions:
2019-07-01
Bicep resource definition
The virtualHubs resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log .
To create a Microsoft.Network/virtualHubs resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Network/virtualHubs@2019-07-01' = {
location : 'string'
name : 'string'
properties : {
addressPrefix : 'string'
expressRouteGateway : {
id : 'string'
}
p2SVpnGateway : {
id : 'string'
}
routeTable : {
routes : [
{
addressPrefixes : [
'string'
]
nextHopIpAddress : 'string'
}
]
}
virtualNetworkConnections : [
{
id : 'string'
name : 'string'
properties : {
allowHubToRemoteVnetTransit : bool
allowRemoteVnetToUseHubVnetGateways : bool
enableInternetSecurity : bool
remoteVirtualNetwork : {
id : 'string'
}
}
}
]
virtualWan : {
id : 'string'
}
vpnGateway : {
id : 'string'
}
}
tags : {
{customized property }: 'string'
}
}
HubVirtualNetworkConnection
Розгорнути таблицю
Name
Description
Value
id
Resource ID.
string
name
The name of the resource that is unique within a resource group. This name can be used to access the resource.
string
properties
Properties of the hub virtual network connection.
HubVirtualNetworkConnectionProperties
HubVirtualNetworkConnectionProperties
Розгорнути таблицю
Name
Description
Value
allowHubToRemoteVnetTransit
VirtualHub to RemoteVnet transit to enabled or not.
bool
allowRemoteVnetToUseHubVnetGateways
Allow RemoteVnet to use Virtual Hub's gateways.
bool
enableInternetSecurity
Enable internet security.
bool
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
Properties of the virtual hub.
VirtualHubProperties
tags
Resource tags
Dictionary of tag names and values. See Tags in templates
Розгорнути таблицю
Розгорнути таблицю
Name
Description
Value
id
Resource ID.
string
Розгорнути таблицю
Name
Description
Value
addressPrefix
Address-prefix for this VirtualHub.
string
expressRouteGateway
The expressRouteGateway associated with this VirtualHub.
SubResource
p2SVpnGateway
The P2SVpnGateway associated with this VirtualHub.
SubResource
routeTable
The routeTable associated with this virtual hub.
VirtualHubRouteTable
virtualNetworkConnections
List of all vnet connections with this VirtualHub.
HubVirtualNetworkConnection []
virtualWan
The VirtualWAN to which the VirtualHub belongs.
SubResource
vpnGateway
The VpnGateway associated with this VirtualHub.
SubResource
Розгорнути таблицю
Name
Description
Value
addressPrefixes
List of all addressPrefixes.
string[]
nextHopIpAddress
NextHop ip address.
string
Розгорнути таблицю
The following Azure Verified Modules can be used to deploy this resource type.
Розгорнути таблицю
Module
Description
Virtual Hub
AVM Resource Module for Virtual Hub
The following Azure Quickstart templates contain Bicep samples for deploying 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:
For a list of changed properties in each API version, see change log .
To create a Microsoft.Network/virtualHubs resource, add the following JSON to your template.
{
"type" : "Microsoft.Network/virtualHubs" ,
"apiVersion" : "2019-07-01" ,
"name" : "string" ,
"location" : "string" ,
"properties" : {
"addressPrefix" : "string" ,
"expressRouteGateway" : {
"id" : "string"
},
"p2SVpnGateway" : {
"id" : "string"
},
"routeTable" : {
"routes" : [
{
"addressPrefixes" : [ "string" ],
"nextHopIpAddress" : "string"
}
]
},
"virtualNetworkConnections" : [
{
"id" : "string" ,
"name" : "string" ,
"properties" : {
"allowHubToRemoteVnetTransit" : "bool" ,
"allowRemoteVnetToUseHubVnetGateways" : "bool" ,
"enableInternetSecurity" : "bool" ,
"remoteVirtualNetwork" : {
"id" : "string"
}
}
}
],
"virtualWan" : {
"id" : "string"
},
"vpnGateway" : {
"id" : "string"
}
},
"tags" : {
"{customized property}" : "string"
}
}
HubVirtualNetworkConnection
Розгорнути таблицю
Name
Description
Value
id
Resource ID.
string
name
The name of the resource that is unique within a resource group. This name can be used to access the resource.
string
properties
Properties of the hub virtual network connection.
HubVirtualNetworkConnectionProperties
HubVirtualNetworkConnectionProperties
Розгорнути таблицю
Name
Description
Value
allowHubToRemoteVnetTransit
VirtualHub to RemoteVnet transit to enabled or not.
bool
allowRemoteVnetToUseHubVnetGateways
Allow RemoteVnet to use Virtual Hub's gateways.
bool
enableInternetSecurity
Enable internet security.
bool
remoteVirtualNetwork
Reference to the remote virtual network.
SubResource
Microsoft.Network/virtualHubs
Розгорнути таблицю
Name
Description
Value
apiVersion
The api version
'2019-07-01'
location
Resource location.
string
name
The resource name
string (required)
properties
Properties of the virtual hub.
VirtualHubProperties
tags
Resource tags
Dictionary of tag names and values. See Tags in templates
type
The resource type
'Microsoft.Network/virtualHubs'
Розгорнути таблицю
Розгорнути таблицю
Name
Description
Value
id
Resource ID.
string
Розгорнути таблицю
Name
Description
Value
addressPrefix
Address-prefix for this VirtualHub.
string
expressRouteGateway
The expressRouteGateway associated with this VirtualHub.
SubResource
p2SVpnGateway
The P2SVpnGateway associated with this VirtualHub.
SubResource
routeTable
The routeTable associated with this virtual hub.
VirtualHubRouteTable
virtualNetworkConnections
List of all vnet connections with this VirtualHub.
HubVirtualNetworkConnection []
virtualWan
The VirtualWAN to which the VirtualHub belongs.
SubResource
vpnGateway
The VpnGateway associated with this VirtualHub.
SubResource
Розгорнути таблицю
Name
Description
Value
addressPrefixes
List of all addressPrefixes.
string[]
nextHopIpAddress
NextHop ip address.
string
Розгорнути таблицю
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
Terraform (AzAPI provider) resource definition
The virtualHubs resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log .
To create a Microsoft.Network/virtualHubs resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/virtualHubs@2019-07-01"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
addressPrefix = "string"
expressRouteGateway = {
id = "string"
}
p2SVpnGateway = {
id = "string"
}
routeTable = {
routes = [
{
addressPrefixes = [
"string"
]
nextHopIpAddress = "string"
}
]
}
virtualNetworkConnections = [
{
id = "string"
name = "string"
properties = {
allowHubToRemoteVnetTransit = bool
allowRemoteVnetToUseHubVnetGateways = bool
enableInternetSecurity = bool
remoteVirtualNetwork = {
id = "string"
}
}
}
]
virtualWan = {
id = "string"
}
vpnGateway = {
id = "string"
}
}
})
}
HubVirtualNetworkConnection
Розгорнути таблицю
Name
Description
Value
id
Resource ID.
string
name
The name of the resource that is unique within a resource group. This name can be used to access the resource.
string
properties
Properties of the hub virtual network connection.
HubVirtualNetworkConnectionProperties
HubVirtualNetworkConnectionProperties
Розгорнути таблицю
Name
Description
Value
allowHubToRemoteVnetTransit
VirtualHub to RemoteVnet transit to enabled or not.
bool
allowRemoteVnetToUseHubVnetGateways
Allow RemoteVnet to use Virtual Hub's gateways.
bool
enableInternetSecurity
Enable internet security.
bool
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
Properties of the virtual hub.
VirtualHubProperties
tags
Resource tags
Dictionary of tag names and values.
type
The resource type
"Microsoft.Network/virtualHubs@2019-07-01"
Розгорнути таблицю
Розгорнути таблицю
Name
Description
Value
id
Resource ID.
string
Розгорнути таблицю
Name
Description
Value
addressPrefix
Address-prefix for this VirtualHub.
string
expressRouteGateway
The expressRouteGateway associated with this VirtualHub.
SubResource
p2SVpnGateway
The P2SVpnGateway associated with this VirtualHub.
SubResource
routeTable
The routeTable associated with this virtual hub.
VirtualHubRouteTable
virtualNetworkConnections
List of all vnet connections with this VirtualHub.
HubVirtualNetworkConnection []
virtualWan
The VirtualWAN to which the VirtualHub belongs.
SubResource
vpnGateway
The VpnGateway associated with this VirtualHub.
SubResource
Розгорнути таблицю
Name
Description
Value
addressPrefixes
List of all addressPrefixes.
string[]
nextHopIpAddress
NextHop ip address.
string
Розгорнути таблицю