共用方式為


Microsoft.Network networkVirtualAppliances

Bicep 資源定義

networkVirtualAppliances 資源類型可以使用目標作業進行部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.Network/networkVirtualAppliances 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.Network/networkVirtualAppliances@2023-11-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  properties: {
    additionalNics: [
      {
        hasPublicIp: bool
        name: 'string'
      }
    ]
    bootStrapConfigurationBlobs: [
      'string'
    ]
    cloudInitConfiguration: 'string'
    cloudInitConfigurationBlobs: [
      'string'
    ]
    delegation: {
      serviceName: 'string'
    }
    internetIngressPublicIps: [
      {
        id: 'string'
      }
    ]
    networkProfile: {
      networkInterfaceConfigurations: [
        {
          properties: {
            ipConfigurations: [
              {
                name: 'string'
                properties: {
                  primary: bool
                }
              }
            ]
          }
          type: 'string'
        }
      ]
    }
    nvaSku: {
      bundledScaleUnit: 'string'
      marketPlaceVersion: 'string'
      vendor: 'string'
    }
    partnerManagedResource: {}
    sshPublicKey: 'string'
    virtualApplianceAsn: int
    virtualHub: {
      id: 'string'
    }
  }
}

屬性值

networkVirtualAppliances

名稱 描述
NAME 資源名稱 需要字串 ()
location 資源位置。 字串
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標籤
身分識別 具有 cloud-init 和 config blob 讀取許可權的服務主體。 ManagedServiceIdentity
properties 網路虛擬設備的屬性。 NetworkVirtualAppliancePropertiesFormat

ManagedServiceIdentity

名稱 描述
類型 用於資源的身分識別類型。 「SystemAssigned、UserAssigned」類型同時包含隱含建立的身分識別,和一組使用者指派的身分識別。 類型 『None』 將會從虛擬機中移除任何身分識別。 'None'
'SystemAssigned'
'SystemAssigned, UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

名稱 描述
{自定義屬性} Components1Jq1T4ISchemasManagedserviceidentityProper...

Components1Jq1T4ISchemasManagedserviceidentityProper...

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

NetworkVirtualAppliancePropertiesFormat

名稱 描述
additionalNics 其他網路介面所需的詳細數據。 VirtualApplianceAdditionalNicProperties[]
bootStrapConfigurationBlobs BootStrapConfigurationBlobs 記憶體 URL。 string[]
cloudInitConfiguration 純文本中的 CloudInitConfiguration 字串。 字串
cloudInitConfigurationBlobs CloudInitConfigurationBlob 記憶體 URL。 string[]
委派 虛擬設備的委派 DelegationProperties
internetIngressPublicIps 因特網輸入案例之公用IP的資源URI清單。 InternetIngressPublicIpsProperties[]
networkProfile 包含公用和私人 NIC 組態的網路配置檔。 NetworkVirtualAppliancePropertiesFormatNetworkProfil...
nvaSku 網路虛擬設備 SKU。 VirtualApplianceSkuProperties
partnerManagedResource 虛擬設備的委派 PartnerManagedResourceProperties
sshPublicKey SSH 登入的公鑰。 字串
virtualApplianceAsn VirtualAppliance ASN。 不支援 Microsoft 私人、公用和 IANA 保留的 ASN。 int

約束:
最小值 = 0
最大值 = 4294967295
virtualHub 正在部署網路虛擬設備的虛擬中樞。 SubResource

VirtualApplianceAdditionalNicProperties

名稱 描述
hasPublicIp 在額外的 nic 上針對公用 IP 意圖的旗標 (true 或 false) bool
NAME 其他 nic 的名稱 字串

DelegationProperties

名稱 描述
serviceName 委派 NVA 的服務名稱。 字串

InternetIngressPublicIpsProperties

名稱 描述
id 公用 Ip 的資源 URI 字串

NetworkVirtualAppliancePropertiesFormatNetworkProfil...

