Azure Messaging System Topic

This page shows how to write Terraform and Azure Resource Manager for Messaging System Topic and write them securely.

azurerm_eventgrid_system_topic (Terraform)

The System Topic in Messaging can be configured in Terraform with the resource name azurerm_eventgrid_system_topic. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

eventgrid.tf#L1
resource "azurerm_eventgrid_system_topic" "corestoragesystemtopic" {
  name                   = "corestoragesystemtopic"
  resource_group_name    = var.shared_env.rg.name
  location               = var.shared_env.rg.location
  source_arm_resource_id = var.source_arm_resource_id
  topic_type             = "Microsoft.Storage.StorageAccounts"
main.tf#L1
resource "azurerm_eventgrid_system_topic" "this" {
    name = var.system_topic_name
    resource_group_name = var.resource_group_name
    location = var.location
    source_arm_resource_id = var.source_arm_resource_id
    topic_type = var.topic_type
eventgrid-blob.tf#L1
resource "azurerm_eventgrid_system_topic" "egt_blob" {
  name                   = "__egt_blob_name__"
  location               = azurerm_resource_group.rg.location
  resource_group_name    = azurerm_resource_group.rg.name
  source_arm_resource_id = azurerm_storage_account.sa_acm_reports.id
  topic_type             = "Microsoft.Storage.StorageAccounts"
eventgrid-blob.tf#L1
resource "azurerm_eventgrid_system_topic" "egt_blob" {
  name                   = "__egt_blob_name__"
  location               = azurerm_resource_group.rg.location
  resource_group_name    = azurerm_resource_group.rg.name
  source_arm_resource_id = azurerm_storage_account.sa_acm_reports.id
  topic_type             = "Microsoft.Storage.StorageAccounts"
main.tf#L32
resource "azurerm_eventgrid_system_topic" "log_pipeline" {
  name                   = "CoolDiagnosticLogsSubscriptionTopic"
  resource_group_name    = azurerm_resource_group.log_pipeline.name
  location               = azurerm_resource_group.log_pipeline.location
  source_arm_resource_id = azurerm_storage_account.log_pipeline.id
  topic_type             = "Microsoft.Storage.StorageAccounts"

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages an Event Grid System Topic.

Microsoft.EventGrid/systemTopics (Azure Resource Manager)

The systemTopics in Microsoft.EventGrid can be configured in Azure Resource Manager with the resource name Microsoft.EventGrid/systemTopics. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

  • apiVersion required - string
  • identity optional
      • principalId optional - string

        The principal ID of resource identity.

      • tenantId optional - string

        The tenant ID of resource.

      • type optional - string

        The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity.

      • userAssignedIdentities optional - undefined

        The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

  • location required - string

    Location of the resource.

  • name required - string

    Name of the system topic.

  • properties required
      • source optional - string

        Source for the system topic.

      • topicType optional - string

        TopicType for the system topic.

  • tags optional - string

    Tags of the resource.

  • type required - string

Frequently asked questions

What is Azure Messaging System Topic?

Azure Messaging System Topic is a resource for Messaging of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Messaging System Topic?

For Terraform, the Azure-Samples/media-services-video-indexer, willvelida/velidaazureengine and quentinb305/cost-management-exports source code examples are useful. See the Terraform Example section for further details.