Microsoft.Network localNetworkGateways 2020-11-01
localNetworkGateways 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Network/localNetworkGateways 資源,請將下列 Bicep 新增至範本。
Bicep
resource symbolicname 'Microsoft.Network/localNetworkGateways@2020-11-01' = {
location: 'string'
name: 'string'
properties: {
bgpSettings: {
asn: int
bgpPeeringAddress: 'string'
bgpPeeringAddresses: [
{
customBgpIpAddresses: [
'string'
]
ipconfigurationId: 'string'
}
]
peerWeight: int
}
fqdn: 'string'
gatewayIpAddress: 'string'
localNetworkAddressSpace: {
addressPrefixes: [
'string'
]
}
}
tags: {
{customized property}: 'string'
}
}
名字 | 描述 | 價值 |
---|---|---|
addressPrefixes | 以 CIDR 表示法保留給此虛擬網路的位址區塊清單。 | string[] |
名字 | 描述 | 價值 |
---|---|---|
asn | BGP 喇叭的 ASN。 | int 約束: 最小值 = 0 最大值 = 4294967295 |
bgpPeeringAddress | 這個 BGP 說話者的 BGP 對等互連位址和 BGP 識別碼。 | 字串 |
bgpPeeringAddresses | 具有虛擬網路閘道IP組態標識碼的 BGP 對等互連位址。 | IPConfigurationBgpPeeringAddress[] |
peerWeight | 新增至此 BGP 喇叭所學習路由的權數。 | int |
名字 | 描述 | 價值 |
---|---|---|
customBgpIpAddresses | 屬於IP組態的自訂BGP對等互連位址清單。 | string[] |
ipconfigurationId | 屬於閘道的IP組態標識碼。 | 字串 |
名字 | 描述 | 價值 |
---|---|---|
bgpSettings | 局域網路閘道的 BGP 喇叭設定。 | BgpSettings |
fqdn | 局域網路閘道的 FQDN。 | 字串 |
gatewayIpAddress | 局域網路閘道的IP位址。 | 字串 |
localNetworkAddressSpace | 局域網路網站位址空間。 | AddressSpace |
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源位置。 | 字串 |
名字 | 資源名稱 | 字串 約束: 最小長度 = 1 (必要) |
性能 | 局域網路閘道的屬性。 | LocalNetworkGatewayPropertiesFormat (必要) |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
名字 | 描述 | 價值 |
---|
下列 Azure 驗證模組 可用來部署此資源類型。
模組 | 描述 |
---|---|
局域網路閘道 | 局域網路閘道的AVM資源模組 |
下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。
Bicep 檔案 | 描述 |
---|---|
使用 BGP 使用主動 VPN 閘道 |
此範本可讓您在具有 VPN 閘道的兩個 VNet 之間部署站對站 VPN,以使用 BGP 設定主動-主動。 每個 Azure VPN 閘道都會解析遠端對等的 FQDN,以判斷遠端 VPN 閘道的公用 IP。 範本會在具有可用性區域的 Azure 區域中如預期般執行。 |
localNetworkGateways 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Network/localNetworkGateways 資源,請將下列 JSON 新增至範本。
JSON
{
"type": "Microsoft.Network/localNetworkGateways",
"apiVersion": "2020-11-01",
"name": "string",
"location": "string",
"properties": {
"bgpSettings": {
"asn": "int",
"bgpPeeringAddress": "string",
"bgpPeeringAddresses": [
{
"customBgpIpAddresses": [ "string" ],
"ipconfigurationId": "string"
}
],
"peerWeight": "int"
},
"fqdn": "string",
"gatewayIpAddress": "string",
"localNetworkAddressSpace": {
"addressPrefixes": [ "string" ]
}
},
"tags": {
"{customized property}": "string"
}
}
名字 | 描述 | 價值 |
---|---|---|
addressPrefixes | 以 CIDR 表示法保留給此虛擬網路的位址區塊清單。 | string[] |
名字 | 描述 | 價值 |
---|---|---|
asn | BGP 喇叭的 ASN。 | int 約束: 最小值 = 0 最大值 = 4294967295 |
bgpPeeringAddress | 這個 BGP 說話者的 BGP 對等互連位址和 BGP 識別碼。 | 字串 |
bgpPeeringAddresses | 具有虛擬網路閘道IP組態標識碼的 BGP 對等互連位址。 | IPConfigurationBgpPeeringAddress[] |
peerWeight | 新增至此 BGP 喇叭所學習路由的權數。 | int |
名字 | 描述 | 價值 |
---|---|---|
customBgpIpAddresses | 屬於IP組態的自訂BGP對等互連位址清單。 | string[] |
ipconfigurationId | 屬於閘道的IP組態標識碼。 | 字串 |
名字 | 描述 | 價值 |
---|---|---|
bgpSettings | 局域網路閘道的 BGP 喇叭設定。 | BgpSettings |
fqdn | 局域網路閘道的 FQDN。 | 字串 |
gatewayIpAddress | 局域網路閘道的IP位址。 | 字串 |
localNetworkAddressSpace | 局域網路網站位址空間。 | AddressSpace |
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2020-11-01' |
位置 | 資源位置。 | 字串 |
名字 | 資源名稱 | 字串 約束: 最小長度 = 1 (必要) |
性能 | 局域網路閘道的屬性。 | LocalNetworkGatewayPropertiesFormat (必要) |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 | 資源類型 | 'Microsoft.Network/localNetworkGateways' |
名字 | 描述 | 價值 |
---|
下列 Azure 快速入門範本 部署此資源類型。
範本 | 描述 |
---|---|
建立站對站 VPN 連線 |
此範本可讓您使用虛擬網路閘道建立站對站 VPN 連線 |
使用 VM 建立站對站 VPN 連線 |
此範本可讓您使用虛擬網路閘道建立站對站 VPN 連線 |
建立具有兩個子網、局域網路和閘道 的 VNet |
此範本會建立 VNet、2 個子網和閘道 |
使用 BGP 使用主動 VPN 閘道 |
此範本可讓您在具有 VPN 閘道的兩個 VNet 之間部署站對站 VPN,以使用 BGP 設定主動-主動。 每個 Azure VPN 閘道都會解析遠端對等的 FQDN,以判斷遠端 VPN 閘道的公用 IP。 範本會在具有可用性區域的 Azure 區域中如預期般執行。 |
localNetworkGateways 資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Network/localNetworkGateways 資源,請將下列 Terraform 新增至範本。
Terraform
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/localNetworkGateways@2020-11-01"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
bgpSettings = {
asn = int
bgpPeeringAddress = "string"
bgpPeeringAddresses = [
{
customBgpIpAddresses = [
"string"
]
ipconfigurationId = "string"
}
]
peerWeight = int
}
fqdn = "string"
gatewayIpAddress = "string"
localNetworkAddressSpace = {
addressPrefixes = [
"string"
]
}
}
})
}
名字 | 描述 | 價值 |
---|---|---|
addressPrefixes | 以 CIDR 表示法保留給此虛擬網路的位址區塊清單。 | string[] |
名字 | 描述 | 價值 |
---|---|---|
asn | BGP 喇叭的 ASN。 | int 約束: 最小值 = 0 最大值 = 4294967295 |
bgpPeeringAddress | 這個 BGP 說話者的 BGP 對等互連位址和 BGP 識別碼。 | 字串 |
bgpPeeringAddresses | 具有虛擬網路閘道IP組態標識碼的 BGP 對等互連位址。 | IPConfigurationBgpPeeringAddress[] |
peerWeight | 新增至此 BGP 喇叭所學習路由的權數。 | int |
名字 | 描述 | 價值 |
---|---|---|
customBgpIpAddresses | 屬於IP組態的自訂BGP對等互連位址清單。 | string[] |
ipconfigurationId | 屬於閘道的IP組態標識碼。 | 字串 |
名字 | 描述 | 價值 |
---|---|---|
bgpSettings | 局域網路閘道的 BGP 喇叭設定。 | BgpSettings |
fqdn | 局域網路閘道的 FQDN。 | 字串 |
gatewayIpAddress | 局域網路閘道的IP位址。 | 字串 |
localNetworkAddressSpace | 局域網路網站位址空間。 | AddressSpace |
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源位置。 | 字串 |
名字 | 資源名稱 | 字串 約束: 最小長度 = 1 (必要) |
性能 | 局域網路閘道的屬性。 | LocalNetworkGatewayPropertiesFormat (必要) |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.Network/localNetworkGateways@2020-11-01” |
名字 | 描述 | 價值 |
---|
下列 Azure 驗證模組 可用來部署此資源類型。
模組 | 描述 |
---|---|
局域網路閘道 | 局域網路閘道的AVM資源模組 |