Microsoft。CognitiveServices 帳號/管理網路/出站規則 2026-09-01

Bicep 資源定義

accounts/managedNetworks/outboundRules 資源類型可以使用以下目標作業進行部署:

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

資源格式

創造一個 Microsoft。CognitiveServices/accounts/managedNetworks/outboundRules 資源,請將以下 Bicep 加入你的範本。

resource symbolicname 'Microsoft.CognitiveServices/accounts/managedNetworks/outboundRules@2026-09-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    category: 'string'
    status: 'string'
    type: 'string'
    // For remaining properties, see OutboundRule objects
  }
}

OutboundRule 物件

設置 type 屬性以指定物件的類型。

針對 FQDN,請使用:

{
  destination: 'string'
  type: 'FQDN'
}

針對 PrivateEndpoint,請使用:

{
  destination: {
    serviceResourceId: 'string'
    subresourceTarget: 'string'
  }
  fqdns: [
    'string'
  ]
  type: 'PrivateEndpoint'
}

針對 ServiceTag,請使用:

{
  destination: {
    action: 'string'
    addressPrefixes: [
      'string'
    ]
    portRanges: 'string'
    protocol: 'string'
    serviceTag: 'string'
  }
  type: 'ServiceTag'
}

屬性值

Microsoft。CognitiveServices/accounts/managedNetworks/outboundRules

Name Description 價值
name 資源名稱 string

約束:
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ (必要)
父代 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源。
類型資源的符號名稱: accounts/managedNetworks
屬性 認知服務帳戶受控網路的輸出規則。 OutboundRule (必要)

FqdnOutboundRule

Name Description 價值
目的地 字串
型別 認知服務帳戶的受控網路輸出規則類型。 'FQDN' (必要)

OutboundRule

Name Description 價值
分類 認知服務帳戶的受控網路輸出規則類別。 “依賴”
'Recommended'
'Required'
'使用者定義'
狀態 認知服務帳戶的受控網路輸出規則類型。 “活躍”
'刪除'
“失敗”
'Inactive'
“正在配置”
型別 將 類型設定為 'FQDN',FqdnOutboundRule。 針對 type PrivateEndpointOutboundRule,設定為 'PrivateEndpoint'。 針對 serviceTagOutboundRule 類型 設定為 'ServiceTag',。 'FQDN'
“PrivateEndpoint”
'ServiceTag' (必要)

PrivateEndpointOutboundRule

Name Description 價值
目的地 私人終端目的地。 PrivateEndpointOutboundRuleDestination
FQDN (FQDN) 與私有端點出站規則相關的 FQDN 列表。 string[]
型別 認知服務帳戶的受控網路輸出規則類型。 'PrivateEndpoint' (必要)

PrivateEndpointOutboundRuleDestination

Name Description 價值
serviceResourceId 服務 目標私有端點服務的 Azure 資源 ID。 字串
subresourceTarget 目標服務的子資源,要連接。 字串

ServiceTagOutboundRule 服務

Name Description 價值
目的地 服務標籤目的地。 ServiceTag OutboundRuleDestination
型別 認知服務帳戶的受控網路輸出規則類型。 'ServiceTag' (必要)

ServiceTag OutboundRuleDestination

Name Description 價值
動作 服務標籤出站規則的動作。 '允許'
'Deny'
address前綴 可選的地址前綴。 如果提供服務,serviceTag 屬性將被忽略。 string[]
portRanges 埠 目的地埠範圍。 字串
通訊協定 服務標籤規則所使用的網路協定。 字串
serviceTag 服務 目標的 Azure 服務標籤名稱。 字串

ARM 樣本資源定義

accounts/managedNetworks/outboundRules 資源類型可以使用以下目標作業進行部署:

使用範例

資源格式

創造一個 Microsoft。CognitiveServices/accounts/managedNetworks/outboundRules 資源,將以下 JSON 加入你的範本。

{
  "type": "Microsoft.CognitiveServices/accounts/managedNetworks/outboundRules",
  "apiVersion": "2026-09-01",
  "name": "string",
  "properties": {
    "category": "string",
    "status": "string",
    "type": "string"
    // For remaining properties, see OutboundRule objects
  }
}

OutboundRule 物件

設置 type 屬性以指定物件的類型。

針對 FQDN,請使用:

{
  "destination": "string",
  "type": "FQDN"
}

針對 PrivateEndpoint,請使用:

{
  "destination": {
    "serviceResourceId": "string",
    "subresourceTarget": "string"
  },
  "fqdns": [ "string" ],
  "type": "PrivateEndpoint"
}

針對 ServiceTag,請使用:

{
  "destination": {
    "action": "string",
    "addressPrefixes": [ "string" ],
    "portRanges": "string",
    "protocol": "string",
    "serviceTag": "string"
  },
  "type": "ServiceTag"
}

屬性值

Microsoft。CognitiveServices/accounts/managedNetworks/outboundRules

Name Description 價值
apiVersion API 版本 '2026-09-01'
name 資源名稱 string

約束:
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ (必要)
屬性 認知服務帳戶受控網路的輸出規則。 OutboundRule (必要)
型別 資源類型 「Microsoft。CognitiveServices/accounts/managedNetworks/outboundRules'

FqdnOutboundRule

Name Description 價值
目的地 字串
型別 認知服務帳戶的受控網路輸出規則類型。 'FQDN' (必要)

OutboundRule

