Test the full chain and clean up
Follow one fresh manual from upload to cited answer, then delete the lab resources.
Requires
- You can sign in to Products over HTTPS and upload a manual.
- ProductsEmbedder and its Blob event subscription can index new uploads. The ProductsChat worker is ready and has answered the Cedar Desk Fan test question. Keep the database, model deployments, and queues available for the full test.
- Azure CLI is signed in to your lab subscription with permission to delete the lab group at cleanup. In
ai200-lab, load the lab settings and keep./kubeconfigavailable to print the URL and check the deployment.
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.
echo "https://$(kubectl --kubeconfig ./kubeconfig -n products get service products -o 'jsonpath={.status.loadBalancer.ingress[0].ip}')/"
- Upload aurora-trail-lamp.txt as a new product named Aurora Trail Lamp. Find its
manualIdat/api/productson the Products site. - Wait until this new product shows
ready. This confirms the Blob event reached the Function and the new manual was indexed. - 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.
- Refresh the request page and confirm that the answer and evidence are still there.
Inspect the completed run
View recent AKS events and find the request ID in the worker's completion log.
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.
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.
// 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.
az group show --subscription "$SUBSCRIPTION" --name "$GROUP" --output json
Review the resources Azure will delete with this group.
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.
$NODE_GROUP = az aks show --subscription "$SUBSCRIPTION" --resource-group "$GROUP" --name "$STEM-aks" --query nodeResourceGroup --output tsv
echo "NODE_GROUP=$NODE_GROUP"
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
az group delete --subscription "$SUBSCRIPTION" --name "$GROUP" --no-wait
Confirm the groups are gone
Repeat the group check until it prints false.
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.
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.