-
Terbaru
-
2026-03-01
-
2026-01-01
-
2025-09-01
-
2025-07-01
-
2025-05-01
-
2025-03-01
-
2025-01-01
- 2024-10-01
-
2024-07-01
- 2024-05-01
- 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
Definisi sumber daya Bicep
Jenis sumber daya vpnSites dapat disebarkan dengan operasi yang menargetkan:
- Grup sumber daya - Lihat perintah penyebaran grup sumber daya
Untuk daftar properti yang diubah di setiap versi API, lihat mengubah log.
Contoh Penggunaan
Sampel Bicep
Contoh dasar penerapan VPN Site.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource virtualWan 'Microsoft.Network/virtualWans@2022-07-01' = {
name: resourceName
location: location
properties: {
allowBranchToBranchTraffic: true
disableVpnEncryption: false
office365LocalBreakoutCategory: 'None'
type: 'Standard'
}
}
resource vpnSite 'Microsoft.Network/vpnSites@2022-07-01' = {
name: resourceName
location: location
properties: {
addressSpace: {
addressPrefixes: [
'10.0.1.0/24'
]
}
virtualWan: {
id: virtualWan.id
}
vpnSiteLinks: [
{
name: 'link1'
properties: {
fqdn: ''
ipAddress: '10.0.1.1'
linkProperties: {
linkProviderName: ''
linkSpeedInMbps: 0
}
}
}
{
name: 'link2'
properties: {
fqdn: ''
ipAddress: '10.0.1.2'
linkProperties: {
linkProviderName: ''
linkSpeedInMbps: 0
}
}
}
]
}
}
Modul Terverifikasi Azure
Modul Terverifikasi Azure berikut dapat digunakan untuk menyebarkan jenis sumber daya ini.
| Modul |
Deskripsi |
|
Situs VPN |
Modul Sumber Daya AVM untuk Situs VPN |
Sampel Mulai Cepat Azure
Templat Mulai Cepat Azure berikut ini berisi sampel Bicep untuk menyebarkan jenis sumber daya ini.
| File Bisep |
Deskripsi |
|
Membuat sumber daya Virtual WAN |
Templat ini memungkinkan Anda membuat sumber daya WAN virtual termasuk Virtual WAN, Hub Virtual, VPN Gateway, Situs VPN, dan VPN Connecton. |
Untuk membuat sumber daya Microsoft.Network/vpnSites, tambahkan Bicep berikut ke templat Anda.
resource symbolicname 'Microsoft.Network/vpnSites@2020-06-01' = {
location: 'string'
name: 'string'
properties: {
addressSpace: {
addressPrefixes: [
'string'
]
}
bgpProperties: {
asn: int
bgpPeeringAddress: 'string'
bgpPeeringAddresses: [
{
customBgpIpAddresses: [
'string'
]
ipconfigurationId: 'string'
}
]
peerWeight: int
}
deviceProperties: {
deviceModel: 'string'
deviceVendor: 'string'
linkSpeedInMbps: int
}
ipAddress: 'string'
isSecuritySite: bool
o365Policy: {
breakOutCategories: {
allow: bool
default: bool
optimize: bool
}
}
siteKey: 'string'
virtualWan: {
id: 'string'
}
vpnSiteLinks: [
{
id: 'string'
name: 'string'
properties: {
bgpProperties: {
asn: int
bgpPeeringAddress: 'string'
}
fqdn: 'string'
ipAddress: 'string'
linkProperties: {
linkProviderName: 'string'
linkSpeedInMbps: int
}
}
}
]
}
tags: {
{customized property}: 'string'
}
}
Nilai Properti
Microsoft.Jaringan/vpnSites
| Nama |
Deskripsi |
Nilai |
| lokasi |
Lokasi sumber daya. |
string |
| Nama |
Nama sumber daya |
string (diperlukan) |
| Properti |
Properti situs VPN. |
VpnSiteProperties |
| Tags |
Tag sumber daya |
Kamus nama dan nilai tag. Lihat Tag dalam templat |
Ruang Alamat
| Nama |
Deskripsi |
Nilai |
| alamatPrefiks |
Daftar blok alamat yang dicadangkan untuk jaringan virtual ini dalam notasi CIDR. |
string[] |
Pengaturan BGP
| Nama |
Deskripsi |
Nilai |
| Asn |
ASN pembicara BGP. |
Int
Kendala: Nilai min = 0 Nilai maks = 4294967295 |
| bgpPeeringAddress |
Alamat peering BGP dan pengidentifikasi BGP pembicara BGP ini. |
string |
| bgpPeeringAddresses |
Alamat peering BGP dengan ID konfigurasi IP untuk gateway jaringan virtual. |
IPConfigurationBgpPeeringAddress[] |
| Berat sebaya |
Bobot ditambahkan ke rute yang dipelajari dari speaker BGP ini. |
Int |
Properti Perangkat
| Nama |
Deskripsi |
Nilai |
| model perangkat |
Model perangkat. |
string |
| vendor perangkat |
Nama Vendor perangkat. |
string |
| linkKecepatanInMbps |
Kecepatan tautan. |
Int |
IPConfigurationBgpPeeringAddress
| Nama |
Deskripsi |
Nilai |
| kustomBgpIpAddresses |
Daftar alamat peering BGP kustom yang termasuk dalam konfigurasi IP. |
string[] |
| ipconfigurationId |
ID konfigurasi IP yang termasuk dalam gateway. |
string |
O365BreakOutCategoryPolicies
| Nama |
Deskripsi |
Nilai |
| memperbolehkan |
Bendera untuk mengontrol kategori izinkan. |
bool |
| asali |
Bendera untuk mengontrol kategori default. |
bool |
| optimalkan |
Bendera untuk mengontrol kategori pengoptimalan. |
bool |
O365Properti kebijakan
| Nama |
Deskripsi |
Nilai |
| breakOutKategori |
Kategori breakout Office365. |
O365BreakOutCategoryPolicies |
SubSumber Daya
| Nama |
Deskripsi |
Nilai |
| Id |
ID Sumber Daya. |
string |
VpnLinkBgpPengaturan
| Nama |
Deskripsi |
Nilai |
| Asn |
ASN pembicara BGP. |
Int |
| bgpPeeringAddress |
Alamat peering BGP dan pengidentifikasi BGP pembicara BGP ini. |
string |
VpnLinkProviderProperties
| Nama |
Deskripsi |
Nilai |
| linkProviderName |
Nama penyedia tautan. |
string |
| linkKecepatanInMbps |
Kecepatan tautan. |
Int |
VpnSiteLink
| Nama |
Deskripsi |
Nilai |
| Id |
ID Sumber Daya. |
string |
| Nama |
Nama sumber daya yang unik dalam grup sumber daya. Nama ini dapat digunakan untuk mengakses sumber daya. |
string |
| Properti |
Properti tautan situs VPN. |
VpnSiteLinkProperties |
VpnSiteLinkProperties
| Nama |
Deskripsi |
Nilai |
| bgpProperties |
Kumpulan properti bgp. |
VpnLinkBgpSettings |
| Fqdn |
FQDN dari vpn-site-link. |
string |
| Alamat IP |
Alamat ip untuk vpn-site-link. |
string |
| linkProperties |
Properti penyedia tautan. |
VpnLinkProviderProperties |
Properti VpnSiteProperties
| Nama |
Deskripsi |
Nilai |
| alamatRuang |
AddressSpace yang berisi array rentang alamat IP. |
AddressSpace |
| bgpProperties |
Kumpulan properti bgp. |
BgpSettings |
| PropertiPerangkat |
Properti perangkat. |
DeviceProperties |
| Alamat IP |
Alamat ip untuk vpn-site. |
string |
| isSecuritySite |
Bendera IsSecuritySite. |
bool |
| Kebijakan o365 |
Kebijakan Office365. |
O365PolicyProperties |
| siteKey |
Kunci untuk vpn-site yang dapat digunakan untuk koneksi. |
string |
| virtualWan |
VirtualWAN tempat vpnSite berada. |
SubResource |
| vpnTautan Situs |
Daftar semua tautan situs vpn. |
VpnTautan Situs[] |
Definisi sumber daya templat ARM
Jenis sumber daya vpnSites dapat disebarkan dengan operasi yang menargetkan:
Contoh Penggunaan
Templat Quickstart Azure
Templat Mulai Cepat Azure berikut ini menyebarkan jenis sumber daya ini.
| Templat |
Deskripsi |
Membuat sumber daya Virtual WAN
|
Templat ini memungkinkan Anda membuat sumber daya WAN virtual termasuk Virtual WAN, Hub Virtual, VPN Gateway, Situs VPN, dan VPN Connecton. |
Untuk membuat sumber daya Microsoft.Network/vpnSites, tambahkan JSON berikut ke templat Anda.
{
"type": "Microsoft.Network/vpnSites",
"apiVersion": "2020-06-01",
"name": "string",
"location": "string",
"properties": {
"addressSpace": {
"addressPrefixes": [ "string" ]
},
"bgpProperties": {
"asn": "int",
"bgpPeeringAddress": "string",
"bgpPeeringAddresses": [
{
"customBgpIpAddresses": [ "string" ],
"ipconfigurationId": "string"
}
],
"peerWeight": "int"
},
"deviceProperties": {
"deviceModel": "string",
"deviceVendor": "string",
"linkSpeedInMbps": "int"
},
"ipAddress": "string",
"isSecuritySite": "bool",
"o365Policy": {
"breakOutCategories": {
"allow": "bool",
"default": "bool",
"optimize": "bool"
}
},
"siteKey": "string",
"virtualWan": {
"id": "string"
},
"vpnSiteLinks": [
{
"id": "string",
"name": "string",
"properties": {
"bgpProperties": {
"asn": "int",
"bgpPeeringAddress": "string"
},
"fqdn": "string",
"ipAddress": "string",
"linkProperties": {
"linkProviderName": "string",
"linkSpeedInMbps": "int"
}
}
}
]
},
"tags": {
"{customized property}": "string"
}
}
Nilai Properti
Microsoft.Jaringan/vpnSites
| Nama |
Deskripsi |
Nilai |
| apiVersi |
Versi api |
'2020-06-01' |
| lokasi |
Lokasi sumber daya. |
string |
| Nama |
Nama sumber daya |
string (diperlukan) |
| Properti |
Properti situs VPN. |
VpnSiteProperties |
| Tags |
Tag sumber daya |
Kamus nama dan nilai tag. Lihat Tag dalam templat |
| jenis |
Jenis sumber daya |
'Microsoft.Network/vpnSites' |
Ruang Alamat
| Nama |
Deskripsi |
Nilai |
| alamatPrefiks |
Daftar blok alamat yang dicadangkan untuk jaringan virtual ini dalam notasi CIDR. |
string[] |
Pengaturan BGP
| Nama |
Deskripsi |
Nilai |
| Asn |
ASN pembicara BGP. |
Int
Kendala: Nilai min = 0 Nilai maks = 4294967295 |
| bgpPeeringAddress |
Alamat peering BGP dan pengidentifikasi BGP pembicara BGP ini. |
string |
| bgpPeeringAddresses |
Alamat peering BGP dengan ID konfigurasi IP untuk gateway jaringan virtual. |
IPConfigurationBgpPeeringAddress[] |
| Berat sebaya |
Bobot ditambahkan ke rute yang dipelajari dari speaker BGP ini. |
Int |
Properti Perangkat
| Nama |
Deskripsi |
Nilai |
| model perangkat |
Model perangkat. |
string |
| vendor perangkat |
Nama Vendor perangkat. |
string |
| linkKecepatanInMbps |
Kecepatan tautan. |
Int |
IPConfigurationBgpPeeringAddress
| Nama |
Deskripsi |
Nilai |
| kustomBgpIpAddresses |
Daftar alamat peering BGP kustom yang termasuk dalam konfigurasi IP. |
string[] |
| ipconfigurationId |
ID konfigurasi IP yang termasuk dalam gateway. |
string |
O365BreakOutCategoryPolicies
| Nama |
Deskripsi |
Nilai |
| memperbolehkan |
Bendera untuk mengontrol kategori izinkan. |
bool |
| asali |
Bendera untuk mengontrol kategori default. |
bool |
| optimalkan |
Bendera untuk mengontrol kategori pengoptimalan. |
bool |
O365Properti kebijakan
| Nama |
Deskripsi |
Nilai |
| breakOutKategori |
Kategori breakout Office365. |
O365BreakOutCategoryPolicies |
SubSumber Daya
| Nama |
Deskripsi |
Nilai |
| Id |
ID Sumber Daya. |
string |
VpnLinkBgpPengaturan
| Nama |
Deskripsi |
Nilai |
| Asn |
ASN pembicara BGP. |
Int |
| bgpPeeringAddress |
Alamat peering BGP dan pengidentifikasi BGP pembicara BGP ini. |
string |
VpnLinkProviderProperties
| Nama |
Deskripsi |
Nilai |
| linkProviderName |
Nama penyedia tautan. |
string |
| linkKecepatanInMbps |
Kecepatan tautan. |
Int |
VpnSiteLink
| Nama |
Deskripsi |
Nilai |
| Id |
ID Sumber Daya. |
string |
| Nama |
Nama sumber daya yang unik dalam grup sumber daya. Nama ini dapat digunakan untuk mengakses sumber daya. |
string |
| Properti |
Properti tautan situs VPN. |
VpnSiteLinkProperties |
VpnSiteLinkProperties
| Nama |
Deskripsi |
Nilai |
| bgpProperties |
Kumpulan properti bgp. |
VpnLinkBgpSettings |
| Fqdn |
FQDN dari vpn-site-link. |
string |
| Alamat IP |
Alamat ip untuk vpn-site-link. |
string |
| linkProperties |
Properti penyedia tautan. |
VpnLinkProviderProperties |
Properti VpnSiteProperties
| Nama |
Deskripsi |
Nilai |
| alamatRuang |
AddressSpace yang berisi array rentang alamat IP. |
AddressSpace |
| bgpProperties |
Kumpulan properti bgp. |
BgpSettings |
| PropertiPerangkat |
Properti perangkat. |
DeviceProperties |
| Alamat IP |
Alamat ip untuk vpn-site. |
string |
| isSecuritySite |
Bendera IsSecuritySite. |
bool |
| Kebijakan o365 |
Kebijakan Office365. |
O365PolicyProperties |
| siteKey |
Kunci untuk vpn-site yang dapat digunakan untuk koneksi. |
string |
| virtualWan |
VirtualWAN tempat vpnSite berada. |
SubResource |
| vpnTautan Situs |
Daftar semua tautan situs vpn. |
VpnTautan Situs[] |
Jenis sumber daya vpnSites dapat disebarkan dengan operasi yang menargetkan:
-
Grup sumber daya Untuk daftar properti yang diubah di setiap versi API, lihat log perubahan.
Contoh Penggunaan
Contoh dasar penerapan VPN Site.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "virtualWan" {
type = "Microsoft.Network/virtualWans@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
allowBranchToBranchTraffic = true
disableVpnEncryption = false
office365LocalBreakoutCategory = "None"
type = "Standard"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "vpnSite" {
type = "Microsoft.Network/vpnSites@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
addressSpace = {
addressPrefixes = [
"10.0.1.0/24",
]
}
virtualWan = {
id = azapi_resource.virtualWan.id
}
vpnSiteLinks = [
{
name = "link1"
properties = {
fqdn = ""
ipAddress = "10.0.1.1"
linkProperties = {
linkProviderName = ""
linkSpeedInMbps = 0
}
}
},
{
name = "link2"
properties = {
fqdn = ""
ipAddress = "10.0.1.2"
linkProperties = {
linkProviderName = ""
linkSpeedInMbps = 0
}
}
},
]
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
Untuk membuat sumber daya Microsoft.Network/vpnSites, tambahkan Terraform berikut ke templat Anda.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/vpnSites@2020-06-01"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
addressSpace = {
addressPrefixes = [
"string"
]
}
bgpProperties = {
asn = int
bgpPeeringAddress = "string"
bgpPeeringAddresses = [
{
customBgpIpAddresses = [
"string"
]
ipconfigurationId = "string"
}
]
peerWeight = int
}
deviceProperties = {
deviceModel = "string"
deviceVendor = "string"
linkSpeedInMbps = int
}
ipAddress = "string"
isSecuritySite = bool
o365Policy = {
breakOutCategories = {
allow = bool
default = bool
optimize = bool
}
}
siteKey = "string"
virtualWan = {
id = "string"
}
vpnSiteLinks = [
{
id = "string"
name = "string"
properties = {
bgpProperties = {
asn = int
bgpPeeringAddress = "string"
}
fqdn = "string"
ipAddress = "string"
linkProperties = {
linkProviderName = "string"
linkSpeedInMbps = int
}
}
}
]
}
}
}
Nilai Properti
Microsoft.Jaringan/vpnSites
| Nama |
Deskripsi |
Nilai |
| lokasi |
Lokasi sumber daya. |
string |
| Nama |
Nama sumber daya |
string (diperlukan) |
| Properti |
Properti situs VPN. |
VpnSiteProperties |
| Tags |
Tag sumber daya |
Kamus nama dan nilai tag. |
| jenis |
Jenis sumber daya |
"Microsoft.Jaringan/vpnSites@2020-06-01" |
Ruang Alamat
| Nama |
Deskripsi |
Nilai |
| alamatPrefiks |
Daftar blok alamat yang dicadangkan untuk jaringan virtual ini dalam notasi CIDR. |
string[] |
Pengaturan BGP
| Nama |
Deskripsi |
Nilai |
| Asn |
ASN pembicara BGP. |
Int
Kendala: Nilai min = 0 Nilai maks = 4294967295 |
| bgpPeeringAddress |
Alamat peering BGP dan pengidentifikasi BGP pembicara BGP ini. |
string |
| bgpPeeringAddresses |
Alamat peering BGP dengan ID konfigurasi IP untuk gateway jaringan virtual. |
IPConfigurationBgpPeeringAddress[] |
| Berat sebaya |
Bobot ditambahkan ke rute yang dipelajari dari speaker BGP ini. |
Int |
Properti Perangkat
| Nama |
Deskripsi |
Nilai |
| model perangkat |
Model perangkat. |
string |
| vendor perangkat |
Nama Vendor perangkat. |
string |
| linkKecepatanInMbps |
Kecepatan tautan. |
Int |
IPConfigurationBgpPeeringAddress
| Nama |
Deskripsi |
Nilai |
| kustomBgpIpAddresses |
Daftar alamat peering BGP kustom yang termasuk dalam konfigurasi IP. |
string[] |
| ipconfigurationId |
ID konfigurasi IP yang termasuk dalam gateway. |
string |
O365BreakOutCategoryPolicies
| Nama |
Deskripsi |
Nilai |
| memperbolehkan |
Bendera untuk mengontrol kategori izinkan. |
bool |
| asali |
Bendera untuk mengontrol kategori default. |
bool |
| optimalkan |
Bendera untuk mengontrol kategori pengoptimalan. |
bool |
O365Properti kebijakan
| Nama |
Deskripsi |
Nilai |
| breakOutKategori |
Kategori breakout Office365. |
O365BreakOutCategoryPolicies |
SubSumber Daya
| Nama |
Deskripsi |
Nilai |
| Id |
ID Sumber Daya. |
string |
VpnLinkBgpPengaturan
| Nama |
Deskripsi |
Nilai |
| Asn |
ASN pembicara BGP. |
Int |
| bgpPeeringAddress |
Alamat peering BGP dan pengidentifikasi BGP pembicara BGP ini. |
string |
VpnLinkProviderProperties
| Nama |
Deskripsi |
Nilai |
| linkProviderName |
Nama penyedia tautan. |
string |
| linkKecepatanInMbps |
Kecepatan tautan. |
Int |
VpnSiteLink
| Nama |
Deskripsi |
Nilai |
| Id |
ID Sumber Daya. |
string |
| Nama |
Nama sumber daya yang unik dalam grup sumber daya. Nama ini dapat digunakan untuk mengakses sumber daya. |
string |
| Properti |
Properti tautan situs VPN. |
VpnSiteLinkProperties |
VpnSiteLinkProperties
| Nama |
Deskripsi |
Nilai |
| bgpProperties |
Kumpulan properti bgp. |
VpnLinkBgpSettings |
| Fqdn |
FQDN dari vpn-site-link. |
string |
| Alamat IP |
Alamat ip untuk vpn-site-link. |
string |
| linkProperties |
Properti penyedia tautan. |
VpnLinkProviderProperties |
Properti VpnSiteProperties
| Nama |
Deskripsi |
Nilai |
| alamatRuang |
AddressSpace yang berisi array rentang alamat IP. |
AddressSpace |
| bgpProperties |
Kumpulan properti bgp. |
BgpSettings |
| PropertiPerangkat |
Properti perangkat. |
DeviceProperties |
| Alamat IP |
Alamat ip untuk vpn-site. |
string |
| isSecuritySite |
Bendera IsSecuritySite. |
bool |
| Kebijakan o365 |
Kebijakan Office365. |
O365PolicyProperties |
| siteKey |
Kunci untuk vpn-site yang dapat digunakan untuk koneksi. |
string |
| virtualWan |
VirtualWAN tempat vpnSite berada. |
SubResource |
| vpnTautan Situs |
Daftar semua tautan situs vpn. |
VpnTautan Situs[] |