Skip to content

Commit 32fc331

Browse files
authored
Merge pull request #24 from johnoliver/azd-docs
Add examples of azd deployments
2 parents 4cb4cf4 + 5a3d669 commit 32fc331

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,28 @@ If you've changed the infrastructure files (`infra` folder or `azure.yaml`), the
174174

175175
```azd up```
176176

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+
177199
### Running locally
178200

179201
1. Run `az login`

0 commit comments

Comments
 (0)