Microsoft.EventHub 命名空間 2024-05-01-preview

Bicep 資源定義

命名空間資源類型可以使用目標作業來部署:

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

使用範例

Bicep 範例

部署 EventHub 命名空間的基本範例。

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource namespace 'Microsoft.EventHub/namespaces@2022-01-01-preview' = {
  name: resourceName
  location: location
  sku: {
    capacity: 1
    name: 'Standard'
    tier: 'Standard'
  }
  properties: {
    disableLocalAuth: false
    isAutoInflateEnabled: false
    publicNetworkAccess: 'Enabled'
    zoneRedundant: false
  }
}

Azure 已驗證的模組

下列 Azure 驗證模組 可用來部署此資源類型。

Module Description
事件中樞命名空間 事件中樞命名空間的AVM資源模組

Azure 快速入門範例

下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。

Bicep 檔案 Description
Azure Digital Twins 與時間數據歷程記錄連線 此範本會建立以時間序列數據歷程記錄連線設定的 Azure Digital Twins 實例。 若要建立連線,必須建立其他資源,例如事件中樞命名空間、事件中樞、Azure 數據總管叢集和資料庫。 數據會傳送至事件中樞,該中樞最終會將數據轉送至 Azure 數據總管叢集。 數據會儲存在叢集中的資料庫數據表中
使用事件中樞和受控識別 Azure 函式應用程式 他的範本會在Linux取用方案上布建 Azure 函式應用程式,以及事件中樞、Azure 記憶體和 Application Insights。 函式應用程式可以使用受控識別來連線到事件中樞和記憶體帳戶
建立事件中樞 此範本可讓您使用事件中樞來部署 EventHubs 命名空間。
建立 EventHubs 命名空間、事件中樞、& 取用者群組 此範本可讓您部署事件中樞標準命名空間、事件中樞和取用者群組。
在叢集 中建立事件中樞叢集 & 名稱 此範本可讓您在叢集中建立 EventHubs 叢集和命名空間
建立 Eventhub 叢集、nameapce & eventhub 此範本可讓您在叢集中建立 EventHubs 叢集、命名空間和 eventhub
使用事件方格連線部署 Azure 數據總管資料庫 使用事件方格聯機部署 Azure 數據總管資料庫。
使用事件中樞連線部署 Azure 數據總管資料庫 使用事件中樞連線部署 Azure 數據總管資料庫。
在 Azure 架構上部署體育分析 建立已啟用 ADLS Gen 2 的 Azure 記憶體帳戶、具有記憶體帳戶連結服務的 Azure Data Factory 實例(如果已部署的 Azure SQL Database),以及 Azure Databricks 實例。 部署範本和 ADF 實例受控識別的使用者 AAD 身分識別,將會在記憶體帳戶上授與記憶體 Blob 數據參與者角色。 還有一個選項可用來部署 Azure Key Vault 實例、Azure SQL Database 和 Azure 事件中樞(適用於串流使用案例)。 部署 Azure Key Vault 時,部署範本之使用者的 Data Factory 受控識別和 AAD 身分識別將會獲得 金鑰保存庫 秘密使用者角色。
使用 WAF、網域和記錄將 FrontDoor CDN 至 EventHub 此範本會建立新的 Azure FrontDoor cdn 配置檔。 使用自定義和受控規則、cdn 路由、來源和群組建立 WAF 與 WAF 和路由的關聯、設定自定義網路變數、建立事件中樞和診斷設定,以使用事件中樞傳送 CDN 存取記錄。
Moesif API分析和獲利 此範本會將來自 Azure API 管理的 API 呼叫記錄至 Moesif API 分析和獲利平臺

資源格式

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

