We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages an EventGrid Topic
Note: at this time EventGrid Topic’s are only available in a limited number of regions.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleTopic = new Azure.EventGrid.Topic("exampleTopic", new Azure.EventGrid.TopicArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Tags =
{
{ "environment", "Production" },
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/eventgrid"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = eventgrid.NewTopic(ctx, "exampleTopic", &eventgrid.TopicArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
Tags: pulumi.StringMap{
"environment": pulumi.String("Production"),
},
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleTopic = new azure.eventgrid.Topic("exampleTopic", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
tags: {
environment: "Production",
},
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_topic = azure.eventgrid.Topic("exampleTopic",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
tags={
"environment": "Production",
})
Example coming soon!
Create Topic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Topic(name: string, args: TopicArgs, opts?: CustomResourceOptions);@overload
def Topic(resource_name: str,
args: TopicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Topic(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
identity: Optional[TopicIdentityArgs] = None,
inbound_ip_rules: Optional[Sequence[TopicInboundIpRuleArgs]] = None,
input_mapping_default_values: Optional[TopicInputMappingDefaultValuesArgs] = None,
input_mapping_fields: Optional[TopicInputMappingFieldsArgs] = None,
input_schema: Optional[str] = None,
local_auth_enabled: Optional[bool] = None,
location: Optional[str] = None,
name: Optional[str] = None,
public_network_access_enabled: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None)func NewTopic(ctx *Context, name string, args TopicArgs, opts ...ResourceOption) (*Topic, error)public Topic(string name, TopicArgs args, CustomResourceOptions? opts = null)type: azure:eventgrid:Topic
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TopicArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var topicResource = new Azure.EventGrid.Topic("topicResource", new()
{
ResourceGroupName = "string",
Identity = new Azure.EventGrid.Inputs.TopicIdentityArgs
{
Type = "string",
IdentityIds = new[]
{
"string",
},
PrincipalId = "string",
TenantId = "string",
},
InboundIpRules = new[]
{
new Azure.EventGrid.Inputs.TopicInboundIpRuleArgs
{
IpMask = "string",
Action = "string",
},
},
InputMappingDefaultValues = new Azure.EventGrid.Inputs.TopicInputMappingDefaultValuesArgs
{
DataVersion = "string",
EventType = "string",
Subject = "string",
},
InputMappingFields = new Azure.EventGrid.Inputs.TopicInputMappingFieldsArgs
{
DataVersion = "string",
EventTime = "string",
EventType = "string",
Id = "string",
Subject = "string",
Topic = "string",
},
InputSchema = "string",
LocalAuthEnabled = false,
Location = "string",
Name = "string",
PublicNetworkAccessEnabled = false,
Tags =
{
{ "string", "string" },
},
});
example, err := eventgrid.NewTopic(ctx, "topicResource", &eventgrid.TopicArgs{
ResourceGroupName: pulumi.String("string"),
Identity: &eventgrid.TopicIdentityArgs{
Type: pulumi.String("string"),
IdentityIds: pulumi.StringArray{
pulumi.String("string"),
},
PrincipalId: pulumi.String("string"),
TenantId: pulumi.String("string"),
},
InboundIpRules: eventgrid.TopicInboundIpRuleArray{
&eventgrid.TopicInboundIpRuleArgs{
IpMask: pulumi.String("string"),
Action: pulumi.String("string"),
},
},
InputMappingDefaultValues: &eventgrid.TopicInputMappingDefaultValuesArgs{
DataVersion: pulumi.String("string"),
EventType: pulumi.String("string"),
Subject: pulumi.String("string"),
},
InputMappingFields: &eventgrid.TopicInputMappingFieldsArgs{
DataVersion: pulumi.String("string"),
EventTime: pulumi.String("string"),
EventType: pulumi.String("string"),
Id: pulumi.String("string"),
Subject: pulumi.String("string"),
Topic: pulumi.String("string"),
},
InputSchema: pulumi.String("string"),
LocalAuthEnabled: pulumi.Bool(false),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
PublicNetworkAccessEnabled: pulumi.Bool(false),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var topicResource = new com.pulumi.azure.eventgrid.Topic("topicResource", com.pulumi.azure.eventgrid.TopicArgs.builder()
.resourceGroupName("string")
.identity(TopicIdentityArgs.builder()
.type("string")
.identityIds("string")
.principalId("string")
.tenantId("string")
.build())
.inboundIpRules(TopicInboundIpRuleArgs.builder()
.ipMask("string")
.action("string")
.build())
.inputMappingDefaultValues(TopicInputMappingDefaultValuesArgs.builder()
.dataVersion("string")
.eventType("string")
.subject("string")
.build())
.inputMappingFields(TopicInputMappingFieldsArgs.builder()
.dataVersion("string")
.eventTime("string")
.eventType("string")
.id("string")
.subject("string")
.topic("string")
.build())
.inputSchema("string")
.localAuthEnabled(false)
.location("string")
.name("string")
.publicNetworkAccessEnabled(false)
.tags(Map.of("string", "string"))
.build());
topic_resource = azure.eventgrid.Topic("topicResource",
resource_group_name="string",
identity={
"type": "string",
"identity_ids": ["string"],
"principal_id": "string",
"tenant_id": "string",
},
inbound_ip_rules=[{
"ip_mask": "string",
"action": "string",
}],
input_mapping_default_values={
"data_version": "string",
"event_type": "string",
"subject": "string",
},
input_mapping_fields={
"data_version": "string",
"event_time": "string",
"event_type": "string",
"id": "string",
"subject": "string",
"topic": "string",
},
input_schema="string",
local_auth_enabled=False,
location="string",
name="string",
public_network_access_enabled=False,
tags={
"string": "string",
})
const topicResource = new azure.eventgrid.Topic("topicResource", {
resourceGroupName: "string",
identity: {
type: "string",
identityIds: ["string"],
principalId: "string",
tenantId: "string",
},
inboundIpRules: [{
ipMask: "string",
action: "string",
}],
inputMappingDefaultValues: {
dataVersion: "string",
eventType: "string",
subject: "string",
},
inputMappingFields: {
dataVersion: "string",
eventTime: "string",
eventType: "string",
id: "string",
subject: "string",
topic: "string",
},
inputSchema: "string",
localAuthEnabled: false,
location: "string",
name: "string",
publicNetworkAccessEnabled: false,
tags: {
string: "string",
},
});
type: azure:eventgrid:Topic
properties:
identity:
identityIds:
- string
principalId: string
tenantId: string
type: string
inboundIpRules:
- action: string
ipMask: string
inputMappingDefaultValues:
dataVersion: string
eventType: string
subject: string
inputMappingFields:
dataVersion: string
eventTime: string
eventType: string
id: string
subject: string
topic: string
inputSchema: string
localAuthEnabled: false
location: string
name: string
publicNetworkAccessEnabled: false
resourceGroupName: string
tags:
string: string
Topic Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Topic resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- Identity
Topic
Identity - An
identityblock as defined below. - Inbound
Ip List<TopicRules Inbound Ip Rule> - One or more
inbound_ip_ruleblocks as defined below. - Input
Mapping TopicDefault Values Input Mapping Default Values - A
input_mapping_default_valuesblock as defined below. - Input
Mapping TopicFields Input Mapping Fields - A
input_mapping_fieldsblock as defined below. - Input
Schema string - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - Local
Auth boolEnabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- Public
Network boolAccess Enabled - Whether or not public network access is allowed for this server. Defaults to
true. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Resource
Group stringName - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- Identity
Topic
Identity Args - An
identityblock as defined below. - Inbound
Ip []TopicRules Inbound Ip Rule Args - One or more
inbound_ip_ruleblocks as defined below. - Input
Mapping TopicDefault Values Input Mapping Default Values Args - A
input_mapping_default_valuesblock as defined below. - Input
Mapping TopicFields Input Mapping Fields Args - A
input_mapping_fieldsblock as defined below. - Input
Schema string - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - Local
Auth boolEnabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- Public
Network boolAccess Enabled - Whether or not public network access is allowed for this server. Defaults to
true. - map[string]string
- A mapping of tags to assign to the resource.
- resource
Group StringName - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- identity
Topic
Identity - An
identityblock as defined below. - inbound
Ip List<TopicRules Inbound Ip Rule> - One or more
inbound_ip_ruleblocks as defined below. - input
Mapping TopicDefault Values Input Mapping Default Values - A
input_mapping_default_valuesblock as defined below. - input
Mapping TopicFields Input Mapping Fields - A
input_mapping_fieldsblock as defined below. - input
Schema String - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - local
Auth BooleanEnabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- public
Network BooleanAccess Enabled - Whether or not public network access is allowed for this server. Defaults to
true. - Map<String,String>
- A mapping of tags to assign to the resource.
- resource
Group stringName - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- identity
Topic
Identity - An
identityblock as defined below. - inbound
Ip TopicRules Inbound Ip Rule[] - One or more
inbound_ip_ruleblocks as defined below. - input
Mapping TopicDefault Values Input Mapping Default Values - A
input_mapping_default_valuesblock as defined below. - input
Mapping TopicFields Input Mapping Fields - A
input_mapping_fieldsblock as defined below. - input
Schema string - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - local
Auth booleanEnabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- public
Network booleanAccess Enabled - Whether or not public network access is allowed for this server. Defaults to
true. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- resource_
group_ strname - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- identity
Topic
Identity Args - An
identityblock as defined below. - inbound_
ip_ Sequence[Topicrules Inbound Ip Rule Args] - One or more
inbound_ip_ruleblocks as defined below. - input_
mapping_ Topicdefault_ values Input Mapping Default Values Args - A
input_mapping_default_valuesblock as defined below. - input_
mapping_ Topicfields Input Mapping Fields Args - A
input_mapping_fieldsblock as defined below. - input_
schema str - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - local_
auth_ boolenabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- public_
network_ boolaccess_ enabled - Whether or not public network access is allowed for this server. Defaults to
true. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- resource
Group StringName - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- identity Property Map
- An
identityblock as defined below. - inbound
Ip List<Property Map>Rules - One or more
inbound_ip_ruleblocks as defined below. - input
Mapping Property MapDefault Values - A
input_mapping_default_valuesblock as defined below. - input
Mapping Property MapFields - A
input_mapping_fieldsblock as defined below. - input
Schema String - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - local
Auth BooleanEnabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- public
Network BooleanAccess Enabled - Whether or not public network access is allowed for this server. Defaults to
true. - Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Topic resource produces the following output properties:
- Endpoint string
- The Endpoint associated with the EventGrid Topic.
- Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Access stringKey - The Primary Shared Access Key associated with the EventGrid Topic.
- Secondary
Access stringKey - The Secondary Shared Access Key associated with the EventGrid Topic.
- Endpoint string
- The Endpoint associated with the EventGrid Topic.
- Id string
- The provider-assigned unique ID for this managed resource.
- Primary
Access stringKey - The Primary Shared Access Key associated with the EventGrid Topic.
- Secondary
Access stringKey - The Secondary Shared Access Key associated with the EventGrid Topic.
- endpoint String
- The Endpoint associated with the EventGrid Topic.
- id String
- The provider-assigned unique ID for this managed resource.
- primary
Access StringKey - The Primary Shared Access Key associated with the EventGrid Topic.
- secondary
Access StringKey - The Secondary Shared Access Key associated with the EventGrid Topic.
- endpoint string
- The Endpoint associated with the EventGrid Topic.
- id string
- The provider-assigned unique ID for this managed resource.
- primary
Access stringKey - The Primary Shared Access Key associated with the EventGrid Topic.
- secondary
Access stringKey - The Secondary Shared Access Key associated with the EventGrid Topic.
- endpoint str
- The Endpoint associated with the EventGrid Topic.
- id str
- The provider-assigned unique ID for this managed resource.
- primary_
access_ strkey - The Primary Shared Access Key associated with the EventGrid Topic.
- secondary_
access_ strkey - The Secondary Shared Access Key associated with the EventGrid Topic.
- endpoint String
- The Endpoint associated with the EventGrid Topic.
- id String
- The provider-assigned unique ID for this managed resource.
- primary
Access StringKey - The Primary Shared Access Key associated with the EventGrid Topic.
- secondary
Access StringKey - The Secondary Shared Access Key associated with the EventGrid Topic.
Look up Existing Topic Resource
Get an existing Topic resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TopicState, opts?: CustomResourceOptions): Topic@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
endpoint: Optional[str] = None,
identity: Optional[TopicIdentityArgs] = None,
inbound_ip_rules: Optional[Sequence[TopicInboundIpRuleArgs]] = None,
input_mapping_default_values: Optional[TopicInputMappingDefaultValuesArgs] = None,
input_mapping_fields: Optional[TopicInputMappingFieldsArgs] = None,
input_schema: Optional[str] = None,
local_auth_enabled: Optional[bool] = None,
location: Optional[str] = None,
name: Optional[str] = None,
primary_access_key: Optional[str] = None,
public_network_access_enabled: Optional[bool] = None,
resource_group_name: Optional[str] = None,
secondary_access_key: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> Topicfunc GetTopic(ctx *Context, name string, id IDInput, state *TopicState, opts ...ResourceOption) (*Topic, error)public static Topic Get(string name, Input<string> id, TopicState? state, CustomResourceOptions? opts = null)public static Topic get(String name, Output<String> id, TopicState state, CustomResourceOptions options)resources: _: type: azure:eventgrid:Topic get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Endpoint string
- The Endpoint associated with the EventGrid Topic.
- Identity
Topic
Identity - An
identityblock as defined below. - Inbound
Ip List<TopicRules Inbound Ip Rule> - One or more
inbound_ip_ruleblocks as defined below. - Input
Mapping TopicDefault Values Input Mapping Default Values - A
input_mapping_default_valuesblock as defined below. - Input
Mapping TopicFields Input Mapping Fields - A
input_mapping_fieldsblock as defined below. - Input
Schema string - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - Local
Auth boolEnabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- Primary
Access stringKey - The Primary Shared Access Key associated with the EventGrid Topic.
- Public
Network boolAccess Enabled - Whether or not public network access is allowed for this server. Defaults to
true. - Resource
Group stringName - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- Secondary
Access stringKey - The Secondary Shared Access Key associated with the EventGrid Topic.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Endpoint string
- The Endpoint associated with the EventGrid Topic.
- Identity
Topic
Identity Args - An
identityblock as defined below. - Inbound
Ip []TopicRules Inbound Ip Rule Args - One or more
inbound_ip_ruleblocks as defined below. - Input
Mapping TopicDefault Values Input Mapping Default Values Args - A
input_mapping_default_valuesblock as defined below. - Input
Mapping TopicFields Input Mapping Fields Args - A
input_mapping_fieldsblock as defined below. - Input
Schema string - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - Local
Auth boolEnabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- Primary
Access stringKey - The Primary Shared Access Key associated with the EventGrid Topic.
- Public
Network boolAccess Enabled - Whether or not public network access is allowed for this server. Defaults to
true. - Resource
Group stringName - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- Secondary
Access stringKey - The Secondary Shared Access Key associated with the EventGrid Topic.
- map[string]string
- A mapping of tags to assign to the resource.
- endpoint String
- The Endpoint associated with the EventGrid Topic.
- identity
Topic
Identity - An
identityblock as defined below. - inbound
Ip List<TopicRules Inbound Ip Rule> - One or more
inbound_ip_ruleblocks as defined below. - input
Mapping TopicDefault Values Input Mapping Default Values - A
input_mapping_default_valuesblock as defined below. - input
Mapping TopicFields Input Mapping Fields - A
input_mapping_fieldsblock as defined below. - input
Schema String - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - local
Auth BooleanEnabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- primary
Access StringKey - The Primary Shared Access Key associated with the EventGrid Topic.
- public
Network BooleanAccess Enabled - Whether or not public network access is allowed for this server. Defaults to
true. - resource
Group StringName - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- secondary
Access StringKey - The Secondary Shared Access Key associated with the EventGrid Topic.
- Map<String,String>
- A mapping of tags to assign to the resource.
- endpoint string
- The Endpoint associated with the EventGrid Topic.
- identity
Topic
Identity - An
identityblock as defined below. - inbound
Ip TopicRules Inbound Ip Rule[] - One or more
inbound_ip_ruleblocks as defined below. - input
Mapping TopicDefault Values Input Mapping Default Values - A
input_mapping_default_valuesblock as defined below. - input
Mapping TopicFields Input Mapping Fields - A
input_mapping_fieldsblock as defined below. - input
Schema string - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - local
Auth booleanEnabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- primary
Access stringKey - The Primary Shared Access Key associated with the EventGrid Topic.
- public
Network booleanAccess Enabled - Whether or not public network access is allowed for this server. Defaults to
true. - resource
Group stringName - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- secondary
Access stringKey - The Secondary Shared Access Key associated with the EventGrid Topic.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- endpoint str
- The Endpoint associated with the EventGrid Topic.
- identity
Topic
Identity Args - An
identityblock as defined below. - inbound_
ip_ Sequence[Topicrules Inbound Ip Rule Args] - One or more
inbound_ip_ruleblocks as defined below. - input_
mapping_ Topicdefault_ values Input Mapping Default Values Args - A
input_mapping_default_valuesblock as defined below. - input_
mapping_ Topicfields Input Mapping Fields Args - A
input_mapping_fieldsblock as defined below. - input_
schema str - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - local_
auth_ boolenabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- primary_
access_ strkey - The Primary Shared Access Key associated with the EventGrid Topic.
- public_
network_ boolaccess_ enabled - Whether or not public network access is allowed for this server. Defaults to
true. - resource_
group_ strname - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- secondary_
access_ strkey - The Secondary Shared Access Key associated with the EventGrid Topic.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- endpoint String
- The Endpoint associated with the EventGrid Topic.
- identity Property Map
- An
identityblock as defined below. - inbound
Ip List<Property Map>Rules - One or more
inbound_ip_ruleblocks as defined below. - input
Mapping Property MapDefault Values - A
input_mapping_default_valuesblock as defined below. - input
Mapping Property MapFields - A
input_mapping_fieldsblock as defined below. - input
Schema String - Specifies the schema in which incoming events will be published to this domain. Allowed values are
CloudEventSchemaV1_0,CustomEventSchema, orEventGridSchema. Defaults toEventGridSchema. Changing this forces a new resource to be created. - local
Auth BooleanEnabled - Whether local authentication methods is enabled for the EventGrid Topic. Defaults to
true. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the EventGrid Topic resource. Changing this forces a new resource to be created.
- primary
Access StringKey - The Primary Shared Access Key associated with the EventGrid Topic.
- public
Network BooleanAccess Enabled - Whether or not public network access is allowed for this server. Defaults to
true. - resource
Group StringName - The name of the resource group in which the EventGrid Topic exists. Changing this forces a new resource to be created.
- secondary
Access StringKey - The Secondary Shared Access Key associated with the EventGrid Topic.
- Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
TopicIdentity, TopicIdentityArgs
- Type string
- Specifies the identity type of Event Grid Topic. Possible values are
SystemAssigned(where Azure will generate a Principal for you) orUserAssignedwhere you can specify the User Assigned Managed Identity IDs in theidentity_idsfield. - Identity
Ids List<string> - Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned. - Principal
Id string - Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- Tenant
Id string - Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- Type string
- Specifies the identity type of Event Grid Topic. Possible values are
SystemAssigned(where Azure will generate a Principal for you) orUserAssignedwhere you can specify the User Assigned Managed Identity IDs in theidentity_idsfield. - Identity
Ids []string - Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned. - Principal
Id string - Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- Tenant
Id string - Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- type String
- Specifies the identity type of Event Grid Topic. Possible values are
SystemAssigned(where Azure will generate a Principal for you) orUserAssignedwhere you can specify the User Assigned Managed Identity IDs in theidentity_idsfield. - identity
Ids List<String> - Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned. - principal
Id String - Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- tenant
Id String - Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- type string
- Specifies the identity type of Event Grid Topic. Possible values are
SystemAssigned(where Azure will generate a Principal for you) orUserAssignedwhere you can specify the User Assigned Managed Identity IDs in theidentity_idsfield. - identity
Ids string[] - Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned. - principal
Id string - Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- tenant
Id string - Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- type str
- Specifies the identity type of Event Grid Topic. Possible values are
SystemAssigned(where Azure will generate a Principal for you) orUserAssignedwhere you can specify the User Assigned Managed Identity IDs in theidentity_idsfield. - identity_
ids Sequence[str] - Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned. - principal_
id str - Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- tenant_
id str - Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- type String
- Specifies the identity type of Event Grid Topic. Possible values are
SystemAssigned(where Azure will generate a Principal for you) orUserAssignedwhere you can specify the User Assigned Managed Identity IDs in theidentity_idsfield. - identity
Ids List<String> - Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned. - principal
Id String - Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
- tenant
Id String - Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this Event Grid Topic.
TopicInboundIpRule, TopicInboundIpRuleArgs
TopicInputMappingDefaultValues, TopicInputMappingDefaultValuesArgs
- Data
Version string - Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Event
Type string - Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Subject string
- Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Data
Version string - Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Event
Type string - Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Subject string
- Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- data
Version String - Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event
Type String - Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- subject String
- Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- data
Version string - Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event
Type string - Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- subject string
- Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- data_
version str - Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event_
type str - Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- subject str
- Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- data
Version String - Specifies the default data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event
Type String - Specifies the default event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- subject String
- Specifies the default subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
TopicInputMappingFields, TopicInputMappingFieldsArgs
- Data
Version string - Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Event
Time string - Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Event
Type string - Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Id string
- Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Subject string
- Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Topic string
- Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Data
Version string - Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Event
Time string - Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Event
Type string - Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Id string
- Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Subject string
- Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- Topic string
- Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- data
Version String - Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event
Time String - Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event
Type String - Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- id String
- Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- subject String
- Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- topic String
- Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- data
Version string - Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event
Time string - Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event
Type string - Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- id string
- Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- subject string
- Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- topic string
- Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- data_
version str - Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event_
time str - Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event_
type str - Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- id str
- Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- subject str
- Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- topic str
- Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- data
Version String - Specifies the data version of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event
Time String - Specifies the event time of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- event
Type String - Specifies the event type of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- id String
- Specifies the id of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- subject String
- Specifies the subject of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
- topic String
- Specifies the topic of the EventGrid Event to associate with the domain. Changing this forces a new resource to be created.
Import
EventGrid Topic’s can be imported using the resource id, e.g.
$ pulumi import azure:eventgrid/topic:Topic topic1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventGrid/topics/topic1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
