Bicep 资源定义
可以使用目标作部署 networkInterfaces 资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.AzureStackHCI/networkInterfaces 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.AzureStackHCI/networkInterfaces@2025-04-01-preview' = {
extendedLocation: {
name: 'string'
type: 'string'
}
location: 'string'
name: 'string'
properties: {
createFromLocal: bool
dnsSettings: {
dnsServers: [
'string'
]
}
ipConfigurations: [
{
name: 'string'
properties: {
privateIPAddress: 'string'
subnet: {
id: 'string'
}
}
}
]
macAddress: 'string'
networkSecurityGroup: {
id: 'string'
}
}
tags: {
{customized property}: 'string'
}
}
属性值
Microsoft.AzureStackHCI/networkInterfaces
名字 |
说明 |
价值 |
extendedLocation |
资源的 extendedLocation。 |
扩展位置 |
位置 |
资源所在的地理位置 |
string (必需) |
姓名 |
资源名称 |
字符串
约束: 模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (必需) |
性能 |
此资源的资源特定属性。 |
NetworkInterface属性 |
标签 |
资源标记 |
标记名称和值的字典。 请参阅模板 中的 标记 |
扩展位置
名字 |
说明 |
价值 |
姓名 |
扩展位置的名称。 |
字符串 |
类型 |
扩展位置的类型。 |
“CustomLocation” |
接口DNSSettings
名字 |
说明 |
价值 |
dns服务器 |
接口的 DNS 服务器 IP 地址列表 |
字符串[] |
IPConfiguration
名字 |
说明 |
价值 |
姓名 |
名称 - 资源组中唯一的资源的名称。 此名称可用于访问资源。 |
字符串
约束: 图案 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
性能 |
IP 配置的 InterfaceIPConfigurationPropertiesFormat 属性。 |
IPConfigurationProperties |
IPConfigurationProperties
LogicalNetworkArmReference (逻辑网络Arm引用)
名字 |
说明 |
价值 |
身份证 |
逻辑网络的 ARM ID。 |
字符串 |
NetworkInterface属性
NetworkSecurityGroupArmReference (网络安全组Arm参考)
名字 |
说明 |
价值 |
身份证 |
网络安全组的 ARM ID。 |
字符串 |
用法示例
Azure 验证模块
以下 Azure 验证模块 可用于部署此资源类型。
Azure 快速入门示例
以下 Azure 快速入门模板 包含用于部署此资源类型的 Bicep 示例。
ARM 模板资源定义
可以使用目标作部署 networkInterfaces 资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.AzureStackHCI/networkInterfaces 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.AzureStackHCI/networkInterfaces",
"apiVersion": "2025-04-01-preview",
"name": "string",
"extendedLocation": {
"name": "string",
"type": "string"
},
"location": "string",
"properties": {
"createFromLocal": "bool",
"dnsSettings": {
"dnsServers": [ "string" ]
},
"ipConfigurations": [
{
"name": "string",
"properties": {
"privateIPAddress": "string",
"subnet": {
"id": "string"
}
}
}
],
"macAddress": "string",
"networkSecurityGroup": {
"id": "string"
}
},
"tags": {
"{customized property}": "string"
}
}
属性值
Microsoft.AzureStackHCI/networkInterfaces
名字 |
说明 |
价值 |
apiVersion |
API 版本 |
“2025-04-01-预览” |
extendedLocation |
资源的 extendedLocation。 |
扩展位置 |
位置 |
资源所在的地理位置 |
string (必需) |
姓名 |
资源名称 |
字符串
约束: 模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (必需) |
性能 |
此资源的资源特定属性。 |
NetworkInterface属性 |
标签 |
资源标记 |
标记名称和值的字典。 请参阅模板 中的 标记 |
类型 |
资源类型 |
“Microsoft.AzureStackHCI/networkInterfaces” |
扩展位置
名字 |
说明 |
价值 |
姓名 |
扩展位置的名称。 |
字符串 |
类型 |
扩展位置的类型。 |
“CustomLocation” |
接口DNSSettings
名字 |
说明 |
价值 |
dns服务器 |
接口的 DNS 服务器 IP 地址列表 |
字符串[] |
IPConfiguration
名字 |
说明 |
价值 |
姓名 |
名称 - 资源组中唯一的资源的名称。 此名称可用于访问资源。 |
字符串
约束: 图案 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
性能 |
IP 配置的 InterfaceIPConfigurationPropertiesFormat 属性。 |
IPConfigurationProperties |
IPConfigurationProperties
LogicalNetworkArmReference (逻辑网络Arm引用)
名字 |
说明 |
价值 |
身份证 |
逻辑网络的 ARM ID。 |
字符串 |
NetworkInterface属性
NetworkSecurityGroupArmReference (网络安全组Arm参考)
名字 |
说明 |
价值 |
身份证 |
网络安全组的 ARM ID。 |
字符串 |
用法示例
Azure 快速入门模板
以下 Azure 快速入门模板 部署此资源类型。
可以使用目标作部署 networkInterfaces 资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.AzureStackHCI/networkInterfaces 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AzureStackHCI/networkInterfaces@2025-04-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
extendedLocation = {
name = "string"
type = "string"
}
properties = {
createFromLocal = bool
dnsSettings = {
dnsServers = [
"string"
]
}
ipConfigurations = [
{
name = "string"
properties = {
privateIPAddress = "string"
subnet = {
id = "string"
}
}
}
]
macAddress = "string"
networkSecurityGroup = {
id = "string"
}
}
}
}
属性值
Microsoft.AzureStackHCI/networkInterfaces
名字 |
说明 |
价值 |
extendedLocation |
资源的 extendedLocation。 |
扩展位置 |
位置 |
资源所在的地理位置 |
string (必需) |
姓名 |
资源名称 |
字符串
约束: 模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (必需) |
性能 |
此资源的资源特定属性。 |
NetworkInterface属性 |
标签 |
资源标记 |
标记名称和值的字典。 |
类型 |
资源类型 |
“Microsoft.AzureStackHCI/networkInterfaces@2025-04-01-preview” |
扩展位置
名字 |
说明 |
价值 |
姓名 |
扩展位置的名称。 |
字符串 |
类型 |
扩展位置的类型。 |
“CustomLocation” |
接口DNSSettings
名字 |
说明 |
价值 |
dns服务器 |
接口的 DNS 服务器 IP 地址列表 |
字符串[] |
IPConfiguration
名字 |
说明 |
价值 |
姓名 |
名称 - 资源组中唯一的资源的名称。 此名称可用于访问资源。 |
字符串
约束: 图案 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$ |
性能 |
IP 配置的 InterfaceIPConfigurationPropertiesFormat 属性。 |
IPConfigurationProperties |
IPConfigurationProperties
LogicalNetworkArmReference (逻辑网络Arm引用)
名字 |
说明 |
价值 |
身份证 |
逻辑网络的 ARM ID。 |
字符串 |
NetworkInterface属性
NetworkSecurityGroupArmReference (网络安全组Arm参考)
名字 |
说明 |
价值 |
身份证 |
网络安全组的 ARM ID。 |
字符串 |