Name Description 價值
分類 認知服務帳戶的受控網路輸出規則類別。 “依賴”
'Recommended'
'Required'
'使用者定義'
狀態 認知服務帳戶的受控網路輸出規則類型。 “活躍”
'刪除'
“失敗”
'Inactive'
“正在配置”
型別 將 類型設定為 'FQDN',FqdnOutboundRule。 針對 type PrivateEndpointOutboundRule,設定為 'PrivateEndpoint'。 針對 serviceTagOutboundRule 類型 設定為 'ServiceTag',。 'FQDN'
“PrivateEndpoint”
'ServiceTag' (必要)

PrivateEndpointOutboundRule

Name Description 價值
目的地 私人終端目的地。 PrivateEndpointOutboundRuleDestination
FQDN (FQDN) 與私有端點出站規則相關的 FQDN 列表。 string[]
型別 認知服務帳戶的受控網路輸出規則類型。 'PrivateEndpoint' (必要)

PrivateEndpointOutboundRuleDestination

Name Description 價值
serviceResourceId 服務 目標私有端點服務的 Azure 資源 ID。 字串
subresourceTarget 目標服務的子資源,要連接。 字串

ServiceTagOutboundRule 服務

Name Description 價值
目的地 服務標籤目的地。 ServiceTag OutboundRuleDestination
型別 認知服務帳戶的受控網路輸出規則類型。 'ServiceTag' (必要)

ServiceTag OutboundRuleDestination

Name Description 價值
動作 服務標籤出站規則的動作。 '允許'
'Deny'
address前綴 可選的地址前綴。 如果提供服務,serviceTag 屬性將被忽略。 string[]
portRanges 埠 目的地埠範圍。 字串
通訊協定 服務標籤規則所使用的網路協定。 字串
serviceTag 服務 目標的 Azure 服務標籤名稱。 字串

Terraform (AzAPI 提供者) 資源定義

accounts/managedNetworks/outboundRules 資源類型可以使用以下目標作業進行部署:

  • 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。

資源格式

創造一個 Microsoft。CognitiveServices/accounts/managedNetworks/outboundRules 資源,請將以下 Terraform 加入你的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.CognitiveServices/accounts/managedNetworks/outboundRules@2026-09-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      category = "string"
      status = "string"
      type = "string"
      // For remaining properties, see OutboundRule objects
    }
  }
}

OutboundRule 物件

設置 type 屬性以指定物件的類型。

針對 FQDN,請使用:

{
  destination = "string"
  type = "FQDN"
}

針對 PrivateEndpoint,請使用:

{
  destination = {
    serviceResourceId = "string"
    subresourceTarget = "string"
  }
  fqdns = [
    "string"
  ]
  type = "PrivateEndpoint"
}

針對 ServiceTag,請使用:

{
  destination = {
    action = "string"
    addressPrefixes = [
      "string"
    ]
    portRanges = "string"
    protocol = "string"
    serviceTag = "string"
  }
  type = "ServiceTag"
}

屬性值

Microsoft。CognitiveServices/accounts/managedNetworks/outboundRules

Name Description 價值
name 資源名稱 string

約束:
模式 = ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ (必要)
parent_id 此資源為父系之資源的標識碼。 類型為資源的識別碼: accounts/managedNetworks
屬性 認知服務帳戶受控網路的輸出規則。 OutboundRule (必要)
型別 資源類型 「Microsoft。認知服務/帳號/管理網路/outboundRules@2026-09-01」

FqdnOutboundRule

Name Description 價值
目的地 字串
型別 認知服務帳戶的受控網路輸出規則類型。 'FQDN' (必要)

OutboundRule

Name Description 價值
分類 認知服務帳戶的受控網路輸出規則類別。 “依賴”
'Recommended'
'Required'
'使用者定義'
狀態 認知服務帳戶的受控網路輸出規則類型。 “活躍”
'刪除'
“失敗”
'Inactive'
“正在配置”
型別 將 類型設定為 'FQDN',FqdnOutboundRule。 針對 type PrivateEndpointOutboundRule,設定為 'PrivateEndpoint'。 針對 serviceTagOutboundRule 類型 設定為 'ServiceTag',。 'FQDN'
“PrivateEndpoint”
'ServiceTag' (必要)

PrivateEndpointOutboundRule

Name Description 價值
目的地 私人終端目的地。 PrivateEndpointOutboundRuleDestination
FQDN (FQDN) 與私有端點出站規則相關的 FQDN 列表。 string[]
型別 認知服務帳戶的受控網路輸出規則類型。 'PrivateEndpoint' (必要)

PrivateEndpointOutboundRuleDestination

Name Description 價值
serviceResourceId 服務 目標私有端點服務的 Azure 資源 ID。 字串
subresourceTarget 目標服務的子資源,要連接。 字串

ServiceTagOutboundRule 服務

Name Description 價值
目的地 服務標籤目的地。 ServiceTag OutboundRuleDestination
型別 認知服務帳戶的受控網路輸出規則類型。 'ServiceTag' (必要)

ServiceTag OutboundRuleDestination

Name Description 價值
動作 服務標籤出站規則的動作。 '允許'
'Deny'
address前綴 可選的地址前綴。 如果提供服務,serviceTag 屬性將被忽略。 string[]
portRanges 埠 目的地埠範圍。 字串
通訊協定 服務標籤規則所使用的網路協定。 字串
serviceTag 服務 目標的 Azure 服務標籤名稱。 字串