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
6.03k stars 4.13k forks source link

How to change the azure subscription to a new one #1606

Open mdeodharmhainc opened 5 months ago

mdeodharmhainc commented 5 months ago

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
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I tried to change my subscription to a new subscription. But it is failing; how can I fix that? There is no documentation that mentions "how to chnage subscription of your deployment" . azd up keeps on deploying to old subscription.

Any log messages given by the failure

Expected/desired behavior

OS and Version?

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

azd version?

azd version 1.9.0

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

pamelafox commented 5 months ago

Hm, I've never tried to redeploy an existing environment into a different subscription. I would recommend making a new azd environment instead, since all your resources will be changing anyway. You can do that using "azd env new": https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/reference#azd-env-new

We can put that explicitly in the README somewhere if you have an idea for where would be a good spot.

mdeodharmhainc commented 5 months ago

A Basic question Here is the output from my azd up command

Provisioning Azure resources (azd provision) Provisioning Azure resources can take some time.

Subscription: Enterprise Dev/Test (e9e9395f-004e-4e61-99a2-08a0347d5b14) Location: East US

You can view detailed progress in the Azure Portal: https://portal.azure.com/#view/HubsExtension/DeploymentDetailsBlade/~/overview/id/%2Fsubscriptions%2Fe9e9395f-004e-4e61-99a2-08a0347d5b14%2Fproviders%2FMicrosoft.Resources%2Fdeployments%2FAZE-RG-OPENAIMD-U-1715819065

(✓) Done: Resource group: rg-AZE- (✓) Done: App Service plan: plan- (✓) Done: Log Analytics workspace: log- (✓) Done: Storage account: (✓) Done: Application Insights: * (✓) Done: Document Intelligence: (✓) Done: Portal dashboard: dash- (✓) Done: Search service: gptkb- | | Creating/Updating resources

Where is this order of deployment defined? If I wanted to not deploy of App Insights; how can I do that?

Milind Deodhar​​​​ Director, Software Engineering Managed Health Care Associates, Inc. 400 Interpace Parkway Building C, Suite 200 Parsippany, NJ 07054 Tel: 973-805-9399 Fax: 855‑850‑2304 Email: @.**@.>

From: Pamela Fox @.> Sent: Friday, May 10, 2024 8:26 PM To: Azure-Samples/azure-search-openai-demo @.> Cc: Milind Deodhar @.>; Author @.> Subject: Re: [Azure-Samples/azure-search-openai-demo] How to change the azure subscription to a new one (Issue #1606)

You don't often get email from @.**@.>. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification CAUTION: This email originated from outside of the organization and may contain links or attachments that are potentially unsafe. Do not click on any links or open any attachments until you confirm with the sender that they sent this email.

Hm, I've never tried to redeploy an existing environment into a different subscription. I would recommend making a new azd environment instead, since all your resources will be changing anyway. You can do that using "azd env new": https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/reference#azd-env-new

We can put that explicitly in the README somewhere if you have an idea for where would be a good spot.

— Reply to this email directly, view it on GitHubhttps://github.com/Azure-Samples/azure-search-openai-demo/issues/1606#issuecomment-2105405816, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBQ3EEUSH72BSNPPPPKN7TLZBVQPZAVCNFSM6AAAAABHQYX5HKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBVGQYDKOBRGY. You are receiving this because you authored the thread.Message ID: @.**@.>>

CONFIDENTIAL: This email, including attached files, may contain confidential information and is intended only for the use of the individual and/or the entity to which it is addressed. If you are not the intended recipient, disclosure, copying, use, or distribution of the information included in this email is prohibited. Please immediately and permanently delete this email and notify the sender.

pamelafox commented 5 months ago

All of that infrastructure is defined in the infra/ folder. Start with main.bicep which shows each of the high level modules. You can remove modules there. However, we also have provided booleans to turn off/on certain things, so for Application Insights, you can turn off like:

azd env set AZURE_USE_APPLICATION_INSIGHTS false

And then run azd up again.