名稱 描述
networkInterfaceConfigurations VirtualApplianceNetworkInterfaceConfiguration[]

VirtualApplianceNetworkInterfaceConfiguration

名稱 描述
properties 表示單一 NIC 組態屬性。 VirtualApplianceNetworkInterfaceConfigurationPropert...
類型 NIC 類型。 這應該是 PublicNic 或 PrivateNic。 'PrivateNic'
'PublicNic'

VirtualApplianceNetworkInterfaceConfigurationPropert...

名稱 描述
ipConfigurations VirtualApplianceIPConfiguration[]

VirtualApplianceIPConfiguration

名稱 描述
NAME IP 組態的名稱。 字串
properties 表示單一IP組態屬性。 VirtualApplianceIPConfigurationProperties

VirtualApplianceIPConfigurationProperties

名稱 描述
primary 這是否為 NIC 的主要 IP 組態。 bool

VirtualApplianceSkuProperties

名稱 描述
bundledScaleUnit 虛擬設備縮放單位。 字串
marketPlaceVersion 虛擬設備版本。 字串
vendor 虛擬設備廠商。 字串

PartnerManagedResourceProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

SubResource

名稱 描述
id 資源識別碼。 字串

ARM 範本資源定義

networkVirtualAppliances 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.Network/networkVirtualAppliances 資源,請將下列 JSON 新增至您的範本。

{
  "type": "Microsoft.Network/networkVirtualAppliances",
  "apiVersion": "2023-11-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {}
    }
  },
  "properties": {
    "additionalNics": [
      {
        "hasPublicIp": "bool",
        "name": "string"
      }
    ],
    "bootStrapConfigurationBlobs": [ "string" ],
    "cloudInitConfiguration": "string",
    "cloudInitConfigurationBlobs": [ "string" ],
    "delegation": {
      "serviceName": "string"
    },
    "internetIngressPublicIps": [
      {
        "id": "string"
      }
    ],
    "networkProfile": {
      "networkInterfaceConfigurations": [
        {
          "properties": {
            "ipConfigurations": [
              {
                "name": "string",
                "properties": {
                  "primary": "bool"
                }
              }
            ]
          },
          "type": "string"
        }
      ]
    },
    "nvaSku": {
      "bundledScaleUnit": "string",
      "marketPlaceVersion": "string",
      "vendor": "string"
    },
    "partnerManagedResource": {},
    "sshPublicKey": "string",
    "virtualApplianceAsn": "int",
    "virtualHub": {
      "id": "string"
    }
  }
}

屬性值

networkVirtualAppliances

名稱 描述
類型 資源類型 'Microsoft.Network/networkVirtualAppliances'
apiVersion 資源 API 版本 '2023-11-01'
NAME 資源名稱 字串 (必要)
location 資源位置。 字串
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
身分識別 具有 cloud-init 和設定 Blob 讀取許可權的服務主體。 ManagedServiceIdentity
properties 網路虛擬設備的屬性。 NetworkVirtualAppliancePropertiesFormat

ManagedServiceIdentity

名稱 描述
類型 用於資源的身分識別類型。 「SystemAssigned、UserAssigned」類型同時包含隱含建立的身分識別,和一組使用者指派的身分識別。 類型 『None』 會從虛擬機中移除任何身分識別。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

名稱 描述
{自定義屬性} Components1Jq1T4ISchemasManagedserviceidentityProper...

Components1Jq1T4ISchemasManagedserviceidentityProper...

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

NetworkVirtualAppliancePropertiesFormat

