File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,28 @@ If you've changed the infrastructure files (`infra` folder or `azure.yaml`), the
174
174
175
175
``` azd up ```
176
176
177
+ ### Examples of an azd deployment reusing an existing OpenAI and Azure Cognitive Search resources
178
+
179
+ ``` shell
180
+ azd auth login
181
+ azd init -t Azure-Samples/azure-search-openai-demo-java.
182
+
183
+ azd env set AZURE_RESOURCE_GROUP " openai-test-resource-group" # Target resource group for the new resources
184
+ azd env set AZURE_LOCATION " eastus" # Target region for the new resources
185
+
186
+ azd env set AZURE_OPENAI_SERVICE " my-openai-test-service" # Name of the OpenAI service
187
+ azd env set AZURE_OPENAI_RESOURCE_GROUP " my-openai-test-resource-group" # Resource group where the OpenAI service is deployed
188
+ azd env set AZURE_OPENAI_SERVICE_LOCATION " eastus2" # Region of the OpenAI service
189
+ azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT " gpt-35-turbo" # The "Deployment name" of the deployed model, deployed in the Azure OpenAI studio
190
+ azd env set AZURE_OPENAI_EMB_DEPLOYMENT " text-embedding-ada-002" # The "Deployment name" of the deployed model, deployed in the Azure OpenAI studio
191
+
192
+ azd env set AZURE_SEARCH_SERVICE " my-acs-test-service" # Name of the ACS service
193
+ azd env set AZURE_SEARCH_SERVICE_RESOURCE_GROUP " my-acs-test-resource-group" # Resource group where the ACS service is deployed
194
+ azd env set AZURE_SEARCH_SERVICE_LOCATION " eastus2" # Region of the ACS service
195
+
196
+ azd up
197
+ ```
198
+
177
199
### Running locally
178
200
179
201
1 . Run ` az login `
You can’t perform that action at this time.
0 commit comments