Skip to content

Invalid Template Deployment #649

@prakhargurawa

Description

@prakhargurawa

InvalidTemplateDeployment

Hi I just performed all the step required which are:

  • Create a new folder and switch to it in the terminal
  • azd auth login
  • azd init -t azure-search-openai-demo
  • In the data folder i changed to my documents (PDF).
  • In the file infra/main.parameters I changed from AZURE_SEARCH_SERVICE_SKU=standard to AZURE_SEARCH_SERVICE_SKU=basic as i need basic version of cognitive search.
  • Finally I am running azd up and it is throwing InvalidTemplateDeployement.
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

  • In the file infra/main.parameters I changed from AZURE_SEARCH_SERVICE_SKU=standard to AZURE_SEARCH_SERVICE_SKU=basic as i need basic version of cognitive search.

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions