Name of a field in the input event schema that's to be used as the source of a mapping.
string
JsonFieldWithDefault
Name
Description
Value
defaultValue
The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.
string
sourceField
Name of a field in the input event schema that's to be used as the source of a mapping.
This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
Name of a field in the input event schema that's to be used as the source of a mapping.
string
JsonFieldWithDefault
Name
Description
Value
defaultValue
The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.
string
sourceField
Name of a field in the input event schema that's to be used as the source of a mapping.
This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.
Creates a custom Azure Event Grid topic, a webhook subscription having CloudEvents schema, and a Logic App as an event handler. Template originally authored by Justin Yoo.
Terraform (AzAPI provider) resource definition
The topics resource type can be deployed with operations that target:
Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.EventGrid/topics resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.EventGrid/topics@2019-02-01-preview"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
inputSchema = "string"
inputSchemaMapping = {
inputSchemaMappingType = "string"
// For remaining properties, see InputSchemaMapping objects
}
}
})
}
InputSchemaMapping objects
Set the inputSchemaMappingType property to specify the type of object.
Name of a field in the input event schema that's to be used as the source of a mapping.
string
JsonFieldWithDefault
Name
Description
Value
defaultValue
The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.
string
sourceField
Name of a field in the input event schema that's to be used as the source of a mapping.
This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema.