Hello Garrick Hensberg,
Thank you for providing the clarification.
This began happening on Friday (7th March) but was working fine the day before. Nothing has changed with this terraform resource configuration.
It seems that the issue began on Friday, March 7th, although everything was functioning correctly the day before. Importantly, there have been no changes to the Terraform resource configuration.
Reflecting on your initial observations, I understand that you were previously able to create an alert without any issues. However, you are now encountering an error related to the alert name ("xxx-alert").
You've mentioned that changing the alert rule name allows you to successfully create a new alert within the current subscription. Interestingly, you are able to use the original alert name in other subscriptions without any problems. This suggests the possibility that an alert rule with the name "xxx-alert" might still exist in the current resource group.
To address this, I recommend checking for any existing alert rules with the same name in the current resource group. If you locate an alert rule with the name "xxx-alert," please delete it and attempt to create a new one using the same configuration.
Here are the steps to identify any hidden alert rules within the resource group:
- Go to the Azure portal.
- Navigate to your target Resource Group.
- Click on "Overview" and search for "Alerts."
- Ensure that you enable the "Show hidden types" option.
If you find an alert rule with the same name, please proceed to delete it.
I hope this resolves the issue. Please feel free to reach out if you have any further questions or require additional assistance. I'm here to help.
If this solution is helpful, please "Upvote" it, as it may benefit other community members.
Thank you.