Microsoft.Network ExpressRoutePorts

Bicep 資源定義

ExpressRoutePorts 資源類型可以使用以下列目標作業部署:

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

資源格式

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

resource symbolicname 'Microsoft.Network/ExpressRoutePorts@2023-04-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  identity: {
    type: 'string'
    userAssignedIdentities: {}
  }
  properties: {
    bandwidthInGbps: int
    billingType: 'string'
    encapsulation: 'string'
    links: [
      {
        id: 'string'
        name: 'string'
        properties: {
          adminState: 'string'
          macSecConfig: {
            cakSecretIdentifier: 'string'
            cipher: 'string'
            cknSecretIdentifier: 'string'
            sciState: 'string'
          }
        }
      }
    ]
    peeringLocation: 'string'
  }
}

屬性值

ExpressRoutePorts

名稱 描述
NAME 資源名稱 需要字串 ()
location 資源位置。 string
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標籤
身分識別 如果已設定,則為 ExpressRoutePort 的身分識別。 ManagedServiceIdentity
properties ExpressRoutePort 屬性。 ExpressRoutePortPropertiesFormat

ManagedServiceIdentity

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

ExpressRoutePortPropertiesFormat

名稱 描述
bandwidthIn Gbps 以 Gbps 為單位的採購埠頻寬。 int
billingType ExpressRoutePort 資源的計費類型。 'MeteredData'
'UnlimitedData'
Encapsulation - 封裝 在實體埠上封裝方法。 'Dot1Q'
'QinQ'
連結 ExpressRoutePort 資源的實體連結集。 ExpressRouteLink[]
peeringLocation ExpressRoutePort 實際對應至的對等互連位置名稱。 string
名稱 描述
id 資源識別碼。 字串
NAME 父系子埠資源之間唯一的子埠資源名稱。 string
properties ExpressRouteLink 屬性。 ExpressRouteLinkPropertiesFormat

ExpressRouteLinkPropertiesFormat

名稱 描述
adminState 實體埠的系統管理狀態。 'Disabled'
'Enabled'
macSecConfig MacSec 組態。 ExpressRouteLinkMacSecConfig

ExpressRouteLinkMacSecConfig

名稱 描述
cakSecretIdentifier 包含 Mac 安全性 CAK 金鑰的 Keyvault 秘密識別碼 URL。 string
cipher Mac 安全性加密。 'GcmAes128'
'GcmAes256'
'GcmAesXpn128'
'GcmAesXpn256'
cknSecretIdentifier 包含 Mac 安全性 CKN 金鑰的 Keyvault 秘密識別碼 URL。 string
sciState 已啟用/停用 Sci 模式。 'Disabled'
'Enabled'

ARM 範本資源定義

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

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

資源格式

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

{
  "type": "Microsoft.Network/ExpressRoutePorts",
  "apiVersion": "2023-04-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "identity": {
    "type": "string",
    "userAssignedIdentities": {}
  },
  "properties": {
    "bandwidthInGbps": "int",
    "billingType": "string",
    "encapsulation": "string",
    "links": [
      {
        "id": "string",
        "name": "string",
        "properties": {
          "adminState": "string",
          "macSecConfig": {
            "cakSecretIdentifier": "string",
            "cipher": "string",
            "cknSecretIdentifier": "string",
            "sciState": "string"
          }
        }
      }
    ],
    "peeringLocation": "string"
  }
}

屬性值

ExpressRoutePorts

名稱 描述
類型 資源類型 'Microsoft.Network/ExpressRoutePorts'
apiVersion 資源 API 版本 '2023-04-01'
NAME 資源名稱 字串 (必要)
location 資源位置。 string
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
身分識別 如果已設定,ExpressRoutePort 的身分識別。 ManagedServiceIdentity
properties ExpressRoutePort 屬性。 ExpressRoutePortPropertiesFormat

ManagedServiceIdentity

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

ExpressRoutePortPropertiesFormat

