Azure Messaging System Topic Event Subscription

This page shows how to write Terraform for Messaging System Topic Event Subscription and write them securely.

azurerm_eventgrid_system_topic_event_subscription (Terraform)

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

Example Usage from GitHub

eventgrid.tf#L9
resource "azurerm_eventgrid_system_topic_event_subscription" "corestoragesubscription" {
  name                = "corestoragesubscription"
  system_topic        = azurerm_eventgrid_system_topic.corestoragesystemtopic.name
  resource_group_name = var.shared_env.rg.name

  azure_function_endpoint {
main.tf#L41
resource "azurerm_eventgrid_system_topic_event_subscription" "log_pipeline" {
  name                = "LogPipelineEventSubscription"
  system_topic        = azurerm_eventgrid_system_topic.log_pipeline.name
  resource_group_name = azurerm_resource_group.log_pipeline.name
  service_bus_topic_endpoint_id = azurerm_servicebus_topic.log_pipeline.id
  included_event_types   = ["Microsoft.Storage.BlobCreated"]

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 EventGrid System Topic Event Subscription.

Azure Resource Manager Example

Azure Resource Manager code does not have the related resource.

Frequently asked questions

What is Azure Messaging System Topic Event Subscription?

Azure Messaging System Topic Event Subscription 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 Event Subscription?

For Terraform, the Azure-Samples/media-services-video-indexer and jcetina/terraform-snippets source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.