你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
- 最新
- 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
Bicep 资源定义
可以使用目标操作部署 virtualHubs/ipConfigurations 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
用法示例
Bicep 示例
部署虚拟中心 IP 的基本示例。 此资源也称为路由服务器。
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource publicIPAddress 'Microsoft.Network/publicIPAddresses@2022-07-01' = {
name: resourceName
location: location
sku: {
name: 'Standard'
tier: 'Regional'
}
properties: {
ddosSettings: {
protectionMode: 'VirtualNetworkInherited'
}
idleTimeoutInMinutes: 4
publicIPAddressVersion: 'IPv4'
publicIPAllocationMethod: 'Static'
}
}
resource virtualHub 'Microsoft.Network/virtualHubs@2022-07-01' = {
name: resourceName
location: location
properties: {
hubRoutingPreference: 'ExpressRoute'
sku: 'Standard'
virtualRouterAutoScaleConfiguration: {
minCapacity: 2
}
}
}
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2022-07-01' = {
name: resourceName
location: location
properties: {
addressSpace: {
addressPrefixes: [
'10.5.0.0/16'
]
}
dhcpOptions: {
dnsServers: []
}
subnets: []
}
}
resource ipConfiguration 'Microsoft.Network/virtualHubs/ipConfigurations@2022-07-01' = {
name: resourceName
parent: virtualHub
properties: {
privateIPAddress: '10.5.1.18'
privateIPAllocationMethod: 'Static'
publicIPAddress: {
id: publicIPAddress.id
}
subnet: {
id: subnet.id
}
}
}
resource subnet 'Microsoft.Network/virtualNetworks/subnets@2022-07-01' = {
name: 'RouteServerSubnet'
parent: virtualNetwork
properties: {
addressPrefix: '10.5.1.0/24'
delegations: []
privateEndpointNetworkPolicies: 'Enabled'
privateLinkServiceNetworkPolicies: 'Enabled'
serviceEndpointPolicies: []
serviceEndpoints: []
}
}
Azure 快速入门示例
以下 Azure 快速入门模板 包含用于部署此资源类型的 Bicep 示例。
| Bicep 文件 | 描述 |
|---|---|
| 在新子网中创建路由服务器 | 此模板将路由服务器部署到名为 RouteServerSubnet 的子网中。 |
资源格式
若要创建 Microsoft.Network/virtualHubs/ipConfigurations 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.Network/virtualHubs/ipConfigurations@2026-03-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
privateIPAddress: 'string'
privateIPAllocationMethod: 'string'
publicIPAddress: {
extendedLocation: {
name: 'string'
type: 'string'
}
id: 'string'
location: 'string'
properties: {
ddosSettings: {
ddosCustomPolicy: {
id: 'string'
}
ddosProtectionPlan: {
id: 'string'
}
protectionMode: 'string'
}
deleteOption: 'string'
dnsSettings: {
domainNameLabel: 'string'
domainNameLabelScope: 'string'
fqdn: 'string'
reverseFqdn: 'string'
}
idleTimeoutInMinutes: int
ipAddress: 'string'
ipTags: [
{
firstPartyServiceTagId: 'string'
ipTagType: 'string'
tag: 'string'
}
]
linkedPublicIPAddress: ...
migrationPhase: 'string'
natGateway: {
id: 'string'
location: 'string'
properties: {
idleTimeoutInMinutes: int
nat64: 'string'
publicIpAddresses: [
{
id: 'string'
}
]
publicIpAddressesV6: [
{
id: 'string'
}
]
publicIpPrefixes: [
{
id: 'string'
}
]
publicIpPrefixesV6: [
{
id: 'string'
}
]
serviceGateway: {
id: 'string'
}
sourceVirtualNetwork: {
id: 'string'
}
}
sku: {
name: 'string'
}
tags: {
{customized property}: 'string'
}
zones: [
'string'
]
}
publicIPAddressVersion: 'string'
publicIPAllocationMethod: 'string'
publicIPPrefix: {
id: 'string'
}
servicePublicIPAddress: ...
}
sku: {
name: 'string'
tier: 'string'
}
tags: {
{customized property}: 'string'
}
zones: [
'string'
]
}
subnet: {
id: 'string'
name: 'string'
properties: {
addressPrefix: 'string'
addressPrefixes: [
'string'
]
applicationGatewayIPConfigurations: [
{
id: 'string'
name: 'string'
properties: {
subnet: {
id: 'string'
}
}
}
]
defaultOutboundAccess: bool
delegations: [
{
id: 'string'
name: 'string'
properties: {
serviceName: 'string'
}
type: 'string'
}
]
ipAllocations: [
{
id: 'string'
}
]
ipamPoolPrefixAllocations: [
{
numberOfIpAddresses: 'string'
pool: {
id: 'string'
}
}
]
natGateway: {
id: 'string'
}
networkSecurityGroup: {
id: 'string'
location: 'string'
properties: {
flushConnection: bool
securityRules: [
{
id: 'string'
name: 'string'
properties: {
access: 'string'
description: 'string'
destinationAddressPrefix: 'string'
destinationAddressPrefixes: [
'string'
]
destinationApplicationSecurityGroups: [
{
id: 'string'
location: 'string'
properties: {}
tags: {
{customized property}: 'string'
}
}
]
destinationPortRange: 'string'
destinationPortRanges: [
'string'
]
direction: 'string'
priority: int
protocol: 'string'
sourceAddressPrefix: 'string'
sourceAddressPrefixes: [
'string'
]
sourceApplicationSecurityGroups: [
{
id: 'string'
location: 'string'
properties: {}
tags: {
{customized property}: 'string'
}
}
]
sourcePortRange: 'string'
sourcePortRanges: [
'string'
]
}
}
]
}
tags: {
{customized property}: 'string'
}
}
privateEndpointNetworkPolicies: 'string'
privateLinkServiceNetworkPolicies: 'string'
routeTable: {
id: 'string'
location: 'string'
properties: {
disableBgpRoutePropagation: bool
disablePeeringRoute: 'string'
routes: [
{
id: 'string'
name: 'string'
properties: {
addressPrefix: 'string'
nextHop: {
nextHopIpAddresses: [
'string'
]
}
nextHopIpAddress: 'string'
nextHopType: 'string'
}
}
]
}
tags: {
{customized property}: 'string'
}
}
serviceEndpointPolicies: [
{
id: 'string'
location: 'string'
properties: {
contextualServiceEndpointPolicies: [
'string'
]
serviceAlias: 'string'
serviceEndpointPolicyDefinitions: [
{
id: 'string'
name: 'string'
properties: {
description: 'string'
service: 'string'
serviceResources: [
'string'
]
}
}
]
}
tags: {
{customized property}: 'string'
}
}
]
serviceEndpoints: [
{
locations: [
'string'
]
networkIdentifier: {
id: 'string'
}
service: 'string'
}
]
serviceGateway: {
id: 'string'
}
sharingScope: 'string'
}
}
}
}
属性值
Microsoft.Network/virtualHubs/ipConfigurations
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 资源名称 | string (必需) |
| 父级 | 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。 有关详细信息,请参阅 父资源外部的子资源。 |
类型资源的符号名称:virtualHubs |
| 性能 | 虚拟中心 IPConfigurations 的属性。 | HubIPConfigurationPropertiesFormat |
ApplicationGatewayIPConfiguration
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 应用程序网关中唯一的 IP 配置的名称。 | 字符串 |
| 性能 | 应用程序网关 IP 配置的属性。 | ApplicationGatewayIPConfigurationPropertiesFormat |
ApplicationGatewayIPConfigurationPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 子网 | 对子网资源的引用。 应用程序网关从中获取其专用地址的子网。 | 子资源 |
ApplicationSecurityGroup 应用程序安全组
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 应用程序安全组的属性。 | ApplicationSecurityGroupPropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
ApplicationSecurityGroupPropertiesFormat
| 名字 | 描述 | 价值 |
|---|
Ddos设置
| 名字 | 描述 | 价值 |
|---|---|---|
| ddosCustomPolicy | 与公共 IP 关联的 DDoS 自定义策略。 | 子资源 |
| ddosProtectionPlan 计划 | 与公共 IP 关联的 DDoS 保护计划。 仅当 ProtectionMode 已启用时才能设置 | 子资源 |
| protectionMode 保护模式 | 公共 IP 的 DDoS 保护模式 | “Disabled” “Enabled” “VirtualNetworkInherited” |
委派
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 子网中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | 子网的属性。 | ServiceDelegationPropertiesFormat |
| 类型 | 资源类型。 | 字符串 |
扩展位置
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 扩展位置的名称。 | 字符串 |
| 类型 | 扩展位置的类型。 | “EdgeZone” |
HubIPConfigurationPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| privateIPAddress 地址 | IP 配置的专用 IP 地址。 | 字符串 |
| privateIPAllocationMethod | 专用 IP 地址分配方法。 | “Dynamic” “Static” |
| publicIPAddress 地址 | 对公共 IP 资源的引用。 | 公共 IP 地址 |
| 子网 | 对子网资源的引用。 | 子网 |
IpamPoolPrefixAllocation
| 名字 | 描述 | 价值 |
|---|---|---|
| IpAddresses 数量 | 要分配的 IP 地址数。 | 字符串 |
| 池 | IpamPoolPrefixAllocationPool |
IpamPoolPrefixAllocationPool
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 关联的 Azure IpamPool 资源的资源 ID。 | 字符串 |
IpTag
| 名字 | 描述 | 价值 |
|---|---|---|
| firstPartyServiceTagId | 与IP标签关联的第一方服务标签的资源ID。 | 字符串 |
| ipTag类型 | IP 标记类型。 示例:FirstPartyUsage。 | 字符串 |
| 标签 | 与公共 IP 关联的 IP 标记的值。 示例:SQL。 | 字符串 |
NatGateway 网关
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | Nat 网关属性。 | NatGatewayPropertiesFormat |
| SKU | nat 网关 SKU。 | NatGatewaySku |
| 标签 | 资源标记。 | 资源标签 |
| 区 | 表示应在其中部署 Nat 网关的区域的可用性区域的列表。 | 字符串[] |
NatGatewayPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| idleTimeoutInMinutes | nat 网关的空闲超时。 | 整数 (int) |
| 自然64 | 是否启用了NAT网关资源中的Nat64。 | “Disabled” “Enabled” “None” |
| publicIp地址 | 与 nat 网关资源关联的公有 IP 地址 V4 数组。 | 子资源[] |
| 公共 IP 地址V6 | 与 nat 网关资源关联的公有 IP 地址 V6 数组。 | 子资源[] |
| publicIp前缀 | 与 nat 网关资源关联的公有 IP 前缀 V4 数组。 | 子资源[] |
| publicIpPrefixesV6 | 与 nat 网关资源关联的公有 IP 前缀 V6 数组。 | 子资源[] |
| 服务网关 | 引用现有的服务网关。 | 子资源 |
| 源虚拟网络 | 使用此 nat 网关资源对源虚拟网络的引用。 | 子资源 |
NatGatewaySku
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | Nat 网关 SKU 的名称。 | “Standard” 'StandardV2' |
网络安全组
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 网络安全组的属性。 | NetworkSecurityGroupPropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
NetworkSecurityGroupPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| flush连接 | 启用后,当规则更新时,将从网络安全组连接创建的流重新评估。 初始启用将触发重新评估。 | 布尔 |
| securityRules 安全规则 | 网络安全组的安全规则集合。 | SecurityRule[] |
公共IP地址 (PublicIPAddress)
| 名字 | 描述 | 价值 |
|---|---|---|
| extendedLocation | 公共 IP 地址的扩展位置。 | 扩展位置 |
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 公共 IP 地址属性。 | PublicIPAddressPropertiesFormat |
| SKU | 公共 IP 地址 SKU。 | 公共 IPAddressSku |
| 标签 | 资源标记。 | 资源标签 |
| 区 | 表示为资源分配的 IP 需要来自的可用性区域列表。 | 字符串[] |
公共 IPAddressDnsSettings
| 名字 | 描述 | 价值 |
|---|---|---|
| domainNameLabel 域名标签 | 域名标签。 域名标签和区域化 DNS 区域的串联构成了与公共 IP 地址关联的完全限定域名。 如果指定了域名标签,则会为 Microsoft Azure DNS 系统中的公共 IP 创建 A DNS 记录。 | 字符串 |
| domainNameLabel范围 | 域名标签范围。 如果指定了域名标签和域名标签范围,则会为 Microsoft Azure DNS 系统中的公共 IP 创建一条 DNS 记录,其中包含 FQDN 中的哈希值。 | “NoReuse” “ResourceGroupReuse” “SubscriptionReuse” “TenantReuse” |
| FQDN | 与公共 IP 关联的 A DNS 记录的完全限定域名。 这是 domainNameLabel 和区域化 DNS 区域的串联。 | 字符串 |
| reverseFqdn | 反向 FQDN。 解析为此公共 IP 地址的用户可见完全限定域名。 如果指定了 reverseFqdn,则会创建 PTR DNS 记录,该记录从 in-addr.arpa 域中的 IP 地址指向反向 FQDN。 | 字符串 |
PublicIPAddressPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| ddos设置 | 与公共 IP 地址关联的 DDoS 保护自定义策略。 | Ddos设置 |
| deleteOption | 指定删除 VM 时公共 IP 地址会发生什么情况 | “Delete” “Detach” |
| dns设置 | 与公共 IP 地址关联的 DNS 记录的 FQDN。 | 公共 IPAddressDnsSettings |
| idleTimeoutInMinutes | 公共 IP 地址的空闲超时。 | 整数 (int) |
| IP地址 | 与公共 IP 地址资源关联的 IP 地址。 | 字符串 |
| ip标签 | 与公共 IP 地址关联的标记列表。 | IpTag [] |
| linkedPublicIPAddress 地址 | 公共 IP 地址资源的链接公共 IP 地址。 | 公共 IP 地址 |
| 迁移阶段 | 公共 IP 地址的迁移阶段。 | “中止” “Commit” “已提交” “None” “准备” |
| natGateway 网关 | 公共 IP 地址的 NatGateway。 | NatGateway 网关 |
| publicIPAddress版本 | 公共 IP 地址版本。 | “IPv4” “IPv6” |
| publicIPAllocationMethod | 公共 IP 地址分配方法。 | “Dynamic” “Static” |
| publicIPPrefix | 应从中分配此公共 IP 地址的公共 IP 前缀。 | 子资源 |
| servicePublicIPAddress 地址 | 公共 IP 地址资源的服务公共 IP 地址。 | 公共 IP 地址 |
公共 IPAddressSku
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 公共 IP 地址 SKU 的名称。 | “Basic” “Standard” 'StandardV2' |
| 分层 | 公共 IP 地址 SKU 的层。 | “Global” “区域” |
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
Route
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 路由的属性。 | RoutePropertiesFormat |
RouteNextHopEcmp(路由NextHopEcmp)
| 名字 | 描述 | 价值 |
|---|---|---|
| nextHopIp地址 | ECMP路由下一跳IP地址列表。 必须包含2到64个IP地址。 | string[] (必需) |
RoutePropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| addressPrefix 的 | 路由应用到的目标 CIDR。 | 字符串 |
| nextHop | 包含ECMP下一跳IP地址的下一跳定义。 仅在nextHopType为VirtualApplianceEcmp时才被允许。 | RouteNextHopEcmp(路由NextHopEcmp) |
| nextHopIp地址 | IP 地址数据包应转发到。 只有在下一跃点类型为 VirtualAppliance 的路由中才允许下一跃点值。 | 字符串 |
| nextHopType | 应将数据包发送到的 Azure 跃点的类型。 | “Internet” “None” “VirtualAppliance” “虚拟设备ECMP” “VirtualNetworkGateway” “VnetLocal”(必需) |
RouteTable
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 路由表的属性。 | RouteTablePropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
RouteTablePropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 禁用 BgpRoutePropagation | 是否禁用 BGP 在该路由表上学习的路由。 True 表示禁用。 | 布尔 |
| disablePeeringRoute | 是否禁用通过对等互连在路由表上学习的路由。 “None”表示已启用对等互连路由,“All”表示禁用所有对等互连路由。 | 'All' “None” |
| 路线 | 路由表中包含的路由的集合。 | 路由[] |
SecurityRule 安全规则
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 安全规则的属性。 | SecurityRulePropertiesFormat |
SecurityRulePropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 访问 | 允许或拒绝网络流量。 | “允许” “拒绝”(必需) |
| 描述 | 此规则的说明。 限制为 140 个字符。 | 字符串 |
| destinationAddressPrefix 的 | 目标地址前缀。 CIDR 或目标 IP 范围。 星号“*”还可用于匹配所有源 IP。 也可以使用默认标记,例如“VirtualNetwork”、“AzureLoadBalancer”和“Internet”。 | 字符串 |
| destinationAddress前缀 | 目标地址前缀。 CIDR 或目标 IP 范围。 | 字符串[] |
| destinationApplicationSecurityGroups | 指定为目标的应用程序安全组。 | ApplicationSecurityGroup[] |
| destinationPortRange | 目标端口或范围。 介于 0 和 65535 之间的整数或范围。 星号“*”也可用于匹配所有端口。 | 字符串 |
| destinationPortRanges | 目标端口范围。 | 字符串[] |
| 方向 | 规则的方向。 该方向指定在传入或传出流量上是否评估规则。 | “Inbound” “出站”(必需) |
| 优先权 | 规则的优先级。 该值可以介于 100 和 4096 之间。 对于集合中的每个规则,优先级编号必须是唯一的。 优先级编号越低,规则优先级越高。 | int (必需) |
| 协议 | 此规则适用于的网络协议。 | '*' “Ah” “Esp” “Icmp” “Tcp” “Udp”(必需) |
| sourceAddressPrefix 的 | CIDR 或源 IP 范围。 星号“*”还可用于匹配所有源 IP。 也可以使用默认标记,例如“VirtualNetwork”、“AzureLoadBalancer”和“Internet”。 如果这是入口规则,则指定网络流量的来源。 | 字符串 |
| sourceAddress前缀 | CIDR 或源 IP 范围。 | 字符串[] |
| sourceApplicationSecurityGroups | 指定为源的应用程序安全组。 | ApplicationSecurityGroup[] |
| sourcePortRange | 源端口或范围。 介于 0 和 65535 之间的整数或范围。 星号“*”也可用于匹配所有端口。 | 字符串 |
| sourcePort范围 | 源端口范围。 | 字符串[] |
ServiceDelegationPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 服务名称 | 应向其委托子网的服务的名称(例如Microsoft.Sql/servers)。 | 字符串 |
ServiceEndpointPolicy
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 服务终结点策略的属性。 | ServiceEndpointPolicyPropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
ServiceEndpointPolicyDefinition
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 服务终结点策略定义的属性。 | ServiceEndpointPolicyDefinitionPropertiesFormat |
ServiceEndpointPolicyDefinitionPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 描述 | 此规则的说明。 限制为 140 个字符。 | 字符串 |
| 服务 | 服务终结点名称。 | 字符串 |
| 服务资源 | 服务资源列表。 | 字符串[] |
ServiceEndpointPolicyPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| contextualServiceEndpoint策略 | 上下文服务终结点策略的集合。 | 字符串[] |
| service别名 | 指示策略是否属于服务的别名 | 字符串 |
| serviceEndpointPolicyDefinitions | 服务终结点策略的服务终结点策略定义的集合。 | ServiceEndpointPolicyDefinition[] |
ServiceEndpointPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 地点 | 位置列表。 | 字符串[] |
| 网络标识符 | SubResource 作为网络标识符。 | 子资源 |
| 服务 | 终结点服务的类型。 | 字符串 |
子网
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 子网的属性。 | SubnetPropertiesFormat |
SubnetPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| addressPrefix 的 | 子网的地址前缀。 | 字符串 |
| address前缀 | 子网的地址前缀列表。 | 字符串[] |
| applicationGatewayIPConfigurations | 虚拟网络资源的应用程序网关 IP 配置。 | ApplicationGatewayIPConfiguration[] |
| defaultOutboundAccess | 将此属性设置为 false,以禁用子网中所有 VM 的默认出站连接。 | 布尔 |
| 代表团 | 对子网上的委派的引用数组。 | 委派[] |
| IP 分配 | 引用此子网的 IpAllocation 数组。 | 子资源[] |
| ipamPoolPrefix分配 | 用于分配 IP 地址前缀的 IPAM 池列表。 | IpamPoolPrefixAllocation[] |
| natGateway 网关 | 与此子网关联的 Nat 网关。 | 子资源 |
| networkSecurityGroup | 对 NetworkSecurityGroup 资源的引用。 | 网络安全组 |
| privateEndpointNetwork策略 | 在子网中的专用终结点上启用或禁用应用网络策略。 | “Disabled” “Enabled” “NetworkSecurityGroupEnabled” “RouteTableEnabled” |
| privateLinkServiceNetwork策略 | 在子网中的专用链接服务上启用或禁用应用网络策略。 | “Disabled” “Enabled” |
| routeTable | 对 RouteTable 资源的引用。 | 路由表 |
| serviceEndpoint策略 | 服务终结点策略数组。 | ServiceEndpointPolicy[] |
| serviceEndpoints | 服务终结点数组。 | ServiceEndpointPropertiesFormat[] |
| 服务网关 | 引用现有的服务网关。 | 子资源 |
| sharingScope | 将此属性设置为“租户”,以允许与 AAD 租户中的其他订阅共享子网。 仅当 defaultOutboundAccess 设置为 false 时,才能设置此属性,仅当子网为空时,才能设置这两个属性。 | “DelegatedServices” “Tenant” |
子资源
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
ARM 模板资源定义
可以使用目标操作部署 virtualHubs/ipConfigurations 资源类型:
用法示例
Azure 快速入门模板
以下 Azure 快速入门模板 部署此资源类型。
| 模板 | 描述 |
|---|---|
| 使用 Quagga 在 BGP 对等互连中 |
此模板使用 Quagga 部署路由器服务器和 Ubuntu VM。 路由器服务器和 Quagga 之间建立了两个外部 BGP 会话。 Quagga 的安装和配置由适用于 linux 的 Azure 自定义脚本扩展执行 |
|
在新子网中创建路由服务器 |
此模板将路由服务器部署到名为 RouteServerSubnet 的子网中。 |
资源格式
若要创建 Microsoft.Network/virtualHubs/ipConfigurations 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.Network/virtualHubs/ipConfigurations",
"apiVersion": "2026-03-01",
"name": "string",
"properties": {
"privateIPAddress": "string",
"privateIPAllocationMethod": "string",
"publicIPAddress": {
"extendedLocation": {
"name": "string",
"type": "string"
},
"id": "string",
"location": "string",
"properties": {
"ddosSettings": {
"ddosCustomPolicy": {
"id": "string"
},
"ddosProtectionPlan": {
"id": "string"
},
"protectionMode": "string"
},
"deleteOption": "string",
"dnsSettings": {
"domainNameLabel": "string",
"domainNameLabelScope": "string",
"fqdn": "string",
"reverseFqdn": "string"
},
"idleTimeoutInMinutes": "int",
"ipAddress": "string",
"ipTags": [
{
"firstPartyServiceTagId": "string",
"ipTagType": "string",
"tag": "string"
}
],
"linkedPublicIPAddress": ...,
"migrationPhase": "string",
"natGateway": {
"id": "string",
"location": "string",
"properties": {
"idleTimeoutInMinutes": "int",
"nat64": "string",
"publicIpAddresses": [
{
"id": "string"
}
],
"publicIpAddressesV6": [
{
"id": "string"
}
],
"publicIpPrefixes": [
{
"id": "string"
}
],
"publicIpPrefixesV6": [
{
"id": "string"
}
],
"serviceGateway": {
"id": "string"
},
"sourceVirtualNetwork": {
"id": "string"
}
},
"sku": {
"name": "string"
},
"tags": {
"{customized property}": "string"
},
"zones": [ "string" ]
},
"publicIPAddressVersion": "string",
"publicIPAllocationMethod": "string",
"publicIPPrefix": {
"id": "string"
},
"servicePublicIPAddress": ...
},
"sku": {
"name": "string",
"tier": "string"
},
"tags": {
"{customized property}": "string"
},
"zones": [ "string" ]
},
"subnet": {
"id": "string",
"name": "string",
"properties": {
"addressPrefix": "string",
"addressPrefixes": [ "string" ],
"applicationGatewayIPConfigurations": [
{
"id": "string",
"name": "string",
"properties": {
"subnet": {
"id": "string"
}
}
}
],
"defaultOutboundAccess": "bool",
"delegations": [
{
"id": "string",
"name": "string",
"properties": {
"serviceName": "string"
},
"type": "string"
}
],
"ipAllocations": [
{
"id": "string"
}
],
"ipamPoolPrefixAllocations": [
{
"numberOfIpAddresses": "string",
"pool": {
"id": "string"
}
}
],
"natGateway": {
"id": "string"
},
"networkSecurityGroup": {
"id": "string",
"location": "string",
"properties": {
"flushConnection": "bool",
"securityRules": [
{
"id": "string",
"name": "string",
"properties": {
"access": "string",
"description": "string",
"destinationAddressPrefix": "string",
"destinationAddressPrefixes": [ "string" ],
"destinationApplicationSecurityGroups": [
{
"id": "string",
"location": "string",
"properties": {
},
"tags": {
"{customized property}": "string"
}
}
],
"destinationPortRange": "string",
"destinationPortRanges": [ "string" ],
"direction": "string",
"priority": "int",
"protocol": "string",
"sourceAddressPrefix": "string",
"sourceAddressPrefixes": [ "string" ],
"sourceApplicationSecurityGroups": [
{
"id": "string",
"location": "string",
"properties": {
},
"tags": {
"{customized property}": "string"
}
}
],
"sourcePortRange": "string",
"sourcePortRanges": [ "string" ]
}
}
]
},
"tags": {
"{customized property}": "string"
}
},
"privateEndpointNetworkPolicies": "string",
"privateLinkServiceNetworkPolicies": "string",
"routeTable": {
"id": "string",
"location": "string",
"properties": {
"disableBgpRoutePropagation": "bool",
"disablePeeringRoute": "string",
"routes": [
{
"id": "string",
"name": "string",
"properties": {
"addressPrefix": "string",
"nextHop": {
"nextHopIpAddresses": [ "string" ]
},
"nextHopIpAddress": "string",
"nextHopType": "string"
}
}
]
},
"tags": {
"{customized property}": "string"
}
},
"serviceEndpointPolicies": [
{
"id": "string",
"location": "string",
"properties": {
"contextualServiceEndpointPolicies": [ "string" ],
"serviceAlias": "string",
"serviceEndpointPolicyDefinitions": [
{
"id": "string",
"name": "string",
"properties": {
"description": "string",
"service": "string",
"serviceResources": [ "string" ]
}
}
]
},
"tags": {
"{customized property}": "string"
}
}
],
"serviceEndpoints": [
{
"locations": [ "string" ],
"networkIdentifier": {
"id": "string"
},
"service": "string"
}
],
"serviceGateway": {
"id": "string"
},
"sharingScope": "string"
}
}
}
}
属性值
Microsoft.Network/virtualHubs/ipConfigurations
| 名字 | 描述 | 价值 |
|---|---|---|
| apiVersion | API 版本 | '2026-03-01' |
| 名字 | 资源名称 | string (必需) |
| 性能 | 虚拟中心 IPConfigurations 的属性。 | HubIPConfigurationPropertiesFormat |
| 类型 | 资源类型 | “Microsoft.Network/virtualHubs/ipConfigurations” |
ApplicationGatewayIPConfiguration
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 应用程序网关中唯一的 IP 配置的名称。 | 字符串 |
| 性能 | 应用程序网关 IP 配置的属性。 | ApplicationGatewayIPConfigurationPropertiesFormat |
ApplicationGatewayIPConfigurationPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 子网 | 对子网资源的引用。 应用程序网关从中获取其专用地址的子网。 | 子资源 |
ApplicationSecurityGroup 应用程序安全组
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 应用程序安全组的属性。 | ApplicationSecurityGroupPropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
ApplicationSecurityGroupPropertiesFormat
| 名字 | 描述 | 价值 |
|---|
Ddos设置
| 名字 | 描述 | 价值 |
|---|---|---|
| ddosCustomPolicy | 与公共 IP 关联的 DDoS 自定义策略。 | 子资源 |
| ddosProtectionPlan 计划 | 与公共 IP 关联的 DDoS 保护计划。 仅当 ProtectionMode 已启用时才能设置 | 子资源 |
| protectionMode 保护模式 | 公共 IP 的 DDoS 保护模式 | “Disabled” “Enabled” “VirtualNetworkInherited” |
委派
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 子网中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | 子网的属性。 | ServiceDelegationPropertiesFormat |
| 类型 | 资源类型。 | 字符串 |
扩展位置
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 扩展位置的名称。 | 字符串 |
| 类型 | 扩展位置的类型。 | “EdgeZone” |
HubIPConfigurationPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| privateIPAddress 地址 | IP 配置的专用 IP 地址。 | 字符串 |
| privateIPAllocationMethod | 专用 IP 地址分配方法。 | “Dynamic” “Static” |
| publicIPAddress 地址 | 对公共 IP 资源的引用。 | 公共 IP 地址 |
| 子网 | 对子网资源的引用。 | 子网 |
IpamPoolPrefixAllocation
| 名字 | 描述 | 价值 |
|---|---|---|
| IpAddresses 数量 | 要分配的 IP 地址数。 | 字符串 |
| 池 | IpamPoolPrefixAllocationPool |
IpamPoolPrefixAllocationPool
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 关联的 Azure IpamPool 资源的资源 ID。 | 字符串 |
IpTag
| 名字 | 描述 | 价值 |
|---|---|---|
| firstPartyServiceTagId | 与IP标签关联的第一方服务标签的资源ID。 | 字符串 |
| ipTag类型 | IP 标记类型。 示例:FirstPartyUsage。 | 字符串 |
| 标签 | 与公共 IP 关联的 IP 标记的值。 示例:SQL。 | 字符串 |
NatGateway 网关
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | Nat 网关属性。 | NatGatewayPropertiesFormat |
| SKU | nat 网关 SKU。 | NatGatewaySku |
| 标签 | 资源标记。 | 资源标签 |
| 区 | 表示应在其中部署 Nat 网关的区域的可用性区域的列表。 | 字符串[] |
NatGatewayPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| idleTimeoutInMinutes | nat 网关的空闲超时。 | 整数 (int) |
| 自然64 | 是否启用了NAT网关资源中的Nat64。 | “Disabled” “Enabled” “None” |
| publicIp地址 | 与 nat 网关资源关联的公有 IP 地址 V4 数组。 | 子资源[] |
| 公共 IP 地址V6 | 与 nat 网关资源关联的公有 IP 地址 V6 数组。 | 子资源[] |
| publicIp前缀 | 与 nat 网关资源关联的公有 IP 前缀 V4 数组。 | 子资源[] |
| publicIpPrefixesV6 | 与 nat 网关资源关联的公有 IP 前缀 V6 数组。 | 子资源[] |
| 服务网关 | 引用现有的服务网关。 | 子资源 |
| 源虚拟网络 | 使用此 nat 网关资源对源虚拟网络的引用。 | 子资源 |
NatGatewaySku
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | Nat 网关 SKU 的名称。 | “Standard” 'StandardV2' |
网络安全组
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 网络安全组的属性。 | NetworkSecurityGroupPropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
NetworkSecurityGroupPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| flush连接 | 启用后,当规则更新时,将从网络安全组连接创建的流重新评估。 初始启用将触发重新评估。 | 布尔 |
| securityRules 安全规则 | 网络安全组的安全规则集合。 | SecurityRule[] |
公共IP地址 (PublicIPAddress)
| 名字 | 描述 | 价值 |
|---|---|---|
| extendedLocation | 公共 IP 地址的扩展位置。 | 扩展位置 |
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 公共 IP 地址属性。 | PublicIPAddressPropertiesFormat |
| SKU | 公共 IP 地址 SKU。 | 公共 IPAddressSku |
| 标签 | 资源标记。 | 资源标签 |
| 区 | 表示为资源分配的 IP 需要来自的可用性区域列表。 | 字符串[] |
公共 IPAddressDnsSettings
| 名字 | 描述 | 价值 |
|---|---|---|
| domainNameLabel 域名标签 | 域名标签。 域名标签和区域化 DNS 区域的串联构成了与公共 IP 地址关联的完全限定域名。 如果指定了域名标签,则会为 Microsoft Azure DNS 系统中的公共 IP 创建 A DNS 记录。 | 字符串 |
| domainNameLabel范围 | 域名标签范围。 如果指定了域名标签和域名标签范围,则会为 Microsoft Azure DNS 系统中的公共 IP 创建一条 DNS 记录,其中包含 FQDN 中的哈希值。 | “NoReuse” “ResourceGroupReuse” “SubscriptionReuse” “TenantReuse” |
| FQDN | 与公共 IP 关联的 A DNS 记录的完全限定域名。 这是 domainNameLabel 和区域化 DNS 区域的串联。 | 字符串 |
| reverseFqdn | 反向 FQDN。 解析为此公共 IP 地址的用户可见完全限定域名。 如果指定了 reverseFqdn,则会创建 PTR DNS 记录,该记录从 in-addr.arpa 域中的 IP 地址指向反向 FQDN。 | 字符串 |
PublicIPAddressPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| ddos设置 | 与公共 IP 地址关联的 DDoS 保护自定义策略。 | Ddos设置 |
| deleteOption | 指定删除 VM 时公共 IP 地址会发生什么情况 | “Delete” “Detach” |
| dns设置 | 与公共 IP 地址关联的 DNS 记录的 FQDN。 | 公共 IPAddressDnsSettings |
| idleTimeoutInMinutes | 公共 IP 地址的空闲超时。 | 整数 (int) |
| IP地址 | 与公共 IP 地址资源关联的 IP 地址。 | 字符串 |
| ip标签 | 与公共 IP 地址关联的标记列表。 | IpTag [] |
| linkedPublicIPAddress 地址 | 公共 IP 地址资源的链接公共 IP 地址。 | 公共 IP 地址 |
| 迁移阶段 | 公共 IP 地址的迁移阶段。 | “中止” “Commit” “已提交” “None” “准备” |
| natGateway 网关 | 公共 IP 地址的 NatGateway。 | NatGateway 网关 |
| publicIPAddress版本 | 公共 IP 地址版本。 | “IPv4” “IPv6” |
| publicIPAllocationMethod | 公共 IP 地址分配方法。 | “Dynamic” “Static” |
| publicIPPrefix | 应从中分配此公共 IP 地址的公共 IP 前缀。 | 子资源 |
| servicePublicIPAddress 地址 | 公共 IP 地址资源的服务公共 IP 地址。 | 公共 IP 地址 |
公共 IPAddressSku
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 公共 IP 地址 SKU 的名称。 | “Basic” “Standard” 'StandardV2' |
| 分层 | 公共 IP 地址 SKU 的层。 | “Global” “区域” |
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
Route
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 路由的属性。 | RoutePropertiesFormat |
RouteNextHopEcmp(路由NextHopEcmp)
| 名字 | 描述 | 价值 |
|---|---|---|
| nextHopIp地址 | ECMP路由下一跳IP地址列表。 必须包含2到64个IP地址。 | string[] (必需) |
RoutePropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| addressPrefix 的 | 路由应用到的目标 CIDR。 | 字符串 |
| nextHop | 包含ECMP下一跳IP地址的下一跳定义。 仅在nextHopType为VirtualApplianceEcmp时才被允许。 | RouteNextHopEcmp(路由NextHopEcmp) |
| nextHopIp地址 | IP 地址数据包应转发到。 只有在下一跃点类型为 VirtualAppliance 的路由中才允许下一跃点值。 | 字符串 |
| nextHopType | 应将数据包发送到的 Azure 跃点的类型。 | “Internet” “None” “VirtualAppliance” “虚拟设备ECMP” “VirtualNetworkGateway” “VnetLocal”(必需) |
RouteTable
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 路由表的属性。 | RouteTablePropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
RouteTablePropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 禁用 BgpRoutePropagation | 是否禁用 BGP 在该路由表上学习的路由。 True 表示禁用。 | 布尔 |
| disablePeeringRoute | 是否禁用通过对等互连在路由表上学习的路由。 “None”表示已启用对等互连路由,“All”表示禁用所有对等互连路由。 | 'All' “None” |
| 路线 | 路由表中包含的路由的集合。 | 路由[] |
SecurityRule 安全规则
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 安全规则的属性。 | SecurityRulePropertiesFormat |
SecurityRulePropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 访问 | 允许或拒绝网络流量。 | “允许” “拒绝”(必需) |
| 描述 | 此规则的说明。 限制为 140 个字符。 | 字符串 |
| destinationAddressPrefix 的 | 目标地址前缀。 CIDR 或目标 IP 范围。 星号“*”还可用于匹配所有源 IP。 也可以使用默认标记,例如“VirtualNetwork”、“AzureLoadBalancer”和“Internet”。 | 字符串 |
| destinationAddress前缀 | 目标地址前缀。 CIDR 或目标 IP 范围。 | 字符串[] |
| destinationApplicationSecurityGroups | 指定为目标的应用程序安全组。 | ApplicationSecurityGroup[] |
| destinationPortRange | 目标端口或范围。 介于 0 和 65535 之间的整数或范围。 星号“*”也可用于匹配所有端口。 | 字符串 |
| destinationPortRanges | 目标端口范围。 | 字符串[] |
| 方向 | 规则的方向。 该方向指定在传入或传出流量上是否评估规则。 | “Inbound” “出站”(必需) |
| 优先权 | 规则的优先级。 该值可以介于 100 和 4096 之间。 对于集合中的每个规则,优先级编号必须是唯一的。 优先级编号越低,规则优先级越高。 | int (必需) |
| 协议 | 此规则适用于的网络协议。 | '*' “Ah” “Esp” “Icmp” “Tcp” “Udp”(必需) |
| sourceAddressPrefix 的 | CIDR 或源 IP 范围。 星号“*”还可用于匹配所有源 IP。 也可以使用默认标记,例如“VirtualNetwork”、“AzureLoadBalancer”和“Internet”。 如果这是入口规则,则指定网络流量的来源。 | 字符串 |
| sourceAddress前缀 | CIDR 或源 IP 范围。 | 字符串[] |
| sourceApplicationSecurityGroups | 指定为源的应用程序安全组。 | ApplicationSecurityGroup[] |
| sourcePortRange | 源端口或范围。 介于 0 和 65535 之间的整数或范围。 星号“*”也可用于匹配所有端口。 | 字符串 |
| sourcePort范围 | 源端口范围。 | 字符串[] |
ServiceDelegationPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 服务名称 | 应向其委托子网的服务的名称(例如Microsoft.Sql/servers)。 | 字符串 |
ServiceEndpointPolicy
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 服务终结点策略的属性。 | ServiceEndpointPolicyPropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
ServiceEndpointPolicyDefinition
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 服务终结点策略定义的属性。 | ServiceEndpointPolicyDefinitionPropertiesFormat |
ServiceEndpointPolicyDefinitionPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 描述 | 此规则的说明。 限制为 140 个字符。 | 字符串 |
| 服务 | 服务终结点名称。 | 字符串 |
| 服务资源 | 服务资源列表。 | 字符串[] |
ServiceEndpointPolicyPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| contextualServiceEndpoint策略 | 上下文服务终结点策略的集合。 | 字符串[] |
| service别名 | 指示策略是否属于服务的别名 | 字符串 |
| serviceEndpointPolicyDefinitions | 服务终结点策略的服务终结点策略定义的集合。 | ServiceEndpointPolicyDefinition[] |
ServiceEndpointPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 地点 | 位置列表。 | 字符串[] |
| 网络标识符 | SubResource 作为网络标识符。 | 子资源 |
| 服务 | 终结点服务的类型。 | 字符串 |
子网
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 子网的属性。 | SubnetPropertiesFormat |
SubnetPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| addressPrefix 的 | 子网的地址前缀。 | 字符串 |
| address前缀 | 子网的地址前缀列表。 | 字符串[] |
| applicationGatewayIPConfigurations | 虚拟网络资源的应用程序网关 IP 配置。 | ApplicationGatewayIPConfiguration[] |
| defaultOutboundAccess | 将此属性设置为 false,以禁用子网中所有 VM 的默认出站连接。 | 布尔 |
| 代表团 | 对子网上的委派的引用数组。 | 委派[] |
| IP 分配 | 引用此子网的 IpAllocation 数组。 | 子资源[] |
| ipamPoolPrefix分配 | 用于分配 IP 地址前缀的 IPAM 池列表。 | IpamPoolPrefixAllocation[] |
| natGateway 网关 | 与此子网关联的 Nat 网关。 | 子资源 |
| networkSecurityGroup | 对 NetworkSecurityGroup 资源的引用。 | 网络安全组 |
| privateEndpointNetwork策略 | 在子网中的专用终结点上启用或禁用应用网络策略。 | “Disabled” “Enabled” “NetworkSecurityGroupEnabled” “RouteTableEnabled” |
| privateLinkServiceNetwork策略 | 在子网中的专用链接服务上启用或禁用应用网络策略。 | “Disabled” “Enabled” |
| routeTable | 对 RouteTable 资源的引用。 | 路由表 |
| serviceEndpoint策略 | 服务终结点策略数组。 | ServiceEndpointPolicy[] |
| serviceEndpoints | 服务终结点数组。 | ServiceEndpointPropertiesFormat[] |
| 服务网关 | 引用现有的服务网关。 | 子资源 |
| sharingScope | 将此属性设置为“租户”,以允许与 AAD 租户中的其他订阅共享子网。 仅当 defaultOutboundAccess 设置为 false 时,才能设置此属性,仅当子网为空时,才能设置这两个属性。 | “DelegatedServices” “Tenant” |
子资源
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
Terraform (AzAPI 提供程序)资源定义
可以使用目标操作部署 virtualHubs/ipConfigurations 资源类型:
- 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。
用法示例
Terraform 示例
部署虚拟中心 IP 的基本示例。 此资源也称为路由服务器。
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" "virtualNetwork" {
type = "Microsoft.Network/virtualNetworks@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
addressSpace = {
addressPrefixes = [
"10.5.0.0/16",
]
}
dhcpOptions = {
dnsServers = [
]
}
subnets = [
]
}
}
schema_validation_enabled = false
response_export_values = ["*"]
lifecycle {
ignore_changes = [body.properties.subnets]
}
}
resource "azapi_resource" "publicIPAddress" {
type = "Microsoft.Network/publicIPAddresses@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
ddosSettings = {
protectionMode = "VirtualNetworkInherited"
}
idleTimeoutInMinutes = 4
publicIPAddressVersion = "IPv4"
publicIPAllocationMethod = "Static"
}
sku = {
name = "Standard"
tier = "Regional"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "virtualHub" {
type = "Microsoft.Network/virtualHubs@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
hubRoutingPreference = "ExpressRoute"
sku = "Standard"
virtualRouterAutoScaleConfiguration = {
minCapacity = 2
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "subnet" {
type = "Microsoft.Network/virtualNetworks/subnets@2022-07-01"
parent_id = azapi_resource.virtualNetwork.id
name = "RouteServerSubnet"
body = {
properties = {
addressPrefix = "10.5.1.0/24"
delegations = [
]
privateEndpointNetworkPolicies = "Enabled"
privateLinkServiceNetworkPolicies = "Enabled"
serviceEndpointPolicies = [
]
serviceEndpoints = [
]
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "ipConfiguration" {
type = "Microsoft.Network/virtualHubs/ipConfigurations@2022-07-01"
parent_id = azapi_resource.virtualHub.id
name = var.resource_name
body = {
properties = {
privateIPAddress = "10.5.1.18"
privateIPAllocationMethod = "Static"
publicIPAddress = {
id = azapi_resource.publicIPAddress.id
}
subnet = {
id = azapi_resource.subnet.id
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
资源格式
若要创建 Microsoft.Network/virtualHubs/ipConfigurations 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/virtualHubs/ipConfigurations@2026-03-01"
name = "string"
parent_id = "string"
body = {
properties = {
privateIPAddress = "string"
privateIPAllocationMethod = "string"
publicIPAddress = {
extendedLocation = {
name = "string"
type = "string"
}
id = "string"
location = "string"
properties = {
ddosSettings = {
ddosCustomPolicy = {
id = "string"
}
ddosProtectionPlan = {
id = "string"
}
protectionMode = "string"
}
deleteOption = "string"
dnsSettings = {
domainNameLabel = "string"
domainNameLabelScope = "string"
fqdn = "string"
reverseFqdn = "string"
}
idleTimeoutInMinutes = int
ipAddress = "string"
ipTags = [
{
firstPartyServiceTagId = "string"
ipTagType = "string"
tag = "string"
}
]
linkedPublicIPAddress = ...
migrationPhase = "string"
natGateway = {
id = "string"
location = "string"
properties = {
idleTimeoutInMinutes = int
nat64 = "string"
publicIpAddresses = [
{
id = "string"
}
]
publicIpAddressesV6 = [
{
id = "string"
}
]
publicIpPrefixes = [
{
id = "string"
}
]
publicIpPrefixesV6 = [
{
id = "string"
}
]
serviceGateway = {
id = "string"
}
sourceVirtualNetwork = {
id = "string"
}
}
sku = {
name = "string"
}
tags = {
{customized property} = "string"
}
zones = [
"string"
]
}
publicIPAddressVersion = "string"
publicIPAllocationMethod = "string"
publicIPPrefix = {
id = "string"
}
servicePublicIPAddress = ...
}
sku = {
name = "string"
tier = "string"
}
tags = {
{customized property} = "string"
}
zones = [
"string"
]
}
subnet = {
id = "string"
name = "string"
properties = {
addressPrefix = "string"
addressPrefixes = [
"string"
]
applicationGatewayIPConfigurations = [
{
id = "string"
name = "string"
properties = {
subnet = {
id = "string"
}
}
}
]
defaultOutboundAccess = bool
delegations = [
{
id = "string"
name = "string"
properties = {
serviceName = "string"
}
type = "string"
}
]
ipAllocations = [
{
id = "string"
}
]
ipamPoolPrefixAllocations = [
{
numberOfIpAddresses = "string"
pool = {
id = "string"
}
}
]
natGateway = {
id = "string"
}
networkSecurityGroup = {
id = "string"
location = "string"
properties = {
flushConnection = bool
securityRules = [
{
id = "string"
name = "string"
properties = {
access = "string"
description = "string"
destinationAddressPrefix = "string"
destinationAddressPrefixes = [
"string"
]
destinationApplicationSecurityGroups = [
{
id = "string"
location = "string"
properties = {
}
tags = {
{customized property} = "string"
}
}
]
destinationPortRange = "string"
destinationPortRanges = [
"string"
]
direction = "string"
priority = int
protocol = "string"
sourceAddressPrefix = "string"
sourceAddressPrefixes = [
"string"
]
sourceApplicationSecurityGroups = [
{
id = "string"
location = "string"
properties = {
}
tags = {
{customized property} = "string"
}
}
]
sourcePortRange = "string"
sourcePortRanges = [
"string"
]
}
}
]
}
tags = {
{customized property} = "string"
}
}
privateEndpointNetworkPolicies = "string"
privateLinkServiceNetworkPolicies = "string"
routeTable = {
id = "string"
location = "string"
properties = {
disableBgpRoutePropagation = bool
disablePeeringRoute = "string"
routes = [
{
id = "string"
name = "string"
properties = {
addressPrefix = "string"
nextHop = {
nextHopIpAddresses = [
"string"
]
}
nextHopIpAddress = "string"
nextHopType = "string"
}
}
]
}
tags = {
{customized property} = "string"
}
}
serviceEndpointPolicies = [
{
id = "string"
location = "string"
properties = {
contextualServiceEndpointPolicies = [
"string"
]
serviceAlias = "string"
serviceEndpointPolicyDefinitions = [
{
id = "string"
name = "string"
properties = {
description = "string"
service = "string"
serviceResources = [
"string"
]
}
}
]
}
tags = {
{customized property} = "string"
}
}
]
serviceEndpoints = [
{
locations = [
"string"
]
networkIdentifier = {
id = "string"
}
service = "string"
}
]
serviceGateway = {
id = "string"
}
sharingScope = "string"
}
}
}
}
}
属性值
Microsoft.Network/virtualHubs/ipConfigurations
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 资源名称 | string (必需) |
| parent_id | 此资源的父资源的 ID。 | 类型资源的 ID:virtualHubs |
| 性能 | 虚拟中心 IPConfigurations 的属性。 | HubIPConfigurationPropertiesFormat |
| 类型 | 资源类型 | “Microsoft。网络/虚拟枢纽/ipConfigurations@2026-03-01” |
ApplicationGatewayIPConfiguration
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 应用程序网关中唯一的 IP 配置的名称。 | 字符串 |
| 性能 | 应用程序网关 IP 配置的属性。 | ApplicationGatewayIPConfigurationPropertiesFormat |
ApplicationGatewayIPConfigurationPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 子网 | 对子网资源的引用。 应用程序网关从中获取其专用地址的子网。 | 子资源 |
ApplicationSecurityGroup 应用程序安全组
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 应用程序安全组的属性。 | ApplicationSecurityGroupPropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
ApplicationSecurityGroupPropertiesFormat
| 名字 | 描述 | 价值 |
|---|
Ddos设置
| 名字 | 描述 | 价值 |
|---|---|---|
| ddosCustomPolicy | 与公共 IP 关联的 DDoS 自定义策略。 | 子资源 |
| ddosProtectionPlan 计划 | 与公共 IP 关联的 DDoS 保护计划。 仅当 ProtectionMode 已启用时才能设置 | 子资源 |
| protectionMode 保护模式 | 公共 IP 的 DDoS 保护模式 | “Disabled” “Enabled” “VirtualNetworkInherited” |
委派
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 子网中唯一的资源的名称。 此名称可用于访问资源。 | 字符串 |
| 性能 | 子网的属性。 | ServiceDelegationPropertiesFormat |
| 类型 | 资源类型。 | 字符串 |
扩展位置
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 扩展位置的名称。 | 字符串 |
| 类型 | 扩展位置的类型。 | “EdgeZone” |
HubIPConfigurationPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| privateIPAddress 地址 | IP 配置的专用 IP 地址。 | 字符串 |
| privateIPAllocationMethod | 专用 IP 地址分配方法。 | “Dynamic” “Static” |
| publicIPAddress 地址 | 对公共 IP 资源的引用。 | 公共 IP 地址 |
| 子网 | 对子网资源的引用。 | 子网 |
IpamPoolPrefixAllocation
| 名字 | 描述 | 价值 |
|---|---|---|
| IpAddresses 数量 | 要分配的 IP 地址数。 | 字符串 |
| 池 | IpamPoolPrefixAllocationPool |
IpamPoolPrefixAllocationPool
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 关联的 Azure IpamPool 资源的资源 ID。 | 字符串 |
IpTag
| 名字 | 描述 | 价值 |
|---|---|---|
| firstPartyServiceTagId | 与IP标签关联的第一方服务标签的资源ID。 | 字符串 |
| ipTag类型 | IP 标记类型。 示例:FirstPartyUsage。 | 字符串 |
| 标签 | 与公共 IP 关联的 IP 标记的值。 示例:SQL。 | 字符串 |
NatGateway 网关
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | Nat 网关属性。 | NatGatewayPropertiesFormat |
| SKU | nat 网关 SKU。 | NatGatewaySku |
| 标签 | 资源标记。 | 资源标签 |
| 区 | 表示应在其中部署 Nat 网关的区域的可用性区域的列表。 | 字符串[] |
NatGatewayPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| idleTimeoutInMinutes | nat 网关的空闲超时。 | 整数 (int) |
| 自然64 | 是否启用了NAT网关资源中的Nat64。 | “Disabled” “Enabled” “None” |
| publicIp地址 | 与 nat 网关资源关联的公有 IP 地址 V4 数组。 | 子资源[] |
| 公共 IP 地址V6 | 与 nat 网关资源关联的公有 IP 地址 V6 数组。 | 子资源[] |
| publicIp前缀 | 与 nat 网关资源关联的公有 IP 前缀 V4 数组。 | 子资源[] |
| publicIpPrefixesV6 | 与 nat 网关资源关联的公有 IP 前缀 V6 数组。 | 子资源[] |
| 服务网关 | 引用现有的服务网关。 | 子资源 |
| 源虚拟网络 | 使用此 nat 网关资源对源虚拟网络的引用。 | 子资源 |
NatGatewaySku
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | Nat 网关 SKU 的名称。 | “Standard” 'StandardV2' |
网络安全组
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 网络安全组的属性。 | NetworkSecurityGroupPropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
NetworkSecurityGroupPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| flush连接 | 启用后,当规则更新时,将从网络安全组连接创建的流重新评估。 初始启用将触发重新评估。 | 布尔 |
| securityRules 安全规则 | 网络安全组的安全规则集合。 | SecurityRule[] |
公共IP地址 (PublicIPAddress)
| 名字 | 描述 | 价值 |
|---|---|---|
| extendedLocation | 公共 IP 地址的扩展位置。 | 扩展位置 |
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 公共 IP 地址属性。 | PublicIPAddressPropertiesFormat |
| SKU | 公共 IP 地址 SKU。 | 公共 IPAddressSku |
| 标签 | 资源标记。 | 资源标签 |
| 区 | 表示为资源分配的 IP 需要来自的可用性区域列表。 | 字符串[] |
公共 IPAddressDnsSettings
| 名字 | 描述 | 价值 |
|---|---|---|
| domainNameLabel 域名标签 | 域名标签。 域名标签和区域化 DNS 区域的串联构成了与公共 IP 地址关联的完全限定域名。 如果指定了域名标签,则会为 Microsoft Azure DNS 系统中的公共 IP 创建 A DNS 记录。 | 字符串 |
| domainNameLabel范围 | 域名标签范围。 如果指定了域名标签和域名标签范围,则会为 Microsoft Azure DNS 系统中的公共 IP 创建一条 DNS 记录,其中包含 FQDN 中的哈希值。 | “NoReuse” “ResourceGroupReuse” “SubscriptionReuse” “TenantReuse” |
| FQDN | 与公共 IP 关联的 A DNS 记录的完全限定域名。 这是 domainNameLabel 和区域化 DNS 区域的串联。 | 字符串 |
| reverseFqdn | 反向 FQDN。 解析为此公共 IP 地址的用户可见完全限定域名。 如果指定了 reverseFqdn,则会创建 PTR DNS 记录,该记录从 in-addr.arpa 域中的 IP 地址指向反向 FQDN。 | 字符串 |
PublicIPAddressPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| ddos设置 | 与公共 IP 地址关联的 DDoS 保护自定义策略。 | Ddos设置 |
| deleteOption | 指定删除 VM 时公共 IP 地址会发生什么情况 | “Delete” “Detach” |
| dns设置 | 与公共 IP 地址关联的 DNS 记录的 FQDN。 | 公共 IPAddressDnsSettings |
| idleTimeoutInMinutes | 公共 IP 地址的空闲超时。 | 整数 (int) |
| IP地址 | 与公共 IP 地址资源关联的 IP 地址。 | 字符串 |
| ip标签 | 与公共 IP 地址关联的标记列表。 | IpTag [] |
| linkedPublicIPAddress 地址 | 公共 IP 地址资源的链接公共 IP 地址。 | 公共 IP 地址 |
| 迁移阶段 | 公共 IP 地址的迁移阶段。 | “中止” “Commit” “已提交” “None” “准备” |
| natGateway 网关 | 公共 IP 地址的 NatGateway。 | NatGateway 网关 |
| publicIPAddress版本 | 公共 IP 地址版本。 | “IPv4” “IPv6” |
| publicIPAllocationMethod | 公共 IP 地址分配方法。 | “Dynamic” “Static” |
| publicIPPrefix | 应从中分配此公共 IP 地址的公共 IP 前缀。 | 子资源 |
| servicePublicIPAddress 地址 | 公共 IP 地址资源的服务公共 IP 地址。 | 公共 IP 地址 |
公共 IPAddressSku
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 公共 IP 地址 SKU 的名称。 | “Basic” “Standard” 'StandardV2' |
| 分层 | 公共 IP 地址 SKU 的层。 | “Global” “区域” |
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
资源标签
| 名字 | 描述 | 价值 |
|---|
Route
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 路由的属性。 | RoutePropertiesFormat |
RouteNextHopEcmp(路由NextHopEcmp)
| 名字 | 描述 | 价值 |
|---|---|---|
| nextHopIp地址 | ECMP路由下一跳IP地址列表。 必须包含2到64个IP地址。 | string[] (必需) |
RoutePropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| addressPrefix 的 | 路由应用到的目标 CIDR。 | 字符串 |
| nextHop | 包含ECMP下一跳IP地址的下一跳定义。 仅在nextHopType为VirtualApplianceEcmp时才被允许。 | RouteNextHopEcmp(路由NextHopEcmp) |
| nextHopIp地址 | IP 地址数据包应转发到。 只有在下一跃点类型为 VirtualAppliance 的路由中才允许下一跃点值。 | 字符串 |
| nextHopType | 应将数据包发送到的 Azure 跃点的类型。 | “Internet” “None” “VirtualAppliance” “虚拟设备ECMP” “VirtualNetworkGateway” “VnetLocal”(必需) |
RouteTable
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 路由表的属性。 | RouteTablePropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
RouteTablePropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 禁用 BgpRoutePropagation | 是否禁用 BGP 在该路由表上学习的路由。 True 表示禁用。 | 布尔 |
| disablePeeringRoute | 是否禁用通过对等互连在路由表上学习的路由。 “None”表示已启用对等互连路由,“All”表示禁用所有对等互连路由。 | 'All' “None” |
| 路线 | 路由表中包含的路由的集合。 | 路由[] |
SecurityRule 安全规则
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 安全规则的属性。 | SecurityRulePropertiesFormat |
SecurityRulePropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 访问 | 允许或拒绝网络流量。 | “允许” “拒绝”(必需) |
| 描述 | 此规则的说明。 限制为 140 个字符。 | 字符串 |
| destinationAddressPrefix 的 | 目标地址前缀。 CIDR 或目标 IP 范围。 星号“*”还可用于匹配所有源 IP。 也可以使用默认标记,例如“VirtualNetwork”、“AzureLoadBalancer”和“Internet”。 | 字符串 |
| destinationAddress前缀 | 目标地址前缀。 CIDR 或目标 IP 范围。 | 字符串[] |
| destinationApplicationSecurityGroups | 指定为目标的应用程序安全组。 | ApplicationSecurityGroup[] |
| destinationPortRange | 目标端口或范围。 介于 0 和 65535 之间的整数或范围。 星号“*”也可用于匹配所有端口。 | 字符串 |
| destinationPortRanges | 目标端口范围。 | 字符串[] |
| 方向 | 规则的方向。 该方向指定在传入或传出流量上是否评估规则。 | “Inbound” “出站”(必需) |
| 优先权 | 规则的优先级。 该值可以介于 100 和 4096 之间。 对于集合中的每个规则,优先级编号必须是唯一的。 优先级编号越低,规则优先级越高。 | int (必需) |
| 协议 | 此规则适用于的网络协议。 | '*' “Ah” “Esp” “Icmp” “Tcp” “Udp”(必需) |
| sourceAddressPrefix 的 | CIDR 或源 IP 范围。 星号“*”还可用于匹配所有源 IP。 也可以使用默认标记,例如“VirtualNetwork”、“AzureLoadBalancer”和“Internet”。 如果这是入口规则,则指定网络流量的来源。 | 字符串 |
| sourceAddress前缀 | CIDR 或源 IP 范围。 | 字符串[] |
| sourceApplicationSecurityGroups | 指定为源的应用程序安全组。 | ApplicationSecurityGroup[] |
| sourcePortRange | 源端口或范围。 介于 0 和 65535 之间的整数或范围。 星号“*”也可用于匹配所有端口。 | 字符串 |
| sourcePort范围 | 源端口范围。 | 字符串[] |
ServiceDelegationPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 服务名称 | 应向其委托子网的服务的名称(例如Microsoft.Sql/servers)。 | 字符串 |
ServiceEndpointPolicy
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 位置 | 资源位置。 | 字符串 |
| 性能 | 服务终结点策略的属性。 | ServiceEndpointPolicyPropertiesFormat |
| 标签 | 资源标记。 | 资源标签 |
ServiceEndpointPolicyDefinition
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 服务终结点策略定义的属性。 | ServiceEndpointPolicyDefinitionPropertiesFormat |
ServiceEndpointPolicyDefinitionPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 描述 | 此规则的说明。 限制为 140 个字符。 | 字符串 |
| 服务 | 服务终结点名称。 | 字符串 |
| 服务资源 | 服务资源列表。 | 字符串[] |
ServiceEndpointPolicyPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| contextualServiceEndpoint策略 | 上下文服务终结点策略的集合。 | 字符串[] |
| service别名 | 指示策略是否属于服务的别名 | 字符串 |
| serviceEndpointPolicyDefinitions | 服务终结点策略的服务终结点策略定义的集合。 | ServiceEndpointPolicyDefinition[] |
ServiceEndpointPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| 地点 | 位置列表。 | 字符串[] |
| 网络标识符 | SubResource 作为网络标识符。 | 子资源 |
| 服务 | 终结点服务的类型。 | 字符串 |
子网
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |
| 名字 | 资源的名称。 | 字符串 |
| 性能 | 子网的属性。 | SubnetPropertiesFormat |
SubnetPropertiesFormat
| 名字 | 描述 | 价值 |
|---|---|---|
| addressPrefix 的 | 子网的地址前缀。 | 字符串 |
| address前缀 | 子网的地址前缀列表。 | 字符串[] |
| applicationGatewayIPConfigurations | 虚拟网络资源的应用程序网关 IP 配置。 | ApplicationGatewayIPConfiguration[] |
| defaultOutboundAccess | 将此属性设置为 false,以禁用子网中所有 VM 的默认出站连接。 | 布尔 |
| 代表团 | 对子网上的委派的引用数组。 | 委派[] |
| IP 分配 | 引用此子网的 IpAllocation 数组。 | 子资源[] |
| ipamPoolPrefix分配 | 用于分配 IP 地址前缀的 IPAM 池列表。 | IpamPoolPrefixAllocation[] |
| natGateway 网关 | 与此子网关联的 Nat 网关。 | 子资源 |
| networkSecurityGroup | 对 NetworkSecurityGroup 资源的引用。 | 网络安全组 |
| privateEndpointNetwork策略 | 在子网中的专用终结点上启用或禁用应用网络策略。 | “Disabled” “Enabled” “NetworkSecurityGroupEnabled” “RouteTableEnabled” |
| privateLinkServiceNetwork策略 | 在子网中的专用链接服务上启用或禁用应用网络策略。 | “Disabled” “Enabled” |
| routeTable | 对 RouteTable 资源的引用。 | 路由表 |
| serviceEndpoint策略 | 服务终结点策略数组。 | ServiceEndpointPolicy[] |
| serviceEndpoints | 服务终结点数组。 | ServiceEndpointPropertiesFormat[] |
| 服务网关 | 引用现有的服务网关。 | 子资源 |
| sharingScope | 将此属性设置为“租户”,以允许与 AAD 租户中的其他订阅共享子网。 仅当 defaultOutboundAccess 设置为 false 时,才能设置此属性,仅当子网为空时,才能设置这两个属性。 | “DelegatedServices” “Tenant” |
子资源
| 名字 | 描述 | 价值 |
|---|---|---|
| 身份证 | 资源 ID。 | 字符串 |