Bicep 資源定義
logicalNetworks 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
使用範例
Azure 已驗證的模組
以下的 Azure 已驗證模組 可用於部署此資源類型。
若要建立 Microsoft.AzureStackHCI/logicalNetworks 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.AzureStackHCI/logicalNetworks@2026-07-01-preview' = {
extendedLocation: {
name: 'string'
type: 'string'
}
location: 'string'
name: 'string'
properties: {
dhcpOptions: {
dnsServers: [
'string'
]
}
fabricNetworkConfiguration: {
resourceId: 'string'
}
subnets: [
{
name: 'string'
properties: {
addressPrefix: 'string'
addressPrefixes: [
'string'
]
ipAllocationMethod: 'string'
ipConfigurationReferences: [
{
ID: 'string'
}
]
ipPools: [
{
end: 'string'
info: {}
ipPoolType: 'string'
name: 'string'
start: 'string'
}
]
networkSecurityGroup: {
id: 'string'
}
routeTable: {
properties: {
routes: [
{
name: 'string'
properties: {
addressPrefix: 'string'
nextHopIpAddress: 'string'
}
}
]
}
}
vlan: int
}
}
]
vmSwitchName: 'string'
}
tags: {
{customized property}: 'string'
}
}
屬性值
Microsoft.AzureStackHCI/logicalNetworks
| 名稱 |
說明 |
價值觀 |
| extendedLocation |
資源的 extendedLocation。 |
擴展位置 |
| 位置 |
資源所在的地理位置 |
字串 (必要) |
| 名稱 |
資源名稱 |
字串
約束: 模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (必要) |
| 屬性 |
此資源的資源特定屬性。 |
LogicalNetworkProperties (邏輯網路屬性) |
| 標記 |
資源標籤 |
標記名稱和值的字典。 請參考模板中的標籤 |
擴展位置
| 名稱 |
說明 |
價值觀 |
| 名稱 |
擴充位置的名稱。 |
字串 |
| 型別 |
擴充位置的類型。 |
“CustomLocation” |
IP錢包
| 名稱 |
說明 |
價值觀 |
| 結束 |
IP 位址池的結尾 |
字串 |
| 資訊 |
IPPool 資訊 |
IP資訊 |
| ipPoolType (ip池類型) |
IP 集區的類型 [vm, vippool] |
'VIP礦池' 'vm' |
| 名稱 |
IP-Pool 的名稱 |
字串 |
| 開始 |
IP 位址池的開頭 |
字串 |
IP資訊
LogicalNetworkProperties (邏輯網路屬性)
LogicalNetworkPropertiesDhcpOptions
| 名稱 |
說明 |
價值觀 |
| dns伺服器 |
DNS 伺服器 IP 位址的清單。 |
字串[] |
ManagedNetworkFabricArmReference
| 名稱 |
說明 |
價值觀 |
| resourceId |
管理網路 Fabric L2ISD 或 L3ISD 內部網路的 Azure 資源 ID |
字串 |
NetworkSecurityGroupArmReference (網路安全組Arm參考)
| 名稱 |
說明 |
價值觀 |
| 識別碼 |
網路安全群組的 Azure 資源 ID。 |
字串 |
路線
| 名稱 |
說明 |
價值觀 |
| 名稱 |
名稱 - 子網的名稱 |
字串
約束: 圖案 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
| 屬性 |
路由的屬性。 |
路線屬性 |
路線屬性
| 名稱 |
說明 |
價值觀 |
| addressPrefix 的 |
路由套用目的地 CIDR。 |
字串 |
| nextHopIp位址 |
IP 位址封包應該轉送至 。 下一個躍點值只能在下一個躍點類型為 VirtualAppliance 的路由中允許。 |
字串 |
路由表
RouteTable屬性
| 名稱 |
說明 |
價值觀 |
| 路線 |
路由表中包含的路由集合。 |
路由[] |
子網路
| 名稱 |
說明 |
價值觀 |
| 名稱 |
名稱 - 資源群組內唯一的資源名稱。 這個名稱可以用來access資源。 |
字串
約束: 圖案 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
| 屬性 |
子網的屬性。 |
SubnetProperties |
SubnetIpConfiguration引用
| 名稱 |
說明 |
價值觀 |
| ID |
Azure 資源 ID 用於網路介面。 |
字串 |
SubnetProperties
| 名稱 |
說明 |
價值觀 |
| addressPrefix 的 |
子網的位址前綴:此子網的 Cidr - IPv4、IPv6。 |
字串 |
| address前綴 |
子網的位址前綴清單。 |
字串[] |
| ip分配方法 |
IPAllocationMethod - IP 位址配置方法。 可能的值包括:'Static'、'Dynamic' |
“動態” “靜態” |
| ipConfiguration引用 |
IPConfigurationReferences - IPConfigurationReferences 清單 |
SubnetIpConfigurationReference[] |
| ipPools (智慧池) |
IP 位址的網路關聯集區 |
IPPool[] |
| networkSecurityGroup |
NetworkSecurityGroup - 鏈接至邏輯網路的網路安全組。 |
NetworkSecurityGroupArmReference (網路安全組Arm參考) |
| routeTable |
路由表資源。 |
路由表 |
| VLAN (VLAN) |
要用於子網的 Vlan |
整數 (int) |
ARM 樣本資源定義
logicalNetworks 資源類型可以使用目標作業來部署:
使用範例
若要建立 Microsoft.AzureStackHCI/logicalNetworks 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.AzureStackHCI/logicalNetworks",
"apiVersion": "2026-07-01-preview",
"name": "string",
"extendedLocation": {
"name": "string",
"type": "string"
},
"location": "string",
"properties": {
"dhcpOptions": {
"dnsServers": [ "string" ]
},
"fabricNetworkConfiguration": {
"resourceId": "string"
},
"subnets": [
{
"name": "string",
"properties": {
"addressPrefix": "string",
"addressPrefixes": [ "string" ],
"ipAllocationMethod": "string",
"ipConfigurationReferences": [
{
"ID": "string"
}
],
"ipPools": [
{
"end": "string",
"info": {
},
"ipPoolType": "string",
"name": "string",
"start": "string"
}
],
"networkSecurityGroup": {
"id": "string"
},
"routeTable": {
"properties": {
"routes": [
{
"name": "string",
"properties": {
"addressPrefix": "string",
"nextHopIpAddress": "string"
}
}
]
}
},
"vlan": "int"
}
}
],
"vmSwitchName": "string"
},
"tags": {
"{customized property}": "string"
}
}
屬性值
Microsoft.AzureStackHCI/logicalNetworks
| 名稱 |
說明 |
價值觀 |
| apiVersion |
API 版本 |
『2026-07-01-預覽』 |
| extendedLocation |
資源的 extendedLocation。 |
擴展位置 |
| 位置 |
資源所在的地理位置 |
字串 (必要) |
| 名稱 |
資源名稱 |
字串
約束: 模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (必要) |
| 屬性 |
此資源的資源特定屬性。 |
LogicalNetworkProperties (邏輯網路屬性) |
| 標記 |
資源標籤 |
標記名稱和值的字典。 請參考模板中的標籤 |
| 型別 |
資源類型 |
“Microsoft.AzureStackHCI/logicalNetworks” |
擴展位置
| 名稱 |
說明 |
價值觀 |
| 名稱 |
擴充位置的名稱。 |
字串 |
| 型別 |
擴充位置的類型。 |
“CustomLocation” |
IP錢包
| 名稱 |
說明 |
價值觀 |
| 結束 |
IP 位址池的結尾 |
字串 |
| 資訊 |
IPPool 資訊 |
IP資訊 |
| ipPoolType (ip池類型) |
IP 集區的類型 [vm, vippool] |
'VIP礦池' 'vm' |
| 名稱 |
IP-Pool 的名稱 |
字串 |
| 開始 |
IP 位址池的開頭 |
字串 |
IP資訊
LogicalNetworkProperties (邏輯網路屬性)
LogicalNetworkPropertiesDhcpOptions
| 名稱 |
說明 |
價值觀 |
| dns伺服器 |
DNS 伺服器 IP 位址的清單。 |
字串[] |
ManagedNetworkFabricArmReference
| 名稱 |
說明 |
價值觀 |
| resourceId |
管理網路 Fabric L2ISD 或 L3ISD 內部網路的 Azure 資源 ID |
字串 |
NetworkSecurityGroupArmReference (網路安全組Arm參考)
| 名稱 |
說明 |
價值觀 |
| 識別碼 |
網路安全群組的 Azure 資源 ID。 |
字串 |
路線
| 名稱 |
說明 |
價值觀 |
| 名稱 |
名稱 - 子網的名稱 |
字串
約束: 圖案 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
| 屬性 |
路由的屬性。 |
路線屬性 |
路線屬性
| 名稱 |
說明 |
價值觀 |
| addressPrefix 的 |
路由套用目的地 CIDR。 |
字串 |
| nextHopIp位址 |
IP 位址封包應該轉送至 。 下一個躍點值只能在下一個躍點類型為 VirtualAppliance 的路由中允許。 |
字串 |
路由表
RouteTable屬性
| 名稱 |
說明 |
價值觀 |
| 路線 |
路由表中包含的路由集合。 |
路由[] |
子網路
| 名稱 |
說明 |
價值觀 |
| 名稱 |
名稱 - 資源群組內唯一的資源名稱。 這個名稱可以用來access資源。 |
字串
約束: 圖案 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
| 屬性 |
子網的屬性。 |
SubnetProperties |
SubnetIpConfiguration引用
| 名稱 |
說明 |
價值觀 |
| ID |
Azure 資源 ID 用於網路介面。 |
字串 |
SubnetProperties
| 名稱 |
說明 |
價值觀 |
| addressPrefix 的 |
子網的位址前綴:此子網的 Cidr - IPv4、IPv6。 |
字串 |
| address前綴 |
子網的位址前綴清單。 |
字串[] |
| ip分配方法 |
IPAllocationMethod - IP 位址配置方法。 可能的值包括:'Static'、'Dynamic' |
“動態” “靜態” |
| ipConfiguration引用 |
IPConfigurationReferences - IPConfigurationReferences 清單 |
SubnetIpConfigurationReference[] |
| ipPools (智慧池) |
IP 位址的網路關聯集區 |
IPPool[] |
| networkSecurityGroup |
NetworkSecurityGroup - 鏈接至邏輯網路的網路安全組。 |
NetworkSecurityGroupArmReference (網路安全組Arm參考) |
| routeTable |
路由表資源。 |
路由表 |
| VLAN (VLAN) |
要用於子網的 Vlan |
整數 (int) |
logicalNetworks 資源類型可以使用目標作業來部署:
-
資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
使用範例
Azure 已驗證的模組
以下的 Azure 已驗證模組 可用於部署此資源類型。
若要建立 Microsoft.AzureStackHCI/logicalNetworks 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AzureStackHCI/logicalNetworks@2026-07-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
extendedLocation = {
name = "string"
type = "string"
}
properties = {
dhcpOptions = {
dnsServers = [
"string"
]
}
fabricNetworkConfiguration = {
resourceId = "string"
}
subnets = [
{
name = "string"
properties = {
addressPrefix = "string"
addressPrefixes = [
"string"
]
ipAllocationMethod = "string"
ipConfigurationReferences = [
{
ID = "string"
}
]
ipPools = [
{
end = "string"
info = {
}
ipPoolType = "string"
name = "string"
start = "string"
}
]
networkSecurityGroup = {
id = "string"
}
routeTable = {
properties = {
routes = [
{
name = "string"
properties = {
addressPrefix = "string"
nextHopIpAddress = "string"
}
}
]
}
}
vlan = int
}
}
]
vmSwitchName = "string"
}
}
}
屬性值
Microsoft.AzureStackHCI/logicalNetworks
| 名稱 |
說明 |
價值觀 |
| extendedLocation |
資源的 extendedLocation。 |
擴展位置 |
| 位置 |
資源所在的地理位置 |
字串 (必要) |
| 名稱 |
資源名稱 |
字串
約束: 模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (必要) |
| 屬性 |
此資源的資源特定屬性。 |
LogicalNetworkProperties (邏輯網路屬性) |
| 標記 |
資源標籤 |
標記名稱和值的字典。 |
| 型別 |
資源類型 |
“Microsoft.AzureStackHCI/logicalNetworks@2026-07-01-preview” |
擴展位置
| 名稱 |
說明 |
價值觀 |
| 名稱 |
擴充位置的名稱。 |
字串 |
| 型別 |
擴充位置的類型。 |
“CustomLocation” |
IP錢包
| 名稱 |
說明 |
價值觀 |
| 結束 |
IP 位址池的結尾 |
字串 |
| 資訊 |
IPPool 資訊 |
IP資訊 |
| ipPoolType (ip池類型) |
IP 集區的類型 [vm, vippool] |
'VIP礦池' 'vm' |
| 名稱 |
IP-Pool 的名稱 |
字串 |
| 開始 |
IP 位址池的開頭 |
字串 |
IP資訊
LogicalNetworkProperties (邏輯網路屬性)
LogicalNetworkPropertiesDhcpOptions
| 名稱 |
說明 |
價值觀 |
| dns伺服器 |
DNS 伺服器 IP 位址的清單。 |
字串[] |
ManagedNetworkFabricArmReference
| 名稱 |
說明 |
價值觀 |
| resourceId |
管理網路 Fabric L2ISD 或 L3ISD 內部網路的 Azure 資源 ID |
字串 |
NetworkSecurityGroupArmReference (網路安全組Arm參考)
| 名稱 |
說明 |
價值觀 |
| 識別碼 |
網路安全群組的 Azure 資源 ID。 |
字串 |
路線
| 名稱 |
說明 |
價值觀 |
| 名稱 |
名稱 - 子網的名稱 |
字串
約束: 圖案 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
| 屬性 |
路由的屬性。 |
路線屬性 |
路線屬性
| 名稱 |
說明 |
價值觀 |
| addressPrefix 的 |
路由套用目的地 CIDR。 |
字串 |
| nextHopIp位址 |
IP 位址封包應該轉送至 。 下一個躍點值只能在下一個躍點類型為 VirtualAppliance 的路由中允許。 |
字串 |
路由表
RouteTable屬性
| 名稱 |
說明 |
價值觀 |
| 路線 |
路由表中包含的路由集合。 |
路由[] |
子網路
| 名稱 |
說明 |
價值觀 |
| 名稱 |
名稱 - 資源群組內唯一的資源名稱。 這個名稱可以用來access資源。 |
字串
約束: 圖案 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
| 屬性 |
子網的屬性。 |
SubnetProperties |
SubnetIpConfiguration引用
| 名稱 |
說明 |
價值觀 |
| ID |
Azure 資源 ID 用於網路介面。 |
字串 |
SubnetProperties
| 名稱 |
說明 |
價值觀 |
| addressPrefix 的 |
子網的位址前綴:此子網的 Cidr - IPv4、IPv6。 |
字串 |
| address前綴 |
子網的位址前綴清單。 |
字串[] |
| ip分配方法 |
IPAllocationMethod - IP 位址配置方法。 可能的值包括:'Static'、'Dynamic' |
“動態” “靜態” |
| ipConfiguration引用 |
IPConfigurationReferences - IPConfigurationReferences 清單 |
SubnetIpConfigurationReference[] |
| ipPools (智慧池) |
IP 位址的網路關聯集區 |
IPPool[] |
| networkSecurityGroup |
NetworkSecurityGroup - 鏈接至邏輯網路的網路安全組。 |
NetworkSecurityGroupArmReference (網路安全組Arm參考) |
| routeTable |
路由表資源。 |
路由表 |
| VLAN (VLAN) |
要用於子網的 Vlan |
整數 (int) |