Microsoft.EventGrid domains 2018-09-15-preview
Article 02/13/2025
2 contributors
Feedback
In this article
Bicep resource definition
The domains resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log .
To create a Microsoft.EventGrid/domains resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.EventGrid/domains@2018-09-15-preview' = {
location: 'string'
name: 'string'
properties: {
inputSchema: 'string'
inputSchemaMapping: {
inputSchemaMappingType: 'string'
// For remaining properties, see InputSchemaMapping objects
}
}
tags: {
{customized property}: 'string'
}
}
Set the inputSchemaMappingType property to specify the type of object.
For Json , use:
{
inputSchemaMappingType: 'Json'
properties: {
dataVersion: {
defaultValue: 'string'
sourceField: 'string'
}
eventTime: {
sourceField: 'string'
}
eventType: {
defaultValue: 'string'
sourceField: 'string'
}
id: {
sourceField: 'string'
}
subject: {
defaultValue: 'string'
sourceField: 'string'
}
topic: {
sourceField: 'string'
}
}
}
Property Values
DomainProperties
Name
Description
Value
inputSchema
This determines the format that Event Grid should expect for incoming events published to the domain.
'CloudEventV01Schema' 'CustomEventSchema' 'EventGridSchema'
inputSchemaMapping
Information about the InputSchemaMapping which specified the info about mapping event payload.
InputSchemaMapping
Name
Description
Value
inputSchemaMappingType
Set to 'Json' for type JsonInputSchemaMapping .
'Json' (required)
JsonField
Name
Description
Value
sourceField
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.
string
Name
Description
Value
inputSchemaMappingType
Type of the custom mapping
'Json' (required)
properties
JSON Properties of the input schema mapping
JsonInputSchemaMappingProperties
Name
Description
Value
dataVersion
The mapping information for the DataVersion property of the Event Grid Event.
JsonFieldWithDefault
eventTime
The mapping information for the EventTime property of the Event Grid Event.
JsonField
eventType
The mapping information for the EventType property of the Event Grid Event.
JsonFieldWithDefault
id
The mapping information for the Id property of the Event Grid Event.
JsonField
subject
The mapping information for the Subject property of the Event Grid Event.
JsonFieldWithDefault
topic
The mapping information for the Topic property of the Event Grid Event.
JsonField
Microsoft.EventGrid/domains
Name
Description
Value
location
Location of the resource
string (required)
name
The resource name
string (required)
properties
Properties of the domain
DomainProperties
tags
Resource tags
Dictionary of tag names and values. See Tags in templates
Usage Examples
Azure Verified Modules
The following Azure Verified Modules can be used to deploy this resource type.
ARM template resource definition
The domains resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log .
To create a Microsoft.EventGrid/domains resource, add the following JSON to your template.
{
"type": "Microsoft.EventGrid/domains",
"apiVersion": "2018-09-15-preview",
"name": "string",
"location": "string",
"properties": {
"inputSchema": "string",
"inputSchemaMapping": {
"inputSchemaMappingType": "string"
// For remaining properties, see InputSchemaMapping objects
}
},
"tags": {
"{customized property}": "string"
}
}
Set the inputSchemaMappingType property to specify the type of object.
For Json , use:
{
"inputSchemaMappingType": "Json",
"properties": {
"dataVersion": {
"defaultValue": "string",
"sourceField": "string"
},
"eventTime": {
"sourceField": "string"
},
"eventType": {
"defaultValue": "string",
"sourceField": "string"
},
"id": {
"sourceField": "string"
},
"subject": {
"defaultValue": "string",
"sourceField": "string"
},
"topic": {
"sourceField": "string"
}
}
}
Property Values
DomainProperties
Name
Description
Value
inputSchema
This determines the format that Event Grid should expect for incoming events published to the domain.
'CloudEventV01Schema' 'CustomEventSchema' 'EventGridSchema'
inputSchemaMapping
Information about the InputSchemaMapping which specified the info about mapping event payload.
InputSchemaMapping
Name
Description
Value
inputSchemaMappingType
Set to 'Json' for type JsonInputSchemaMapping .
'Json' (required)
JsonField
Name
Description
Value
sourceField
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.
string
Name
Description
Value
inputSchemaMappingType
Type of the custom mapping
'Json' (required)
properties
JSON Properties of the input schema mapping
JsonInputSchemaMappingProperties
Name
Description
Value
dataVersion
The mapping information for the DataVersion property of the Event Grid Event.
JsonFieldWithDefault
eventTime
The mapping information for the EventTime property of the Event Grid Event.
JsonField
eventType
The mapping information for the EventType property of the Event Grid Event.
JsonFieldWithDefault
id
The mapping information for the Id property of the Event Grid Event.
JsonField
subject
The mapping information for the Subject property of the Event Grid Event.
JsonFieldWithDefault
topic
The mapping information for the Topic property of the Event Grid Event.
JsonField
Microsoft.EventGrid/domains
Name
Description
Value
apiVersion
The api version
'2018-09-15-preview'
location
Location of the resource
string (required)
name
The resource name
string (required)
properties
Properties of the domain
DomainProperties
tags
Resource tags
Dictionary of tag names and values. See Tags in templates
type
The resource type
'Microsoft.EventGrid/domains'
Usage Examples
The domains resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log .
To create a Microsoft.EventGrid/domains resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.EventGrid/domains@2018-09-15-preview"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
inputSchema = "string"
inputSchemaMapping = {
inputSchemaMappingType = "string"
// For remaining properties, see InputSchemaMapping objects
}
}
})
}
Set the inputSchemaMappingType property to specify the type of object.
For Json , use:
{
inputSchemaMappingType = "Json"
properties = {
dataVersion = {
defaultValue = "string"
sourceField = "string"
}
eventTime = {
sourceField = "string"
}
eventType = {
defaultValue = "string"
sourceField = "string"
}
id = {
sourceField = "string"
}
subject = {
defaultValue = "string"
sourceField = "string"
}
topic = {
sourceField = "string"
}
}
}
Property Values
DomainProperties
Name
Description
Value
inputSchema
This determines the format that Event Grid should expect for incoming events published to the domain.
'CloudEventV01Schema' 'CustomEventSchema' 'EventGridSchema'
inputSchemaMapping
Information about the InputSchemaMapping which specified the info about mapping event payload.
InputSchemaMapping
Name
Description
Value
inputSchemaMappingType
Set to 'Json' for type JsonInputSchemaMapping .
'Json' (required)
JsonField
Name
Description
Value
sourceField
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.
string
Name
Description
Value
inputSchemaMappingType
Type of the custom mapping
'Json' (required)
properties
JSON Properties of the input schema mapping
JsonInputSchemaMappingProperties
Name
Description
Value
dataVersion
The mapping information for the DataVersion property of the Event Grid Event.
JsonFieldWithDefault
eventTime
The mapping information for the EventTime property of the Event Grid Event.
JsonField
eventType
The mapping information for the EventType property of the Event Grid Event.
JsonFieldWithDefault
id
The mapping information for the Id property of the Event Grid Event.
JsonField
subject
The mapping information for the Subject property of the Event Grid Event.
JsonFieldWithDefault
topic
The mapping information for the Topic property of the Event Grid Event.
JsonField
Microsoft.EventGrid/domains
Name
Description
Value
location
Location of the resource
string (required)
name
The resource name
string (required)
properties
Properties of the domain
DomainProperties
tags
Resource tags
Dictionary of tag names and values.
type
The resource type
"Microsoft.EventGrid/domains@2018-09-15-preview"
Usage Examples
Azure Verified Modules
The following Azure Verified Modules can be used to deploy this resource type.