名稱 描述
bandwidthIn Gbps Gbps 中採購的埠頻寬。 int
billingType ExpressRoutePort 資源的計費類型。 'MeteredData'
'UnlimitedData'
Encapsulation - 封裝 實體埠上的封裝方法。 'Dot1Q'
'QinQ'
連結 ExpressRoutePort 資源的一組實體連結。 ExpressRouteLink[]
peeringLocation ExpressRoutePort 實際對應至的對等互連位置名稱。 string
名稱 描述
id 資源識別碼。 字串
NAME 父系子埠資源之間唯一的子埠資源名稱。 string
properties ExpressRouteLink 屬性。 ExpressRouteLinkPropertiesFormat

ExpressRouteLinkPropertiesFormat

名稱 描述
adminState 實體埠的系統管理狀態。 'Disabled'
'Enabled'
macSecConfig MacSec 設定。 ExpressRouteLinkMacSecConfig

ExpressRouteLinkMacSecConfig

名稱 描述
cakSecretIdentifier 包含 Mac 安全性 CAK 金鑰的 Keyvault 秘密識別碼 URL。 string
cipher Mac 安全性加密。 'GcmAes128'
'GcmAes256'
'GcmAesXpn128'
'GcmAesXpn256'
cknSecretIdentifier 包含 Mac 安全性 CKN 金鑰的 Keyvault 秘密識別碼 URL。 string
sciState 啟用/停用 Sci 模式。 'Disabled'
'Enabled'

Terraform (AzAPI 提供者) 資源定義

ExpressRoutePorts 資源類型可以使用以下列目標作業部署:

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/ExpressRoutePorts@2023-04-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      bandwidthInGbps = int
      billingType = "string"
      encapsulation = "string"
      links = [
        {
          id = "string"
          name = "string"
          properties = {
            adminState = "string"
            macSecConfig = {
              cakSecretIdentifier = "string"
              cipher = "string"
              cknSecretIdentifier = "string"
              sciState = "string"
            }
          }
        }
      ]
      peeringLocation = "string"
    }
  })
}

屬性值

ExpressRoutePorts

名稱 描述
類型 資源類型 「Microsoft.Network/ExpressRoutePorts@2023-04-01」
NAME 資源名稱 需要字串 ()
location 資源位置。 string
parent_id 若要部署至資源群組,請使用該資源群組的識別碼。 需要字串 ()
tags 資源標籤。 標記名稱和值的字典。
身分識別 如果已設定,則為 ExpressRoutePort 的身分識別。 ManagedServiceIdentity
properties ExpressRoutePort 屬性。 ExpressRoutePortPropertiesFormat

ManagedServiceIdentity

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

ExpressRoutePortPropertiesFormat

名稱 描述
bandwidthIn Gbps 以 Gbps 為單位的採購埠頻寬。 int
billingType ExpressRoutePort 資源的計費類型。 「MeteredData」
「UnlimitedData」
Encapsulation - 封裝 在實體埠上封裝方法。 「Dot1Q」
「QinQ」
連結 ExpressRoutePort 資源的一組實體連結。 ExpressRouteLink[]
peeringLocation ExpressRoutePort 實際對應至的對等互連位置名稱。 string
名稱 描述
id 資源識別碼。 字串
NAME 父系子埠資源之間唯一的子埠資源名稱。 string
properties ExpressRouteLink 屬性。 ExpressRouteLinkPropertiesFormat

ExpressRouteLinkPropertiesFormat

名稱 描述
adminState 實體埠的系統管理狀態。 「Disabled」
「Enabled」
macSecConfig MacSec 組態。 ExpressRouteLinkMacSecConfig

ExpressRouteLinkMacSecConfig

名稱 描述
cakSecretIdentifier 包含 Mac 安全性 CAK 金鑰的 Keyvault 秘密識別碼 URL。 string
cipher Mac 安全性加密。 「GcmAes128」
「GcmAes256」
「GcmAesXpn128」
「GcmAesXpn256」
cknSecretIdentifier 包含 Mac 安全性 CKN 金鑰的 Keyvault 秘密識別碼 URL。 string
sciState 已啟用/停用 Sci 模式。 「Disabled」
「Enabled」