resource symbolicname 'Microsoft.EventHub/namespaces@2024-05-01-preview' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    alternateName: 'string'
    clusterArmId: 'string'
    disableLocalAuth: bool
    encryption: {
      keySource: 'Microsoft.KeyVault'
      keyVaultProperties: [
        {
          identity: {
            userAssignedIdentity: 'string'
          }
          keyName: 'string'
          keyVaultUri: 'string'
          keyVersion: 'string'
        }
      ]
      requireInfrastructureEncryption: bool
    }
    geoDataReplication: {
      locations: [
        {
          clusterArmId: 'string'
          locationName: 'string'
          roleType: 'string'
        }
      ]
      maxReplicationLagDurationInSeconds: int
    }
    isAutoInflateEnabled: bool
    kafkaEnabled: bool
    maximumThroughputUnits: int
    minimumTlsVersion: 'string'
    privateEndpointConnections: [
      {
        properties: {
          privateEndpoint: {
            id: 'string'
          }
          privateLinkServiceConnectionState: {
            description: 'string'
            status: 'string'
          }
          provisioningState: 'string'
        }
      }
    ]
    publicNetworkAccess: 'string'
    zoneRedundant: bool
  }
  sku: {
    capacity: int
    name: 'string'
    tier: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.EventHub/namespaces

Name Description Value
身分識別 BYOK 身分識別描述的屬性 Identity
位置 資源位置。 字串
name 資源名稱 string

Constraints:
最小長度 = 6
最大長度 = 50
模式 = ^[a-zA-Z][a-zA-Z0-9-]{6,50}[a-zA-Z0-9]$ (必要)
properties 為建立命名空間作業提供的命名空間屬性。 EHNamespaceProperties
sku SKU 資源的屬性 Sku
tags 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

ConnectionState

Name Description Value
description 連接狀態的描述。 字串
狀態 線上的狀態。 'Approved'
'Disconnected'
'Pending'
'Rejected'

EHNamespaceProperties

Name Description Value
alternateName 別名和命名空間名稱相同時指定的替代名稱。 字串
clusterArmId 命名空間的叢集 ARM 識別碼。 字串
disableLocalAuth 此屬性會停用事件中樞命名空間的 SAS 驗證。 bool
加密 BYOK 加密描述的屬性 Encryption
geoDataReplication 命名空間的異地數據復寫設定 GeoDataReplicationProperties
isAutoInflateEnabled 值,指出是否為 eventhub 命名空間啟用 AutoInflate。 bool
kafkaEnabled 值,指出是否為 eventhub 命名空間啟用 Kafka。 bool
maximumThroughputUnits 啟用 AutoInflate 時輸送量單位的上限,值應該在 0 到 20 個輸送量單位內。 (如果 AutoInflateEnabled = true, '0' int

Constraints:
最小值 = 0
minimumTlsVersion 叢集支援的最低 TLS 版本,例如 '1.2' '1.0'
'1.1'
'1.2'
privateEndpointConnections 私人端點連線的清單。 PrivateEndpointConnection[]
publicNetworkAccess 這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 'Disabled'
'Enabled'
'SecuredByPerimeter'
zoneRedundant 啟用此屬性會在支援的可用性區域中建立標準事件中樞命名空間。 bool

Encryption

Name Description Value
keySource 列舉 Encryption 的 keySource 可能值 'Microsoft.KeyVault'
keyVaultProperties KeyVault 的屬性 KeyVaultProperties[]
requireInfrastructureEncryption 開啟基礎結構加密 (雙重加密) bool

GeoDataReplicationProperties

Name Description Value
locations 維護命名空間複本的區域清單。 NamespaceReplicaLocation[]
maxReplicationLagDurationInSeconds 數據復寫作業從主要複本到次要複本仲裁的最大可接受延遲。 當延遲超過設定的數量時,主要複本上的作業將會失敗。 允許的值是 0 和 5 分鐘到 1 天。 int

Identity

Name Description Value
型別 受控服務識別的類型。 'None'
'SystemAssigned'
'SystemAssigned, UserAssigned'
'UserAssigned'
userAssignedIdentities 使用者指派身分識別的屬性 IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

Name Description Value

KeyVaultProperties

Name Description Value
身分識別 UserAssignedIdentityProperties
keyName KeyVault 中的金鑰名稱 字串
keyVaultUri KeyVault 的 URI 字串
keyVersion 金鑰版本 字串

NamespaceReplicaLocation

Name Description Value
clusterArmId 選擇性屬性,表示叢集的 ARM 識別碼。 如果命名空間複本應該放在專用事件中樞叢集中,則這是必要專案 字串
locationName 維護命名空間複本的 Azure 區域 字串
roleType GeoDR 角色類型 'Primary'
'Secondary'

PrivateEndpoint

Name Description Value
id 私人端點的ARM標識碼。 字串

PrivateEndpointConnection

Name Description Value
properties PrivateEndpointConnection 的屬性。 PrivateEndpointConnectionProperties

PrivateEndpointConnectionProperties

Name Description Value
privateEndpoint 此連線的私人端點資源。 PrivateEndpoint
privateLinkServiceConnectionState 線上狀態的詳細數據。 ConnectionState
provisioningState 私人端點聯機的布建狀態。 'Canceled'
'Creating'
'Deleting'
'Failed'
'Succeeded'
'Updating'

Sku

Name Description Value
容量 基本層或標準層的事件中樞輸送量單位,其中值應為 0 到 20 個輸送量單位。 進階層的事件中樞進階單位,其中值應為 0 到 10 個進階單位。 int

Constraints:
最小值 = 0
name 此 SKU 的名稱。 'Basic'
'Premium'
'Standard' (必要)
分層 這個特定 SKU 的計費層。 'Basic'
'Premium'
'Standard'

TrackedResourceTags

Name Description Value

UserAssignedIdentity

Name Description Value

UserAssignedIdentityProperties

Name Description Value
userAssignedIdentity 為加密選取的使用者身分識別的 ARM 識別碼 字串

ARM 樣本資源定義

命名空間資源類型可以使用目標作業來部署:

使用範例

Azure 快速入門範本

下列 Azure 快速入門範本 部署此資源類型。

Template Description
Azure Digital Twins 與時間數據歷程記錄連線

部署至 Azure
此範本會建立以時間序列數據歷程記錄連線設定的 Azure Digital Twins 實例。 若要建立連線,必須建立其他資源,例如事件中樞命名空間、事件中樞、Azure 數據總管叢集和資料庫。 數據會傳送至事件中樞,該中樞最終會將數據轉送至 Azure 數據總管叢集。 數據會儲存在叢集中的資料庫數據表中
使用事件中樞和受控識別 Azure 函式應用程式

部署至 Azure
他的範本會在Linux取用方案上布建 Azure 函式應用程式,以及事件中樞、Azure 記憶體和 Application Insights。 函式應用程式可以使用受控識別來連線到事件中樞和記憶體帳戶
使用寫入事件中樞的稽核 Azure SQL Server

部署至 Azure
此範本可讓您部署已啟用稽核的 Azure SQL 伺服器,以將稽核記錄寫入事件中樞
透過私人端點連線到事件中樞命名空間

部署至 Azure
此範例示範如何使用設定虛擬網路和私人 DNS 區域,透過私人端點存取事件中樞命名空間。
建立事件中樞命名空間虛擬網路規則

部署至 Azure
此範本可讓您使用虛擬網路規則部署事件中樞標準命名空間
建立 Eventhub 命名空間和異地復原設定

部署至 Azure
此範本可讓您使用基本/標準 SKU 來部署服務總線命名空間。
建立 Eventhub 命名空間 IP 篩選規則

部署至 Azure
此範本可讓您使用IP篩選規則來部署服務總線進階命名空間
使用事件中樞事件來源建立環境

部署至 Azure
此範本可讓您部署已設定為取用事件中樞事件的時間序列深入解析環境。
建立事件中樞

部署至 Azure
此範本可讓您使用事件中樞來部署 EventHubs 命名空間。
建立 EventHubs 命名空間,並啟用自動擴充

部署至 Azure
此範本可讓您部署事件中樞標準命名空間、事件中樞和取用者群組。此範本也會開啟命名空間上的自動擴充功能。
建立 EventHubs 命名空間、事件中樞、& 取用者群組

部署至 Azure
此範本可讓您部署事件中樞標準命名空間、事件中樞和取用者群組。
建立事件方格自定義主題和事件中樞處理程式

部署至 Azure
建立 Azure 事件方格自定義主題和事件中樞來處理事件。
建立 EventHubs authorizationRules

部署至 Azure
此範本可讓您部署 EventHubs Standard 命名空間、事件中樞、取用者群組和 authorizationRules
建立已啟用擷取的 EventHubs

部署至 Azure
此範本可讓您使用事件中樞來部署 EventHubs 命名空間,並在其中啟用擷取
建立已啟用擷取的 EventHubs

部署至 Azure
此範本可讓您使用事件中樞來部署 EventHubs 命名空間,並在其中啟用擷取
建立已設定傳送記錄和計量的 SQL MI

部署至 Azure
此範本可讓您部署用於儲存記錄和計量的 SQL MI 和其他資源(診斷工作區、記憶體帳戶、事件中樞)。
在叢集 中建立事件中樞叢集 & 名稱

部署至 Azure
此範本可讓您在叢集中建立 EventHubs 叢集和命名空間
建立 Eventhub 叢集、nameapce & eventhub

部署至 Azure
此範本可讓您在叢集中建立 EventHubs 叢集、命名空間和 eventhub
使用事件方格連線部署 Azure 數據總管資料庫

部署至 Azure
使用事件方格聯機部署 Azure 數據總管資料庫。
使用事件中樞連線部署 Azure 數據總管資料庫

部署至 Azure
使用事件中樞連線部署 Azure 數據總管資料庫。
在 Azure 架構上部署體育分析

部署至 Azure
建立已啟用 ADLS Gen 2 的 Azure 記憶體帳戶、具有記憶體帳戶連結服務的 Azure Data Factory 實例(如果已部署的 Azure SQL Database),以及 Azure Databricks 實例。 部署範本和 ADF 實例受控識別的使用者 AAD 身分識別,將會在記憶體帳戶上授與記憶體 Blob 數據參與者角色。 還有一個選項可用來部署 Azure Key Vault 實例、Azure SQL Database 和 Azure 事件中樞(適用於串流使用案例)。 部署 Azure Key Vault 時,部署範本之使用者的 Data Factory 受控識別和 AAD 身分識別將會獲得 金鑰保存庫 秘密使用者角色。
使用 WAF、網域和記錄將 FrontDoor CDN 至 EventHub

部署至 Azure
此範本會建立新的 Azure FrontDoor cdn 配置檔。 使用自定義和受控規則、cdn 路由、來源和群組建立 WAF 與 WAF 和路由的關聯、設定自定義網路變數、建立事件中樞和診斷設定,以使用事件中樞傳送 CDN 存取記錄。
Moesif API分析和獲利

部署至 Azure
此範本會將來自 Azure API 管理的 API 呼叫記錄至 Moesif API 分析和獲利平臺
適用於 Azure 事件中樞的 PubNub 即時閘道

部署至 Azure
適用於 Azure 的 PubNub 即時閘道提供 PubNub 資料流網路與 Azure 事件中樞之間的即時數據流網橋。 -- 將其視為 PubNub 與 Azure 之間的雙向網橋!

資源格式

若要建立 Microsoft.EventHub/namespaces 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.EventHub/namespaces",
  "apiVersion": "2024-05-01-preview",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "alternateName": "string",
    "clusterArmId": "string",
    "disableLocalAuth": "bool",
    "encryption": {
      "keySource": "Microsoft.KeyVault",
      "keyVaultProperties": [
        {
          "identity": {
            "userAssignedIdentity": "string"
          },
          "keyName": "string",
          "keyVaultUri": "string",
          "keyVersion": "string"
        }
      ],
      "requireInfrastructureEncryption": "bool"
    },
    "geoDataReplication": {
      "locations": [
        {
          "clusterArmId": "string",
          "locationName": "string",
          "roleType": "string"
        }
      ],
      "maxReplicationLagDurationInSeconds": "int"
    },
    "isAutoInflateEnabled": "bool",
    "kafkaEnabled": "bool",
    "maximumThroughputUnits": "int",
    "minimumTlsVersion": "string",
    "privateEndpointConnections": [
      {
        "properties": {
          "privateEndpoint": {
            "id": "string"
          },
          "privateLinkServiceConnectionState": {
            "description": "string",
            "status": "string"
          },
          "provisioningState": "string"
        }
      }
    ],
    "publicNetworkAccess": "string",
    "zoneRedundant": "bool"
  },
  "sku": {
    "capacity": "int",
    "name": "string",
    "tier": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.EventHub/namespaces

Name Description Value
apiVersion API 版本 '2024-05-01-preview'
身分識別 BYOK 身分識別描述的屬性 Identity
位置 資源位置。 字串
name 資源名稱 string

Constraints:
最小長度 = 6
最大長度 = 50
模式 = ^[a-zA-Z][a-zA-Z0-9-]{6,50}[a-zA-Z0-9]$ (必要)
properties 為建立命名空間作業提供的命名空間屬性。 EHNamespaceProperties
sku SKU 資源的屬性 Sku
tags 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 'Microsoft.EventHub/namespaces'

ConnectionState

Name Description Value
description 連接狀態的描述。 字串
狀態 線上的狀態。 'Approved'
'Disconnected'
'Pending'
'Rejected'

EHNamespaceProperties

Name Description Value
alternateName 別名和命名空間名稱相同時指定的替代名稱。 字串
clusterArmId 命名空間的叢集 ARM 識別碼。 字串
disableLocalAuth 此屬性會停用事件中樞命名空間的 SAS 驗證。 bool
加密 BYOK 加密描述的屬性 Encryption
geoDataReplication 命名空間的異地數據復寫設定 GeoDataReplicationProperties
isAutoInflateEnabled 值,指出是否為 eventhub 命名空間啟用 AutoInflate。 bool
kafkaEnabled 值,指出是否為 eventhub 命名空間啟用 Kafka。 bool
maximumThroughputUnits 啟用 AutoInflate 時輸送量單位的上限,值應該在 0 到 20 個輸送量單位內。 (如果 AutoInflateEnabled = true, '0' int

Constraints:
最小值 = 0
minimumTlsVersion 叢集支援的最低 TLS 版本,例如 '1.2' '1.0'
'1.1'
'1.2'
privateEndpointConnections 私人端點連線的清單。 PrivateEndpointConnection[]
publicNetworkAccess 這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 'Disabled'
'Enabled'
'SecuredByPerimeter'
zoneRedundant 啟用此屬性會在支援的可用性區域中建立標準事件中樞命名空間。 bool

Encryption

Name Description Value
keySource 列舉 Encryption 的 keySource 可能值 'Microsoft.KeyVault'
keyVaultProperties KeyVault 的屬性 KeyVaultProperties[]
requireInfrastructureEncryption 開啟基礎結構加密 (雙重加密) bool

GeoDataReplicationProperties

Name Description Value
locations 維護命名空間複本的區域清單。 NamespaceReplicaLocation[]
maxReplicationLagDurationInSeconds 數據復寫作業從主要複本到次要複本仲裁的最大可接受延遲。 當延遲超過設定的數量時,主要複本上的作業將會失敗。 允許的值是 0 和 5 分鐘到 1 天。 int

Identity

Name Description Value
型別 受控服務識別的類型。 'None'
'SystemAssigned'
'SystemAssigned, UserAssigned'
'UserAssigned'
userAssignedIdentities 使用者指派身分識別的屬性 IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

Name Description Value

KeyVaultProperties

Name Description Value
身分識別 UserAssignedIdentityProperties
keyName KeyVault 中的金鑰名稱 字串
keyVaultUri KeyVault 的 URI 字串
keyVersion 金鑰版本 字串

NamespaceReplicaLocation

Name Description Value
clusterArmId 選擇性屬性,表示叢集的 ARM 識別碼。 如果命名空間複本應該放在專用事件中樞叢集中,則這是必要專案 字串
locationName 維護命名空間複本的 Azure 區域 字串
roleType GeoDR 角色類型 'Primary'
'Secondary'

PrivateEndpoint

Name Description Value
id 私人端點的ARM標識碼。 字串

PrivateEndpointConnection

Name Description Value
properties PrivateEndpointConnection 的屬性。 PrivateEndpointConnectionProperties

PrivateEndpointConnectionProperties

Name Description Value
privateEndpoint 此連線的私人端點資源。 PrivateEndpoint
privateLinkServiceConnectionState 線上狀態的詳細數據。 ConnectionState
provisioningState 私人端點聯機的布建狀態。 'Canceled'
'Creating'
'Deleting'
'Failed'
'Succeeded'
'Updating'

Sku

Name Description Value
容量 基本層或標準層的事件中樞輸送量單位,其中值應為 0 到 20 個輸送量單位。 進階層的事件中樞進階單位,其中值應為 0 到 10 個進階單位。 int

Constraints:
最小值 = 0
name 此 SKU 的名稱。 'Basic'
'Premium'
'Standard' (必要)
分層 這個特定 SKU 的計費層。 'Basic'
'Premium'
'Standard'

TrackedResourceTags

Name Description Value

UserAssignedIdentity

Name Description Value

UserAssignedIdentityProperties

Name Description Value
userAssignedIdentity 為加密選取的使用者身分識別的 ARM 識別碼 字串

Terraform (AzAPI 提供者) 資源定義

命名空間資源類型可以使用目標作業來部署:

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

使用範例

Terraform 範例

部署 EventHub 命名空間的基本範例。

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" "namespace" {
  type      = "Microsoft.EventHub/namespaces@2022-01-01-preview"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      disableLocalAuth     = false
      isAutoInflateEnabled = false
      publicNetworkAccess  = "Enabled"
      zoneRedundant        = false
    }
    sku = {
      capacity = 1
      name     = "Standard"
      tier     = "Standard"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

Azure 已驗證的模組

下列 Azure 驗證模組 可用來部署此資源類型。

Module Description
事件中樞命名空間 事件中樞命名空間的AVM資源模組

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.EventHub/namespaces@2024-05-01-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      alternateName = "string"
      clusterArmId = "string"
      disableLocalAuth = bool
      encryption = {
        keySource = "Microsoft.KeyVault"
        keyVaultProperties = [
          {
            identity = {
              userAssignedIdentity = "string"
            }
            keyName = "string"
            keyVaultUri = "string"
            keyVersion = "string"
          }
        ]
        requireInfrastructureEncryption = bool
      }
      geoDataReplication = {
        locations = [
          {
            clusterArmId = "string"
            locationName = "string"
            roleType = "string"
          }
        ]
        maxReplicationLagDurationInSeconds = int
      }
      isAutoInflateEnabled = bool
      kafkaEnabled = bool
      maximumThroughputUnits = int
      minimumTlsVersion = "string"
      privateEndpointConnections = [
        {
          properties = {
            privateEndpoint = {
              id = "string"
            }
            privateLinkServiceConnectionState = {
              description = "string"
              status = "string"
            }
            provisioningState = "string"
          }
        }
      ]
      publicNetworkAccess = "string"
      zoneRedundant = bool
    }
    sku = {
      capacity = int
      name = "string"
      tier = "string"
    }
  }
}

