Sagnik Mukherjee Greetings & Welcome to Microsoft Q&A forum!
I am getting this error every time I try to deploy my prompt from Azure AI Foundry for my Chatbot, not sure how to resolve, I have checked in the service providers in Subscription that both Cognitive Search & Machine Learning are both registered. Every time the deployment fails, would really like to know the solution.
Are you following any documentation for the steps? Did you check this Deploy an enterprise chat web app already?
I understand that you have already added both the Cognitive Search & Machine Learning service providers in Subscription.
The error message is indicating that there is a previous deployment which is not completed. It seems like the endpoint creation itself failed and the process went on to delete the endpoint that it started provisioning. It could be an intermittent issue that could cause this, could you retry again with a different name to check if this goes through?
Even after retry, if you are still encountering this issue, Please follow the below steps to ensure the prompt flow endpoints are deployed from the studio.
- Delete the failed deployment.
- Make sure to re-register the resource provider
Microsoft.PolicyInsights
in subscription pane from Azure portal. - And then recreate the endpoint.
Please add Microsoft.Cnd along with Microsoft.PolicyInsights to your Subscription Resource Provider and see if that solves your issue.
Go to Azure Portal --> Select your Subscription --> Select Settings --> Select Resource Providers
Make sure you add Microsoft.PolicyInsights and Microsoft.Cnd policies. Refresh and retry deployment.
See Reference for similar issue.
Do let me know if that helps or have any further queries.