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
+11-14Lines changed: 11 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,8 +61,6 @@ Follow these instructions to deploy this example to your Azure subscription, try
61
61
62
62
If you're executing this from WSL, be sure the Azure CLI is installed in WSL and is not using the version installed in Windows. `which az` should show `/usr/bin/az`.
63
63
64
-
- The [az Bicep tools installed](https://learn.microsoft.com/azure/azure-resource-manager/bicep/install)
65
-
66
64
### 1. :rocket: Deploy the infrastructure
67
65
68
66
The following steps are required to deploy the infrastructure from the command line.
@@ -98,7 +96,7 @@ The following steps are required to deploy the infrastructure from the command l
98
96
1. Create a resource group and deploy the infrastructure.
99
97
100
98
*There is an optional tracking ID on this deployment. To opt out of its use, add the following parameter to the deployment code below: `-p telemetryOptOut true`.*
101
-
99
+
102
100
```bash
103
101
RESOURCE_GROUP=rg-chat-basic-${LOCATION}
104
102
az group create -l $LOCATION -n $RESOURCE_GROUP
@@ -150,11 +148,9 @@ Here you'll test your flow by invoking it directly from the Azure AI Foundry por
150
148
151
149
1. Click **Start compute session**.
152
150
153
-
1.:clock8: Wait for that button to change to *Compute session running*. This may take about five minutes.
154
-
155
-
If you get an error related to pip and dependency resolver, this is because of the temporary workaround you followed in the prior steps, this is safe to ignore.
151
+
1.:clock8: Wait for that button to change to *Compute session running*. This may take about six minutes.
156
152
157
-
*Do not advance until the serverless compute is running.*
153
+
*Do not advance until the serverless compute session is running.*
158
154
159
155
1. Click the enabled **Chat** button on the UI.
160
156
@@ -174,7 +170,7 @@ Here you'll take your tested flow and deploy it to a managed online endpoint.
174
170
175
171
-**Deployment name**: ept-chat-deployment
176
172
-**Virtual machine**: Choose a small virtual machine size from which you have quota. 'Standard_D2as_v4' is plenty for this sample.
177
-
-**Instance count**: 3. This is the recommended minimum count.
173
+
-**Instance count**: 3. *This is the recommended minimum count.*
178
174
-**Inferencing data collection**: Enabled
179
175
180
176
1. Set the following Advanced settings, and click **Next**.
@@ -196,7 +192,7 @@ Here you'll take your tested flow and deploy it to a managed online endpoint.
196
192
197
193
1.:clock9: Wait for the deployment to finish creating.
198
194
199
-
The deployment can take over ten minutes to create. To check on the process, navigate to the **Deployments** screen using the link in the left navigation. Eventually 'ept-chat-deployment' will be on this list and then eventually the deployment will be listed with a State of 'Succeeded'. Use the **Refresh** button as needed.
195
+
The deployment can take over ten minutes to create. To check on the process, navigate to the deployments screen using **Models + endpoints**the link in the left navigation. Eventually 'ept-chat-deployment' will be on this list and the deployment will be listed with a State of 'Succeeded'. Use the **Refresh** button as needed.
200
196
201
197
*Do not advance until this deployment is complete.*
202
198
@@ -215,12 +211,12 @@ Workloads build chat functionality into an application. Those interfaces usually
215
211
```bash
216
212
APPSERVICE_NAME=app-$BASE_NAME
217
213
218
-
az webapp deploy -g $RESOURCE_GROUP -n $APPSERVICE_NAME --type zip --src-url https://raw.githubusercontent.com/Azure-Samples/openai-end-to-end-basic/main/website/chatui.zip
214
+
az webapp deploy -g $RESOURCE_GROUP -n $APPSERVICE_NAME --type zip --src-url https://github.com/Azure-Samples/openai-end-to-end-basic/raw/refs/heads/main/website/chatui.zip
219
215
```
220
216
221
-
> Sometimes the prior deployment will fail with a `GatewayTimeout`. If you receive that error, you're safe to simply execute the command again.
217
+
> Sometimes the prior command will fail with a `GatewayTimeout`. If you receive that error, you're safe to simply execute the command again.
222
218
223
-
## :checkered_flag: Try it out. Test the deployed application.
219
+
## :checkered_flag: Try it out. Test the deployed application
224
220
225
221
After the deployment is complete, you can try the deployed application by navigating to the Web App's URL in a web browser.
226
222
@@ -230,15 +226,16 @@ You can also execute the following from your workstation. Unfortunately, this co
230
226
az webapp browse -g $RESOURCE_GROUP -n $APPSERVICE_NAME
231
227
```
232
228
233
-
Once you're there, ask your solution a question. Like before, you question should ideally involve recent data or events, something that would only be known by the RAG process including content from Wikipedia.
229
+
Once you're there, ask your solution a question. Like before, you question should ideally involve recent data or events, something that would only be known by the RAG process including context from Wikipedia.
234
230
235
231
## :broom: Clean up resources
236
232
237
-
Most Azure resources deployed in the prior steps will incur ongoing charges unless removed. Additionally, a few of the resources deployed go into a soft delete status which may restrict the ability to redeploy another resource with the same name and may not release quota, so it is best to purge any soft deleted resources once you are done exploring. Use the following commands to delete the deployed resources and resource group and to purge each of the resources with soft delete.
233
+
Most Azure resources deployed in the prior steps will incur ongoing charges unless removed. Additionally, a few of the resources deployed go into a soft delete status which will restrict the ability to redeploy another resource with the same name and might not release quota. It's best to purge any soft deleted resources once you are done exploring. Use the following commands to delete the deployed resources and resource group and to purge each of the resources with soft delete.
238
234
239
235
> **Note:** This will completely delete any data you may have included in this example and it will be unrecoverable.
240
236
241
237
```bash
238
+
# These deletes and purges take about 30 minutes to run.
defaultAction: 'Allow'// Production readiness change: This sample uses identity as the perimeter. Production scenarios should layer in network perimeter control as well.
34
34
bypass: 'AzureServices'// Required for AppGW communication if firewall is enabled in the future.
35
+
ipRules: []
36
+
virtualNetworkRules: []
35
37
}
36
38
37
39
tenantId: subscription().tenantId
38
40
39
41
enableRbacAuthorization: true// Using RBAC
40
42
enabledForDeployment: true// VMs can retrieve certificates
41
43
enabledForTemplateDeployment: true// ARM can retrieve values
44
+
accessPolicies: [] // Using RBAC
45
+
publicNetworkAccess: 'Enabled'// Production readiness change: This sample uses identity as the perimeter. Production scenarios should layer in network perimeter control as well.
0 commit comments