An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
Hi @kunicki , Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
This can happen sometimes, especially if there are issues with provisioning states. Here’s what you can try to resolve the issue further:
- Confirm Subscription Status: Ensure you have checked whether the associated system topic was indeed deleted properly, as subscriptions can remain orphaned if their topics are deleted incorrectly.
- Use Azure CLI Commands: Since you're receiving a 409 error, you might want to try forcing the deletion using the Azure CLI commands mentioned in the documentation: To delete the event subscription:
To delete the system topic (if it still exists):az eventgrid system-topic event-subscription delete --name <YourEventSubscriptionName> --resource-group <YourResourceGroupName> --system-topic-name <YourSystemTopicName>az eventgrid system-topic delete --name <YourSystemTopicName> --resource-group <YourResourceGroupName> - PowerShell Commands: If CLI doesn’t work, consider using Azure PowerShell commands as another option: To delete an event subscription:
To delete the system topic:Remove-AzEventGridSystemTopicEventSubscription -EventSubscriptionName <YourEventSubscriptionName> -ResourceGroupName <YourResourceGroupName> -SystemTopicName <YourSystemTopicName>Remove-AzEventGridSystemTopic -ResourceGroupName <YourResourceGroupName> -Name <YourSystemTopicName> - Double-check Diagnostic Logs: Enable and check the diagnostic logs for your Event Grid to see if you get any insights about what's going wrong. You can find guidance on how to do that in the documentation below.
- Wait for Provisioning State Change: Occasionally, these issues can resolve themselves after some time—so it’s good to keep an eye on whether the provisioning state updates after some time.