Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.91k stars 4.05k forks source link

Invalid Template Deployment #649

Open prakhargurawa opened 1 year ago

prakhargurawa commented 1 year ago

InvalidTemplateDeployment

Hi I just performed all the step required which are:

CaptureInvalid

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I just did all the basic steps which were on repo.

Any log messages given by the failure

Attached screenshot already, but still the text message is:

ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details:
InvalidTemplateDeployment: The template deployment 'openai' is not valid according to the validation procedure. The tracking id is 'ff48d46b-13d3-4d1d-969b-52da9abbd296'. See inner errors for details.
FlagMustBeSetForRestore: An existing resource with ID '/subscriptions/19866297-20c6-4921-b541-e867aeda8d3f/resourceGroups/rg-Tenders-GPT-Bot-dev/providers/Microsoft.CognitiveServices/accounts/cog-mt66akh7fgwb4' has been soft-deleted. To restore the resource, you must specify 'restore' to be 'true' in the property. If you don't want to restore existing resource, please purge it first.
InvalidTemplateDeployment: The template deployment 'formrecognizer' is not valid according to the validation procedure. The tracking id is 'cc971759-8174-4151-ba43-ddd6b865c623'. See inner errors for details.
FlagMustBeSetForRestore: An existing resource with ID '/subscriptions/19866297-20c6-4921-b541-e867aeda8d3f/resourceGroups/rg-Tenders-GPT-Bot-dev/providers/Microsoft.CognitiveServices/accounts/cog-fr-mt66akh7fgwb4' has been soft-deleted. To restore the resource, you must specify 'restore' to be 'true' in the property. If you don't want to restore existing resource, please purge it first.

Expected/desired behavior

I have used this repo thrice for creating 3 different bots and it worked everytime before.

OS and Version?

Windows 10

azd version?

azd version 1.1.0

Mention any other details that might be useful

pamelafox commented 1 year ago

Did you previously deploy this template and take it down? Can you go into Azure Portal and look to see if you have any soft-deleted Cognitive Services accounts that need purging? That's what the error message seems to indicate.

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.