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
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"
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
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"
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"
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"
Parameters
-
id
optional computed - string -
location
required - string -
metric_arm_resource_id
optional computed - string -
name
required - string -
resource_group_name
required - string -
source_arm_resource_id
required - string -
tags
optional - map from string to string -
topic_type
required - string -
timeouts
single block
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 - stringidentity
optionalprincipalId
optional - stringThe principal ID of resource identity.
tenantId
optional - stringThe tenant ID of resource.
type
optional - stringThe 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 - undefinedThe 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 - stringLocation of the resource.
name
required - stringName of the system topic.
properties
requiredsource
optional - stringSource for the system topic.
topicType
optional - stringTopicType for the system topic.
tags
optional - stringTags 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.