You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,24 +116,40 @@ Execute the following command, if you don't have any pre-existing Azure services
116
116
1. Run `azd up` - This will provision Azure resources and deploy this sample to those resources, including building the search index based on the files found in the `./data` folder.
117
117
* You will be prompted to select two locations, one for the majority of resources and one for the OpenAI resource, which is currently a short list. That location list is based on the [OpenAI model availability table](https://learn.microsoft.com/azure/cognitive-services/openai/concepts/models#model-summary-table-and-region-availability) and may become outdated as availability changes.
118
118
1. After the application has been successfully deployed you will see a URL printed to the console. Click that URL to interact with the application in your browser.
119
-
120
119
It will look like the following:
121
120
122
121

123
122
124
-
> NOTE: It may take a minute for the application to be fully deployed. If you see a "Python Developer" welcome screen, then wait a minute and refresh the page.
123
+
> NOTE: It may take 5-10 minutes for the application to be fully deployed. If you see a "Python Developer" welcome screen or an error page, then wait a bit and refresh the page.
125
124
126
125
### Deploying with existing Azure resources
127
126
128
-
If you already have existing Azure resources, you can re-use those by setting `azd` environment values. For example:
127
+
If you already have existing Azure resources, you can re-use those by setting `azd` environment values.
128
+
129
+
#### Existing OpenAI resource
129
130
130
131
1. Run `azd env set AZURE_OPENAI_SERVICE {Name of existing OpenAI service}`
131
132
1. Run `azd env set AZURE_OPENAI_RESOURCE_GROUP {Name of existing resource group that OpenAI service is provisioned to}`
132
133
1. Run `azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT {Name of existing ChatGPT deployment}`. Only needed if your ChatGPT deployment is not the default 'chat'.
133
134
1. Run `azd env set AZURE_OPENAI_EMB_DEPLOYMENT {Name of existing GPT embedding deployment}`. Only needed if your embeddings deployment is not the default 'embedding'.
134
-
1. Run `azd up` - This will provision the rest of the Azure resources and deploy this sample to those resources, including building the search index based on the files found in the `./data` folder.
135
135
136
-
> NOTE: You can also use existing Search and Storage Accounts. See `./infra/main.parameters.json` for list of environment variables to pass to `azd env set` to configure those existing resources.
136
+
#### Existing Azure Cognitive Search resource
137
+
138
+
1. Run `azd env set AZURE_SEARCH_SERVICE {Name of existing Azure Cognitive Search service}`
139
+
1. Run `azd env set AZURE_SEARCH_SERVICE_RESOURCE_GROUP {Name of existing resource group with ACS service}`
140
+
1. If that resource group is in a different location than the one you'll pick for the `azd up` step,
141
+
then run `azd env set AZURE_SEARCH_SERVICE_LOCATION {Location of existing service}`
142
+
1. If the search service's SKU is not standard, then run `azd env set AZURE_SEARCH_SERVICE_SKU {Name of SKU}`. ([See possible values](https://learn.microsoft.com/en-us/azure/templates/microsoft.search/searchservices?pivots=deployment-language-bicep#sku))
143
+
144
+
#### Other existing Azure resources
145
+
146
+
You can also use existing Form Recognizer and Storage Accounts. See `./infra/main.parameters.json` for list of environment variables to pass to `azd env set` to configure those existing resources.
147
+
148
+
#### Provision remaining resources
149
+
150
+
Now you can run `azd up`, following the steps in [Deploying from scratch](#deploying-from-scratch) above.
151
+
That will both provision resources and deploy the code.
0 commit comments