Welcome to Microsoft Q&A Forum. Thanks for posting your query here!
From the above provided information, we see that there could be an issue with POST method not working in your Azure Template Spec UI definition.
Please try and check the below suggestions to troubleshoot the issue:
- Check if there have been any recent changes to the API version you are using (
2023-05-01
). - Ensure that the request format is correct. The body of the request should match the expected schema for the
checkNameAvailability
endpoint. Double-check the required fields and their types. Ensure that the value forname
is being correctly passed from your template - Also, make sure to check the authentication token which is being used should have the necessary permissions to call the
checkNameAvailability
API. If there are any recent changes to the permissions or roles assigned to the service principal or user, it may also cause the due to Authorization failures. This generally requires at leastReader
role to access to the subscription. - Please implement error handling in your code to capture any error messages returned by the API. This can provide insights into what might be going wrong.
- If there are any recent changes made in API version or endpoint has changed, update your template accordingly.
Hope the above suggestions helps in resolving the issue. Please do let us know if the issue is resolved or still persists, we will be glad to assist you closely.
Please do consider to Upvote wherever the information provided helps you, this can be beneficial to other community members.