你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.Network virtualNetworkGateways 2016-09-01
可以使用目标操作部署 virtualNetworkGateways 资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.Network/virtualNetworkGateways 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.Network/virtualNetworkGateways@2016-09-01' = {
etag: 'string'
location: 'string'
name: 'string'
properties: {
activeActive: bool
bgpSettings: {
asn: int
bgpPeeringAddress: 'string'
peerWeight: int
}
enableBgp: bool
gatewayDefaultSite: {
id: 'string'
}
gatewayType: 'string'
ipConfigurations: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
privateIPAllocationMethod: 'string'
publicIPAddress: {
id: 'string'
}
subnet: {
id: 'string'
}
}
}
]
resourceGuid: 'string'
sku: {
capacity: int
name: 'string'
tier: 'string'
}
vpnClientConfiguration: {
vpnClientAddressPool: {
addressPrefixes: [
'string'
]
}
vpnClientRevokedCertificates: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
thumbprint: 'string'
}
}
]
vpnClientRootCertificates: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
publicCertData: 'string'
}
}
]
}
vpnType: 'string'
}
tags: {
{customized property}: 'string'
}
}
名字 |
描述 |
价值 |
addressPrefixes |
CIDR 表示法中为此虚拟网络保留的地址块列表。 |
string[] |
名字 |
描述 |
价值 |
asn |
BGP 扬声器的 ASN。 |
int |
bgpPeeringAddress |
此 BGP 扬声器的 BGP 对等互连地址和 BGP 标识符。 |
字符串 |
peerWeight |
添加到从此 BGP 扬声器中学习的路由的权重。 |
int |
Microsoft.Network/virtualNetworkGateways
VirtualNetworkGatewayIPConfiguration
名字 |
描述 |
价值 |
privateIPAllocationMethod |
专用 IP 分配方法。 可能的值为:“Static”和“Dynamic”。 |
“Dynamic” “Static” |
publicIPAddress |
公共 IP 资源的引用。 |
SubResource (必需) |
子 |
子网资源的引用。 |
SubResource (必需) |
名字 |
描述 |
价值 |
activeActive |
ActiveActive 标志 |
bool |
bgpSettings |
虚拟网络网关的 BGP 扬声器设置。 |
BgpSettings |
enableBgp |
是否为此虚拟网络网关启用了 BGP。 |
bool |
gatewayDefaultSite |
LocalNetworkGateway 资源的引用,该资源表示具有默认路由的本地网络站点。 如果删除现有的默认站点设置,请分配 Null 值。 |
SubResource |
gatewayType |
此虚拟网络网关的类型。 可能的值为:“Vpn”和“ExpressRoute”。 |
“ExpressRoute” “Vpn”(必需) |
ipConfigurations |
虚拟网络网关的 IP 配置。 |
VirtualNetworkGatewayIPConfiguration[] (必需) |
resourceGuid |
VirtualNetworkGateway 资源的资源 GUID 属性。 |
字符串 |
sku |
VirtualNetworkGatewaySku 资源的引用,该资源表示为虚拟网络网关选择的 SKU。 |
VirtualNetworkGatewaySku |
vpnClientConfiguration |
表示 P2S VpnClient 配置的 VpnClientConfiguration 资源的引用。 |
VpnClientConfiguration |
vpnType |
此虚拟网络网关的类型。 可能的值为:“PolicyBased”和“RouteBased”。 |
“PolicyBased” “RouteBased”(必需) |
名字 |
描述 |
价值 |
能力 |
容量。 |
int |
名字 |
网关 SKU 名称。 可能的值为:“Basic”、“HighPerformance”、“Standard”和“UltraPerformance”。 |
“Basic” “HighPerformance” “Standard” “UltraPerformance”(必需) |
层 |
网关 SKU 层。 可能的值为:“Basic”、“HighPerformance”、“Standard”和“UltraPerformance”。 |
“Basic” “HighPerformance” “Standard” “UltraPerformance”(必需) |
VpnClientRevokedCertificate
名字 |
描述 |
价值 |
指纹 |
吊销的 VPN 客户端证书指纹。 |
字符串 |
名字 |
描述 |
价值 |
publicCertData |
证书公共数据。 |
string (必需) |
以下 Azure 验证模块 可用于部署此资源类型。
以下 Azure 快速入门模板 包含用于部署此资源类型的 Bicep 示例。
Bicep 文件 |
描述 |
创建 BGP VNET 到 VNET 连接 |
使用此模板,可以使用虚拟网络网关和 BGP 连接两个 VNET |
使用 Azure AD 创建点到站点网关 |
此模板部署配置了 Azure Active Directory 点到站点连接的 VPN 虚拟网络网关 |
使用专用对等互连和 Azure VNet ExpressRoute 线路 |
此模板配置 ExpressRoute Microsoft对等互连,部署包含 Expressroute 网关的 Azure VNet,并将 VNet 链接到 ExpressRoute 线路 |
使用具有 BGP 的主动-主动 VPN 网关 站点到站点 VPN |
通过此模板,可以使用 BGP 在配置主动-主动的两个 VNet 之间部署站点到站点 VPN VPN。 每个 Azure VPN 网关解析远程对等方的 FQDN,以确定远程 VPN 网关的公共 IP。 模板在具有可用性区域的 Azure 区域中按预期运行。 |
使用 Azure 防火墙作为中心 & 辐射型拓扑中的 DNS 代理 |
此示例演示如何使用 Azure 防火墙在 Azure 中部署中心辐射型拓扑。 中心虚拟网络充当通过虚拟网络对等互连连接到中心虚拟网络的许多辐射虚拟网络的中心点。 |
可以使用目标操作部署 virtualNetworkGateways 资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.Network/virtualNetworkGateways 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.Network/virtualNetworkGateways",
"apiVersion": "2016-09-01",
"name": "string",
"etag": "string",
"location": "string",
"properties": {
"activeActive": "bool",
"bgpSettings": {
"asn": "int",
"bgpPeeringAddress": "string",
"peerWeight": "int"
},
"enableBgp": "bool",
"gatewayDefaultSite": {
"id": "string"
},
"gatewayType": "string",
"ipConfigurations": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"privateIPAllocationMethod": "string",
"publicIPAddress": {
"id": "string"
},
"subnet": {
"id": "string"
}
}
}
],
"resourceGuid": "string",
"sku": {
"capacity": "int",
"name": "string",
"tier": "string"
},
"vpnClientConfiguration": {
"vpnClientAddressPool": {
"addressPrefixes": [ "string" ]
},
"vpnClientRevokedCertificates": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"thumbprint": "string"
}
}
],
"vpnClientRootCertificates": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"publicCertData": "string"
}
}
]
},
"vpnType": "string"
},
"tags": {
"{customized property}": "string"
}
}
名字 |
描述 |
价值 |
addressPrefixes |
CIDR 表示法中为此虚拟网络保留的地址块列表。 |
string[] |
名字 |
描述 |
价值 |
asn |
BGP 扬声器的 ASN。 |
int |
bgpPeeringAddress |
此 BGP 扬声器的 BGP 对等互连地址和 BGP 标识符。 |
字符串 |
peerWeight |
添加到从此 BGP 扬声器中学习的路由的权重。 |
int |
Microsoft.Network/virtualNetworkGateways
名字 |
描述 |
价值 |
apiVersion |
API 版本 |
'2016-09-01' |
etag |
获取在更新资源时更改的唯一只读字符串。 |
字符串 |
位置 |
资源位置。 |
字符串 |
名字 |
资源名称 |
string (必需) |
性能 |
VirtualNetworkGateway 属性 |
VirtualNetworkGatewayPropertiesFormat (必需) |
标签 |
资源标记 |
标记名称和值的字典。 请参阅模板 中的 标记 |
类型 |
资源类型 |
“Microsoft.Network/virtualNetworkGateways” |
VirtualNetworkGatewayIPConfiguration
VirtualNetworkGatewayIPConfigurationPropertiesFormat
名字 |
描述 |
价值 |
privateIPAllocationMethod |
专用 IP 分配方法。 可能的值为:“Static”和“Dynamic”。 |
“Dynamic” “Static” |
publicIPAddress |
公共 IP 资源的引用。 |
SubResource (必需) |
子 |
子网资源的引用。 |
SubResource (必需) |
VirtualNetworkGatewayPropertiesFormat
名字 |
描述 |
价值 |
activeActive |
ActiveActive 标志 |
bool |
bgpSettings |
虚拟网络网关的 BGP 扬声器设置。 |
BgpSettings |
enableBgp |
是否为此虚拟网络网关启用了 BGP。 |
bool |
gatewayDefaultSite |
LocalNetworkGateway 资源的引用,该资源表示具有默认路由的本地网络站点。 如果删除现有的默认站点设置,请分配 Null 值。 |
SubResource |
gatewayType |
此虚拟网络网关的类型。 可能的值为:“Vpn”和“ExpressRoute”。 |
“ExpressRoute” “Vpn”(必需) |
ipConfigurations |
虚拟网络网关的 IP 配置。 |
VirtualNetworkGatewayIPConfiguration[] (必需) |
resourceGuid |
VirtualNetworkGateway 资源的资源 GUID 属性。 |
字符串 |
sku |
VirtualNetworkGatewaySku 资源的引用,该资源表示为虚拟网络网关选择的 SKU。 |
VirtualNetworkGatewaySku |
vpnClientConfiguration |
表示 P2S VpnClient 配置的 VpnClientConfiguration 资源的引用。 |
VpnClientConfiguration |
vpnType |
此虚拟网络网关的类型。 可能的值为:“PolicyBased”和“RouteBased”。 |
“PolicyBased” “RouteBased”(必需) |
名字 |
描述 |
价值 |
能力 |
容量。 |
int |
名字 |
网关 SKU 名称。 可能的值为:“Basic”、“HighPerformance”、“Standard”和“UltraPerformance”。 |
“Basic” “HighPerformance” “Standard” “UltraPerformance”(必需) |
层 |
网关 SKU 层。 可能的值为:“Basic”、“HighPerformance”、“Standard”和“UltraPerformance”。 |
“Basic” “HighPerformance” “Standard” “UltraPerformance”(必需) |
VpnClientRevokedCertificate
VpnClientRevokedCertificatePropertiesFormat
名字 |
描述 |
价值 |
指纹 |
吊销的 VPN 客户端证书指纹。 |
字符串 |
VpnClientRootCertificatePropertiesFormat
名字 |
描述 |
价值 |
publicCertData |
证书公共数据。 |
string (必需) |
以下 Azure 快速入门模板 部署此资源类型。
Terraform (AzAPI 提供程序)资源定义
可以使用目标操作部署 virtualNetworkGateways 资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.Network/virtualNetworkGateways 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/virtualNetworkGateways@2016-09-01"
name = "string"
etag = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
activeActive = bool
bgpSettings = {
asn = int
bgpPeeringAddress = "string"
peerWeight = int
}
enableBgp = bool
gatewayDefaultSite = {
id = "string"
}
gatewayType = "string"
ipConfigurations = [
{
etag = "string"
id = "string"
name = "string"
properties = {
privateIPAllocationMethod = "string"
publicIPAddress = {
id = "string"
}
subnet = {
id = "string"
}
}
}
]
resourceGuid = "string"
sku = {
capacity = int
name = "string"
tier = "string"
}
vpnClientConfiguration = {
vpnClientAddressPool = {
addressPrefixes = [
"string"
]
}
vpnClientRevokedCertificates = [
{
etag = "string"
id = "string"
name = "string"
properties = {
thumbprint = "string"
}
}
]
vpnClientRootCertificates = [
{
etag = "string"
id = "string"
name = "string"
properties = {
publicCertData = "string"
}
}
]
}
vpnType = "string"
}
})
}
名字 |
描述 |
价值 |
addressPrefixes |
CIDR 表示法中为此虚拟网络保留的地址块列表。 |
string[] |
名字 |
描述 |
价值 |
asn |
BGP 扬声器的 ASN。 |
int |
bgpPeeringAddress |
此 BGP 扬声器的 BGP 对等互连地址和 BGP 标识符。 |
字符串 |
peerWeight |
添加到从此 BGP 扬声器中学习的路由的权重。 |
int |
Microsoft.Network/virtualNetworkGateways
名字 |
描述 |
价值 |
etag |
获取在更新资源时更改的唯一只读字符串。 |
字符串 |
位置 |
资源位置。 |
字符串 |
名字 |
资源名称 |
string (必需) |
性能 |
VirtualNetworkGateway 属性 |
VirtualNetworkGatewayPropertiesFormat (必需) |
标签 |
资源标记 |
标记名称和值的字典。 |
类型 |
资源类型 |
“Microsoft.Network/virtualNetworkGateways@2016-09-01” |
VirtualNetworkGatewayIPConfiguration
VirtualNetworkGatewayIPConfigurationPropertiesFormat
名字 |
描述 |
价值 |
privateIPAllocationMethod |
专用 IP 分配方法。 可能的值为:“Static”和“Dynamic”。 |
“Dynamic” “Static” |
publicIPAddress |
公共 IP 资源的引用。 |
SubResource (必需) |
子 |
子网资源的引用。 |
SubResource (必需) |
VirtualNetworkGatewayPropertiesFormat
名字 |
描述 |
价值 |
activeActive |
ActiveActive 标志 |
bool |
bgpSettings |
虚拟网络网关的 BGP 扬声器设置。 |
BgpSettings |
enableBgp |
是否为此虚拟网络网关启用了 BGP。 |
bool |
gatewayDefaultSite |
LocalNetworkGateway 资源的引用,该资源表示具有默认路由的本地网络站点。 如果删除现有的默认站点设置,请分配 Null 值。 |
SubResource |
gatewayType |
此虚拟网络网关的类型。 可能的值为:“Vpn”和“ExpressRoute”。 |
“ExpressRoute” “Vpn”(必需) |
ipConfigurations |
虚拟网络网关的 IP 配置。 |
VirtualNetworkGatewayIPConfiguration[] (必需) |
resourceGuid |
VirtualNetworkGateway 资源的资源 GUID 属性。 |
字符串 |
sku |
VirtualNetworkGatewaySku 资源的引用,该资源表示为虚拟网络网关选择的 SKU。 |
VirtualNetworkGatewaySku |
vpnClientConfiguration |
表示 P2S VpnClient 配置的 VpnClientConfiguration 资源的引用。 |
VpnClientConfiguration |
vpnType |
此虚拟网络网关的类型。 可能的值为:“PolicyBased”和“RouteBased”。 |
“PolicyBased” “RouteBased”(必需) |
名字 |
描述 |
价值 |
能力 |
容量。 |
int |
名字 |
网关 SKU 名称。 可能的值为:“Basic”、“HighPerformance”、“Standard”和“UltraPerformance”。 |
“Basic” “HighPerformance” “Standard” “UltraPerformance”(必需) |
层 |
网关 SKU 层。 可能的值为:“Basic”、“HighPerformance”、“Standard”和“UltraPerformance”。 |
“Basic” “HighPerformance” “Standard” “UltraPerformance”(必需) |
VpnClientRevokedCertificate
VpnClientRevokedCertificatePropertiesFormat
名字 |
描述 |
价值 |
指纹 |
吊销的 VPN 客户端证书指纹。 |
字符串 |
VpnClientRootCertificatePropertiesFormat
名字 |
描述 |
价值 |
publicCertData |
证书公共数据。 |
string (必需) |
以下 Azure 验证模块 可用于部署此资源类型。