共用方式為


Microsoft.EventGrid systemTopics

Bicep 資源定義

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

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

資源格式

若要建立 Microsoft.EventGrid/systemTopics 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.EventGrid/systemTopics@2023-12-15-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  identity: {
    principalId: 'string'
    tenantId: 'string'
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {
        clientId: 'string'
        principalId: 'string'
      }
    }
  }
  properties: {
    source: 'string'
    topicType: 'string'
  }
}

屬性值

systemTopics

名稱 描述
NAME 資源名稱 字串 (必要)
location 資源的位置。 字串 (必要)
tags 資源的標記。 標記名稱和值的字典。 請參閱 範本中的標記
身分識別 資源的身分識別資訊。 IdentityInfo
properties 系統主題的屬性。 SystemTopicProperties

IdentityInfo

名稱 描述
principalId 資源識別的主體標識碼。 字串
tenantId 資源的租用戶標識碼。 字串
type 使用的受控識別類型。 類型 'SystemAssigned, UserAssigned' 包含隱含建立的身分識別和一組使用者指派的身分識別。 類型 『None』 將會移除任何身分識別。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考將會是格式為 ARM 資源識別碼:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。
此屬性目前未使用,並保留供日後使用。
IdentityInfoUserAssignedIdentities

IdentityInfoUserAssignedIdentities

名稱 描述
{自定義屬性} UserIdentityProperties

UserIdentityProperties

名稱 描述
clientId 使用者指派身分識別的用戶端標識碼。 字串
principalId 使用者指派身分識別的主體標識碼。 字串

SystemTopicProperties

名稱 描述
來源 系統主題的來源。 字串
topicType 系統主題的 TopicType。 字串

快速入門範本

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

範本 描述
建立 Blob 記憶體和事件方格訂用帳戶至 Blob

部署至 Azure
建立 Azure Blob 儲存體 帳戶,然後建立該 Blob 的事件方格訂用帳戶。

ARM 範本資源定義

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

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

資源格式

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

{
  "type": "Microsoft.EventGrid/systemTopics",
  "apiVersion": "2023-12-15-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "identity": {
    "principalId": "string",
    "tenantId": "string",
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
        "clientId": "string",
        "principalId": "string"
      }
    }
  },
  "properties": {
    "source": "string",
    "topicType": "string"
  }
}

屬性值

systemTopics

名稱 描述
類型 資源類型 'Microsoft.EventGrid/systemTopics'
apiVersion 資源 API 版本 '2023-12-15-preview'
NAME 資源名稱 字串 (必要)
location 資源的位置。 字串 (必要)
tags 資源的標記。 標記名稱和值的字典。 請參閱 範本中的標記
身分識別 資源的身分識別資訊。 IdentityInfo
properties 系統主題的屬性。 SystemTopicProperties

IdentityInfo

名稱 描述
principalId 資源識別的主體標識碼。 字串
tenantId 資源的租用戶標識碼。 字串
type 使用的受控識別類型。 類型 'SystemAssigned, UserAssigned' 包含隱含建立的身分識別和一組使用者指派的身分識別。 類型 『None』 將會移除任何身分識別。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考將會是格式為 ARM 資源識別碼:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。
此屬性目前未使用,並保留供日後使用。
IdentityInfoUserAssignedIdentities

IdentityInfoUserAssignedIdentities

名稱 描述
{自定義屬性} UserIdentityProperties

UserIdentityProperties

名稱 描述
clientId 使用者指派身分識別的用戶端標識碼。 字串
principalId 使用者指派身分識別的主體標識碼。 字串

SystemTopicProperties

名稱 描述
來源 系統主題的來源。 字串
topicType 系統主題的 TopicType。 字串

快速入門範本

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

範本 描述
建立 Blob 記憶體和事件方格訂用帳戶至 Blob

部署至 Azure
建立 Azure Blob 儲存體 帳戶,然後建立該 Blob 的事件方格訂用帳戶。

Terraform (AzAPI 提供者) 資源定義

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

  • 資源群組

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

資源格式

若要建立 Microsoft.EventGrid/systemTopics 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.EventGrid/systemTopics@2023-12-15-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      source = "string"
      topicType = "string"
    }
  })
}

屬性值

systemTopics

名稱 描述
類型 資源類型 “Microsoft.EventGrid/systemTopics@2023-12-15-preview”
NAME 資源名稱 需要字串 ()
location 資源的位置。 需要字串 ()
parent_id 若要部署至資源群組,請使用該資源群組的標識碼。 需要字串 ()
tags 資源的標記。 標記名稱和值的字典。
身分識別 資源的身分識別資訊。 IdentityInfo
properties 系統主題的屬性。 SystemTopicProperties

IdentityInfo

名稱 描述
類型 使用的受控識別類型。 類型 'SystemAssigned, UserAssigned' 包含隱含建立的身分識別和一組使用者指派的身分識別。 類型 『None』 將會移除任何身分識別。 “SystemAssigned”
“SystemAssigned, UserAssigned”
“UserAssigned”
identity_ids 與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式會是 ARM 資源識別碼:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。
此屬性目前未使用,並保留供日後使用。
使用者身分識別標識碼的陣列。

IdentityInfoUserAssignedIdentities

名稱 描述
{自定義屬性} UserIdentityProperties

UserIdentityProperties

名稱 描述
clientId 使用者指派身分識別的用戶端標識碼。 字串
principalId 使用者指派身分識別的主體標識碼。 字串

SystemTopicProperties

名稱 描述
來源 系統主題的來源。 字串
topicType 系統主題的 TopicType。 字串