azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

How to use existing resources instead of creating new with azd up command

Open ApurvaL opened this issue 2 years ago • 5 comments

Please provide us with the following information:

This issue is for a: (mark with an 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

Any log messages given by the failure

Not able to use the existing azure resources. When trying to follow below steps it again creates new resources but don't use existing one. image

Expected/desired behavior

It should run with existing openAI service, storage account, search service etc without creating it automatically.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

ApurvaL avatar Jun 09 '23 13:06 ApurvaL

I seem to running into the same issue:

InvalidResourceLocation: The resource 'xxxxxxxxxxxxxxx' already exists in location 'eastus' in resource group 'yyyyyyyyyyyy'. A resource with the same name cannot be created in location 'zzzzzzzz'. Please select a new resource name.

cramsey86 avatar Jun 16 '23 02:06 cramsey86

Same for me, tries to create openai resource even with azd env set openAiServiceName.

I also get another issue with code appends ".openai.azure.com" to the openAiServiceName. Our openai endpoint url totally different as it's protected by api gateway.

dumbkid-tom avatar Jun 23 '23 05:06 dumbkid-tom

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.

github-actions[bot] avatar Dec 20 '23 01:12 github-actions[bot]