Hello Richard .
To resolve a "Bad Request" error when attempting to unsubscribe an Azure Synapse trigger, ensure the trigger is in a stopped state before proceeding.
Follow these steps:
- Verify the Trigger's State:
Check the current state of your trigger:
az synapse trigger show --workspace-name agr-synapse-wp-prod --name NetSuiteImport_Customer
Check the properties.runtimeState in the output. If it's "Started," you'll need to stop the trigger.
- Stop the Trigger:
To stop the trigger, execute:
az synapse trigger stop --workspace-name agr-synapse-wp-prod --name NetSuiteImport_Customer
Ensure the operation completes successfully.
- Unsubscribe from the Event:
Once the trigger is stopped, proceed to unsubscribe:
Feel free to reach out if you have any further questions, and if this answer helped resolve your issue, kindly mark it as accepted.
Thanks,
Pradeep