屬性值

Microsoft.EventHub/namespaces

Name Description Value
身分識別 BYOK 身分識別描述的屬性 Identity
位置 資源位置。 字串
name 資源名稱 string

Constraints:
最小長度 = 6
最大長度 = 50
模式 = ^[a-zA-Z][a-zA-Z0-9-]{6,50}[a-zA-Z0-9]$ (必要)
properties 為建立命名空間作業提供的命名空間屬性。 EHNamespaceProperties
sku SKU 資源的屬性 Sku
tags 資源標籤 標記名稱和值的字典。
型別 資源類型 "Microsoft.EventHub/namespaces@2024-05-01-preview"

ConnectionState

Name Description Value
description 連接狀態的描述。 字串
狀態 線上的狀態。 'Approved'
'Disconnected'
'Pending'
'Rejected'

EHNamespaceProperties

Name Description Value
alternateName 別名和命名空間名稱相同時指定的替代名稱。 字串
clusterArmId 命名空間的叢集 ARM 識別碼。 字串
disableLocalAuth 此屬性會停用事件中樞命名空間的 SAS 驗證。 bool
加密 BYOK 加密描述的屬性 Encryption
geoDataReplication 命名空間的異地數據復寫設定 GeoDataReplicationProperties
isAutoInflateEnabled 值,指出是否為 eventhub 命名空間啟用 AutoInflate。 bool
kafkaEnabled 值,指出是否為 eventhub 命名空間啟用 Kafka。 bool
maximumThroughputUnits 啟用 AutoInflate 時輸送量單位的上限,值應該在 0 到 20 個輸送量單位內。 (如果 AutoInflateEnabled = true, '0' int

Constraints:
最小值 = 0
minimumTlsVersion 叢集支援的最低 TLS 版本,例如 '1.2' '1.0'
'1.1'
'1.2'
privateEndpointConnections 私人端點連線的清單。 PrivateEndpointConnection[]
publicNetworkAccess 這會判斷是否允許透過公用網路傳輸流量。 默認會啟用。 'Disabled'
'Enabled'
'SecuredByPerimeter'
zoneRedundant 啟用此屬性會在支援的可用性區域中建立標準事件中樞命名空間。 bool

Encryption

Name Description Value
keySource 列舉 Encryption 的 keySource 可能值 'Microsoft.KeyVault'
keyVaultProperties KeyVault 的屬性 KeyVaultProperties[]
requireInfrastructureEncryption 開啟基礎結構加密 (雙重加密) bool

GeoDataReplicationProperties

Name Description Value
locations 維護命名空間複本的區域清單。 NamespaceReplicaLocation[]
maxReplicationLagDurationInSeconds 數據復寫作業從主要複本到次要複本仲裁的最大可接受延遲。 當延遲超過設定的數量時,主要複本上的作業將會失敗。 允許的值是 0 和 5 分鐘到 1 天。 int

Identity

Name Description Value
型別 受控服務識別的類型。 'None'
'SystemAssigned'
'SystemAssigned, UserAssigned'
'UserAssigned'
userAssignedIdentities 使用者指派身分識別的屬性 IdentityUserAssignedIdentities

IdentityUserAssignedIdentities

Name Description Value

KeyVaultProperties

Name Description Value
身分識別 UserAssignedIdentityProperties
keyName KeyVault 中的金鑰名稱 字串
keyVaultUri KeyVault 的 URI 字串
keyVersion 金鑰版本 字串

NamespaceReplicaLocation

Name Description Value
clusterArmId 選擇性屬性,表示叢集的 ARM 識別碼。 如果命名空間複本應該放在專用事件中樞叢集中,則這是必要專案 字串
locationName 維護命名空間複本的 Azure 區域 字串
roleType GeoDR 角色類型 'Primary'
'Secondary'

PrivateEndpoint

Name Description Value
id 私人端點的ARM標識碼。 字串

PrivateEndpointConnection

Name Description Value
properties PrivateEndpointConnection 的屬性。 PrivateEndpointConnectionProperties

PrivateEndpointConnectionProperties

Name Description Value
privateEndpoint 此連線的私人端點資源。 PrivateEndpoint
privateLinkServiceConnectionState 線上狀態的詳細數據。 ConnectionState
provisioningState 私人端點聯機的布建狀態。 'Canceled'
'Creating'
'Deleting'
'Failed'
'Succeeded'
'Updating'

Sku

Name Description Value
容量 基本層或標準層的事件中樞輸送量單位,其中值應為 0 到 20 個輸送量單位。 進階層的事件中樞進階單位,其中值應為 0 到 10 個進階單位。 int

Constraints:
最小值 = 0
name 此 SKU 的名稱。 'Basic'
'Premium'
'Standard' (必要)
分層 這個特定 SKU 的計費層。 'Basic'
'Premium'
'Standard'

TrackedResourceTags

Name Description Value

UserAssignedIdentity

Name Description Value

UserAssignedIdentityProperties

Name Description Value
userAssignedIdentity 為加密選取的使用者身分識別的 ARM 識別碼 字串