Test the full chain and clean up

Follow one fresh manual from upload to cited answer, then delete the lab resources.

~15 min

Requires

Follow one new manual from upload to answer

Run this from the lab folder to print the Products site URL. Open it and sign in as you did for the upload test.

PowerShell or Bash
echo "https://$(kubectl --kubeconfig ./kubeconfig -n products get service products -o 'jsonpath={.status.loadBalancer.ingress[0].ip}')/"
  1. Upload aurora-trail-lamp.txt as a new product named Aurora Trail Lamp. Find its manualId at /api/products on the Products site.
  2. Wait until this new product shows ready. This confirms the Blob event reached the Function and the new manual was indexed.
  3. In Chat about products, select the new Aurora Trail Lamp from Product. Enter What is the operating temperature range of the Aurora Trail Lamp in degrees Celsius? and click Queue question. Check that the cited passage says −10 to 40 °C and shows the same manual ID. Note the request ID.
  4. Refresh the request page and confirm that the answer and evidence are still there.
Verification One new upload produces a ready manual and a persisted answer citing its temperature range.
Inspect the completed run

View recent AKS events and find the request ID in the worker's completion log.

PowerShell or Bash
kubectl --kubeconfig ./kubeconfig -n products get events --sort-by=.lastTimestamp
kubectl --kubeconfig ./kubeconfig -n products logs deployment/products-chat --tail=40

After the answer appears, use az servicebus queue show to read each queue's active and dead-letter message counts. --namespace-name selects the Service Bus namespace that holds both queues.

PowerShell or Bash
az servicebus queue show --subscription "$SUBSCRIPTION" --resource-group "$GROUP" --namespace-name "$STEM-bus" --name chat-requests --query '{queue:name,active:countDetails.activeMessageCount,deadLetters:countDetails.deadLetterMessageCount}' --output table
az servicebus queue show --subscription "$SUBSCRIPTION" --resource-group "$GROUP" --namespace-name "$STEM-bus" --name chat-replies --query '{queue:name,active:countDetails.activeMessageCount,deadLetters:countDetails.deadLetterMessageCount}' --output table

Run this query in Application Insights → Logs and find the Function trace with the manual ID you noted.

infra/function-logs.kql
// Application Insights Logs. Replace the optional manual filter with the ID
// displayed by Products; do not put passwords or manual text in log queries.
traces
| where timestamp > ago(1h)
| where message contains "manual=" or severityLevel >= 2
| project timestamp, severityLevel, message, operation_Id
| order by timestamp desc

Source: function-logs.kql

Clean up

In a new terminal, load the lab settings first. Check that the group name, subscription ID in id, and workshop-id tag match GROUP, SUBSCRIPTION, and WORKSHOP_ID.

PowerShell or Bash
az group show --subscription "$SUBSCRIPTION" --name "$GROUP" --output json

Review the resources Azure will delete with this group.

PowerShell or Bash
az resource list --subscription "$SUBSCRIPTION" --resource-group "$GROUP" --query '[].{Name:name,Type:type}' --output table

If you created AKS, look up its node resource group before deleting the lab. Azure removes the node group with the cluster. Note the printed name for the final check.

PowerShell · ai200-lab folder
$NODE_GROUP = az aks show --subscription "$SUBSCRIPTION" --resource-group "$GROUP" --name "$STEM-aks" --query nodeResourceGroup --output tsv
echo "NODE_GROUP=$NODE_GROUP"
Bash · ai200-lab folder
NODE_GROUP=$(az aks show --subscription "$SUBSCRIPTION" --resource-group "$GROUP" --name "$STEM-aks" --query nodeResourceGroup --output tsv)
echo "NODE_GROUP=$NODE_GROUP"

When the group and resource list match your lab, submit the deletion and confirm at the Azure CLI prompt. --no-wait returns while Azure deletes the resources. Azure CLI reference

PowerShell or Bash
az group delete --subscription "$SUBSCRIPTION" --name "$GROUP" --no-wait

Confirm the groups are gone

Repeat the group check until it prints false.

PowerShell or Bash
az group exists --subscription "$SUBSCRIPTION" --name "$GROUP" --output tsv

If you looked up a node group, check it too. Use the recorded name for NODE_GROUP if you reopened your terminal.

PowerShell or Bash
az group exists --subscription "$SUBSCRIPTION" --name "$NODE_GROUP" --output tsv
Soft delete and local cleanup

Key Vault has seven days of soft delete retention and App Configuration has one day. After you confirm Azure cleanup, remove the locally generated kubeconfig and TLS files from ai200-lab. Keep the application clones if you want to revisit the code.

You have exercised

Docker/ACR, AKS manifests/probes/rollouts, Flyway + pgvector, Blob/Event Grid/Functions, Service Bus request/reply, identity/configuration/secrets, and grounded RAG.

For your first run: walkthrough checklist. For production changes, indexing or additional exam coverage: reference notes.

Search the workshop