Skip to content

Commit f142ec2

Browse files
committed
Add examples of azd deployments
1 parent d7da57f commit f142ec2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

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

142142
```azd up```
143143

144+
### Examples of an azd deployment
145+
146+
#### Example creating new OpenAI and Azure Cognitive Search resources
147+
148+
```shell
149+
azd auth login
150+
azd init
151+
152+
azd env set AZURE_RESOURCE_GROUP "openai-test-resource-group" # Target resource group for the new resources
153+
azd env set AZURE_LOCATION "eastus" # Target region for the new resources
154+
155+
azd up
156+
```
157+
158+
#### Example reusing an existing OpenAI and Azure Cognitive Search resources
159+
160+
```shell
161+
azd auth login
162+
azd init
163+
164+
azd env set AZURE_RESOURCE_GROUP "openai-test-resource-group" # Target resource group for the new resources
165+
azd env set AZURE_LOCATION "eastus" # Target region for the new resources
166+
167+
azd env set AZURE_OPENAI_SERVICE "my-openai-test-service" # Name of the OpenAI service
168+
azd env set AZURE_OPENAI_RESOURCE_GROUP "my-openai-test-resource-group" # Resource group where the OpenAI service is deployed
169+
azd env set AZURE_OPENAI_SERVICE_LOCATION "eastus2" # Region of the OpenAI service
170+
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT "gpt-35-turbo" # The "Deployment name" of the deployed model, deployed in the Azure OpenAI studio
171+
azd env set AZURE_OPENAI_EMB_DEPLOYMENT "text-embedding-ada-002" # The "Deployment name" of the deployed model, deployed in the Azure OpenAI studio
172+
173+
azd env set AZURE_SEARCH_SERVICE "my-acs-test-service" # Name of the ACS service
174+
azd env set AZURE_SEARCH_SERVICE_RESOURCE_GROUP "my-acs-test-resource-group" # Resource group where the ACS service is deployed
175+
azd env set AZURE_SEARCH_SERVICE_LOCATION "eastus2" # Region of the ACS service
176+
177+
azd up
178+
```
179+
144180
### Running locally
145181

146182
1. Run `az login`

0 commit comments

Comments
 (0)