Closed TBaxo closed 9 months ago
Some extra info:
I'm an idiot. I just noticed that the specific error mentions the the specific resource it's trying to place in the url. In this case the eventGridFilters
:
After referring back to the original ARM template I noticed that I had messed up the filters, or in my case the included_event_types
. So my terraform should have been this:
resource "azurerm_eventgrid_system_topic_event_subscription" "serverless" {
name = "${local.resource_prefix}-serverless-iot-evgs"
resource_group_name = var.eventgrid_system_topic_resource_group_name
system_topic = var.eventgrid_system_topic_name
azure_function_endpoint {
function_id = "${data.azurerm_linux_function_app.example.id}/functions/IoTTelemetryTrigger"
max_events_per_batch = 1
preferred_batch_size_in_kilobytes = 64
}
retry_policy {
event_time_to_live = 1440
max_delivery_attempts = 30
}
included_event_types = ["Microsoft.Devices.DeviceTelemetry"]
advanced_filtering_on_arrays_enabled = true
}
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.4.6
AzureRM Provider Version
3.90.0
Affected Resource(s)/Data Source(s)
azurerm_eventgrid_system_topic_event_subscription
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It should create the subscription for the system topic provided
Actual Behaviour
Errors and doesn't create the event subscription
Steps to Reproduce
Important Factoids
Using IotHub System Topic
References
No response