名稱 描述
additionalNics 其他網路介面所需的詳細數據。 VirtualApplianceAdditionalNicProperties[]
bootStrapConfigurationBlobs BootStrapConfigurationBlobs 記憶體 URL。 string[]
cloudInitConfiguration 純文本的 CloudInitConfiguration 字串。 字串
cloudInitConfigurationBlobs CloudInitConfigurationBlob 記憶體 URL。 string[]
委派 虛擬設備的委派 DelegationProperties
internetIngressPublicIps 因特網輸入案例公用IP的資源URI清單。 InternetIngressPublicIpsProperties[]
networkProfile 包含公用和私人 NIC 組態的網路配置檔。 NetworkVirtualAppliancePropertiesFormatNetworkProfil...
nvaSku 網路虛擬設備 SKU。 VirtualApplianceSkuProperties
partnerManagedResource 虛擬設備的委派 PartnerManagedResourceProperties
sshPublicKey SSH 登入的公鑰。 字串
virtualApplianceAsn VirtualAppliance ASN。 不支援 Microsoft 私人、公用和 IANA 保留的 ASN。 int

約束:
最小值 = 0
最大值 = 4294967295
virtualHub 正在部署網路虛擬設備的虛擬中樞。 SubResource

VirtualApplianceAdditionalNicProperties

名稱 描述
hasPublicIp 在額外的 nic 上針對公用 IP 意圖的旗標 (true 或 false) bool
NAME 其他 nic 的名稱 字串

DelegationProperties

名稱 描述
serviceName 委派 NVA 的服務名稱。 字串

InternetIngressPublicIpsProperties

名稱 描述
id 公用 Ip 的資源 URI 字串

NetworkVirtualAppliancePropertiesFormatNetworkProfil...

名稱 描述
networkInterfaceConfigurations VirtualApplianceNetworkInterfaceConfiguration[]

VirtualApplianceNetworkInterfaceConfiguration

名稱 描述
properties 表示單一 NIC 組態屬性。 VirtualApplianceNetworkInterfaceConfigurationPropert...
類型 NIC 類型。 這應該是 PublicNic 或 PrivateNic。 'PrivateNic'
'PublicNic'

VirtualApplianceNetworkInterfaceConfigurationPropert...

名稱 描述
ipConfigurations VirtualApplianceIPConfiguration[]

VirtualApplianceIPConfiguration

名稱 描述
NAME IP 組態的名稱。 字串
properties 表示單一IP組態屬性。 VirtualApplianceIPConfigurationProperties

VirtualApplianceIPConfigurationProperties

名稱 描述
primary 這是否為 NIC 的主要 IP 組態。 bool

VirtualApplianceSkuProperties

名稱 描述
bundledScaleUnit 虛擬設備縮放單位。 字串
marketPlaceVersion 虛擬設備版本。 字串
vendor 虛擬設備廠商。 字串

PartnerManagedResourceProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

SubResource

名稱 描述
id 資源識別碼。 字串

Terraform (AzAPI 提供者) 資源定義

networkVirtualAppliances 資源類型可以使用目標作業來部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.Network/networkVirtualAppliances 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/networkVirtualAppliances@2023-11-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      additionalNics = [
        {
          hasPublicIp = bool
          name = "string"
        }
      ]
      bootStrapConfigurationBlobs = [
        "string"
      ]
      cloudInitConfiguration = "string"
      cloudInitConfigurationBlobs = [
        "string"
      ]
      delegation = {
        serviceName = "string"
      }
      internetIngressPublicIps = [
        {
          id = "string"
        }
      ]
      networkProfile = {
        networkInterfaceConfigurations = [
          {
            properties = {
              ipConfigurations = [
                {
                  name = "string"
                  properties = {
                    primary = bool
                  }
                }
              ]
            }
            type = "string"
          }
        ]
      }
      nvaSku = {
        bundledScaleUnit = "string"
        marketPlaceVersion = "string"
        vendor = "string"
      }
      partnerManagedResource = {}
      sshPublicKey = "string"
      virtualApplianceAsn = int
      virtualHub = {
        id = "string"
      }
    }
  })
}

屬性值

networkVirtualAppliances

