azurerm_data_factory_trigger_custom_event
requires one of subject_begins_with
or subject_ends_with
when the Azure UI / REST API does not
#25929
Milestone
Is there an existing issue for this?
Community Note
Terraform Version
1.6.6
AzureRM Provider Version
3.100.0
Affected Resource(s)/Data Source(s)
azurerm_data_factory_trigger_custom_event
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It should be possible to not set both of
subject_begins_with
orsubject_ends_with
properties, as per the Azure UI, REST API & Documentation:Microsoft Custom Event Schema JSON documentation
See Microsoft ADF custom trigger documentation: https://learn.microsoft.com/en-gb/azure/data-factory/how-to-create-custom-event-trigger#json-schema
Testing with REST API
Indeed, you can test the underlying REST API for the presence & absence of the two parameters & whether they will update the trigger without the properties or not:
GET trigger:
PUT trigger:
Testing in the Azure portal UI
Actual Behaviour
One of
subject_begins_with
orsubject_ends_with
fields are required to be populated with a non empty string.See
terraform-provider-azurerm/internal/services/datafactory/data_factory_trigger_custom_event_resource.go
Line 124 in 9c38efc
Steps to Reproduce
azurerm_data_factory_trigger_custom_event
resource and do not addsubject_begins_with
orsubject_ends_with
properties.Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: