Error: creating/updating Event Subscription: "): eventgrid.EventSubscriptionsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidRequest" Message="The specified EventDeliverySchema value \"CustomInputSchema\" cannot be used in combination with the topic's input schema of EventGridSchema."
│
│ with module.eventpipeline.azurerm_eventgrid_event_subscription.eventpipeline_eventgrid_topic_subscription_eventhub,
│ on ../../modules/eventpipeline/eventgrid_resources.tf line 16, in resource "azurerm_eventgrid_event_subscription" "eventpipeline_eventgrid_topic_subscription_eventhub":
│ 16: resource "azurerm_eventgrid_event_subscription" "eventpipeline_eventgrid_topic_subscription_eventhub" {
Expected Behaviour
this scenario works when creating from azure portal
Actual Behaviour
Error - The specified EventDeliverySchema value \"CustomInputSchema\" cannot be used in combination with the topic's input schema of EventGridSchema.
Thanks @vinayreddyav for raising this issue. The resource provider azurerm_eventgrid_event_subscription is to create the event grid event subscription not the subscription under topics.
Is there an existing issue for this?
Community Note
Terraform Version
1.3.0
AzureRM Provider Version
3.10.0
Affected Resource(s)/Data Source(s)
azurerm_eventgrid_event_subscription
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
this scenario works when creating from azure portal
Actual Behaviour
Error - The specified EventDeliverySchema value \"CustomInputSchema\" cannot be used in combination with the topic's input schema of EventGridSchema.
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response