名稱 描述
類型 資源類型 “Microsoft.Network/networkVirtualAppliances@2023-11-01”
NAME 資源名稱 需要字串 ()
location 資源位置。 字串
parent_id 若要部署至資源群組,請使用該資源群組的標識碼。 需要字串 ()
tags 資源標籤。 標記名稱和值的字典。
身分識別 具有 cloud-init 和 config blob 讀取許可權的服務主體。 ManagedServiceIdentity
properties 網路虛擬設備的屬性。 NetworkVirtualAppliancePropertiesFormat

ManagedServiceIdentity

名稱 描述
類型 用於資源的身分識別類型。 「SystemAssigned、UserAssigned」類型同時包含隱含建立的身分識別,和一組使用者指派的身分識別。 類型 『None』 將會從虛擬機中移除任何身分識別。 “SystemAssigned”
“SystemAssigned, UserAssigned”
“UserAssigned”
identity_ids 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 使用者身分識別標識碼的陣列。

ManagedServiceIdentityUserAssignedIdentities

名稱 描述
{自定義屬性} Components1Jq1T4ISchemasManagedserviceidentityProper...

Components1Jq1T4ISchemasManagedserviceidentityProper...

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

NetworkVirtualAppliancePropertiesFormat

名稱 描述
additionalNics 其他網路介面所需的詳細數據。 VirtualApplianceAdditionalNicProperties[]
bootStrapConfigurationBlobs BootStrapConfigurationBlobs 記憶體 URL。 string[]
cloudInitConfiguration 純文本中的 CloudInitConfiguration 字串。 字串
cloudInitConfigurationBlobs CloudInitConfigurationBlob 記憶體 URL。 string[]
委派 虛擬設備的委派 DelegationProperties
internetIngressPublicIps 因特網輸入案例之公用IP的資源URI清單。 InternetIngressPublicIpsProperties[]
networkProfile 包含公用和私人 NIC 組態的網路配置檔。 NetworkVirtualAppliancePropertiesFormatNetworkProfil...
nvaSku 網路虛擬設備 SKU。 VirtualApplianceSkuProperties
partnerManagedResource 虛擬設備的委派 PartnerManagedResourceProperties
sshPublicKey SSH 登入的公鑰。 字串
virtualApplianceAsn VirtualAppliance ASN。 不支援 Microsoft 私人、公用和 IANA 保留的 ASN。 int

約束:
最小值 = 0
最大值 = 4294967295
virtualHub 部署網路虛擬設備的虛擬中樞。 SubResource

VirtualApplianceAdditionalNicProperties

名稱 描述
hasPublicIp 在額外的 nic 上針對公用 IP 意圖的旗標 (true 或 false) bool
NAME 其他 nic 的名稱 字串

DelegationProperties

名稱 描述
serviceName 委派 NVA 的服務名稱。 字串

InternetIngressPublicIpsProperties

名稱 描述
id 公用 Ip 的資源 URI 字串

NetworkVirtualAppliancePropertiesFormatNetworkProfil...

名稱 描述
networkInterfaceConfigurations VirtualApplianceNetworkInterfaceConfiguration[]

VirtualApplianceNetworkInterfaceConfiguration

名稱 描述
properties 表示單一 NIC 組態屬性。 VirtualApplianceNetworkInterfaceConfigurationPropert...
類型 NIC 類型。 這應該是 PublicNic 或 PrivateNic。 “PrivateNic”
“PublicNic”

VirtualApplianceNetworkInterfaceConfigurationPropert...

名稱 描述
ipConfigurations VirtualApplianceIPConfiguration[]

VirtualApplianceIPConfiguration

名稱 描述
NAME IP 組態的名稱。 字串
properties 表示單一IP組態屬性。 VirtualApplianceIPConfigurationProperties

VirtualApplianceIPConfigurationProperties

名稱 描述
primary 這是否為 NIC 的主要 IP 組態。 bool

VirtualApplianceSkuProperties

名稱 描述
bundledScaleUnit 虛擬設備縮放單位。 字串
marketPlaceVersion 虛擬設備版本。 字串
vendor 虛擬設備廠商。 字串

PartnerManagedResourceProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

SubResource

名稱 描述
id 資源識別碼。 字串