AI-103 Manage, Monitor and Secure Foundry AI Systems: Quotas, Cost, Evaluation, Search Health and Keyless Access
Managing, monitoring and securing an AI system in Microsoft Foundry means keeping its model and agent workloads within quota and budget, watching their quality, drift, safety and grounding over time, keeping the Azure AI Search index behind them healthy and relevant, and making sure every caller authenticates without keys over a private network with least-privilege roles. This lesson covers every skill in the AI-103 task "Manage, monitor, and secure AI systems": TPM quota and 429 handling, deployment types, spillover and cost tracking; the Agent Monitoring Dashboard, evaluations and safety signals; indexer, index-health and relevance diagnostics; and managed identity, keyless credentials, private networking and Foundry role assignments.
What you’ll learn
- Allocate and rebalance TPM quota, and fix HTTP 429 throttling caused by request bursts or temporary platform limits
- Choose Standard, Provisioned or Batch deployments and configure spillover to control throughput and cost
- Attribute and alert on spend with Cost Management project tags and budgets
- Monitor quality, drift and safety with Application Insights, continuous and scheduled evaluations, tracing and content filter signals
- Pick the right RAG evaluator for grounding quality with or without ground truth
- Diagnose indexer failures, search service capacity and relevance scores in Azure AI Search
- Secure Foundry and Azure AI Search with keyless Entra ID auth, managed identities, least-privilege roles and private networking
The 10 parts · about 16 min of reading
- How do quotas and rate limits work for Foundry model deployments?Start hereTPM quota is pooled per subscription, region, model and type; 429s come from bursts in short windows and temporary platform limits.2 min
- Which deployment type fits each cost and throughput need?Standard bills per token, Provisioned reserves PTUs, Batch isolates big jobs; spillover sends provisioned overflow to a standard deployment.2 min
- How do you track and control the cost of AI workloads?Cost Management reports AI spend by meter or by Foundry's automatic project tag; budgets only alert and never cap spending.1 min
- How do you monitor model and agent performance and drift?Application Insights powers the agent dashboard, continuous and scheduled evaluations catch drift, and tracing explains a single run.2 min
- How do you monitor safety events?Log filter actions from HTTP 400 and finish_reason content_filter; monitor live safety with continuous evaluators and score alerts.1 min
- How do you measure grounding quality in a RAG system?Pick RAG evaluators by whether ground truth exists: Groundedness, Retrieval and Relevance need none; Completeness and Document Retrieval do.1 min
- How do you monitor data ingestion and search index health?Indexer execution history names failed documents; maxFailedItems sets tolerance; replicas, partitions and quantization fix capacity.2 min
- How do you diagnose search relevance performance?Use @search.rerankerScore for stable thresholds, since RRF scores shift, and the debug parameter to see hybrid subscores.1 min
- How do you configure keyless credentials, managed identity and role policies?Keyless access uses Entra tokens for ai.azure.com, a managed identity with a least-privilege Foundry role, and disableLocalAuth.2 min
- How do you secure Foundry and Azure AI Search with private networking?Private endpoints with DNS secure inbound Foundry access, VNet injection gives agents outbound reach, and indexers need private paths.2 min
Mind map
How the exam tests this
Questions in this topic are Microsoft associate-style scenarios: a Foundry or Azure AI Search setup, a symptom or requirement, and a constraint such as least privilege, no stored keys, no client code changes, no new private endpoints, no extra cost or keeping guardrails unchanged. Expect to diagnose 429 throttling from metrics, rebalance quota, pick a deployment type for cost and latency, configure spillover, and attribute or alert on spend. Monitoring items ask which signal, evaluator, evaluation type, dashboard prerequisite or log answers a question, including content filter response codes and RAG evaluators with or without ground truth. Search items cover indexer execution history and failure tolerance, replicas versus partitions, vector index quota, diagnostic settings and relevance scores. Security items ask for the token scope, credential class, managed identity type and selection, the least-privilege Foundry or Search role, private DNS for on-premises clients, agent virtual network injection and indexer access to firewalled storage. Some items complete short Python snippets, and several are select-two.
Key takeaways
- Quota is a TPM pool per subscription, region, model and deployment type; free capacity by lowering another deployment of the same model, because new resources don't add quota.
- The rate limiter counts actual input and generated tokens (max_tokens reserves nothing) and enforces RPM over 1–10 second windows; fix 429s with paced sends and backoff with jitter.
- Provisioned gives predictable throughput and cost, Batch halves the price for work that can wait a day on separate quota, and spillover sends PTU overflow to a same-resource, same-version standard deployment.
- Budgets alert on actual or forecasted spend but never cap it; per-project chargeback uses Foundry's automatic project tag in Cost Management.
- Application Insights powers the Agent Monitoring Dashboard and tracing; continuous evaluation scores live traffic (project identity needs Foundry User), scheduled evaluation scores a fixed dataset to catch drift.
- A filtered prompt returns HTTP 400 content_filter, a filtered completion returns finish_reason content_filter, and an error inside content_filter_results means the filter didn't run.
- Without ground truth use Groundedness (answer vs context) and Retrieval (context vs query); with labels add Response Completeness and Document Retrieval.
- Per-document indexing failures live in the indexer's execution history; maxFailedItems -1 keeps a run going past bad files; replicas fix query throttling, partitions fix storage.
- Filter weak chunks on @search.rerankerScore (0–4), not the RRF @search.score, and use debug to see hybrid subscores.
- Keyless = managed identity + Foundry role + disableLocalAuth, with tokens for https://ai.azure.com/.default; user-assigned identities need AZURE_CLIENT_ID set to their client ID.
Part 1: How do quotas and rate limits work for Foundry model deployments?
TPM quota is pooled per subscription, region, model and type; 429s come from bursts in short windows and temporary platform limits.
Frequently asked questions
Why does an Azure OpenAI deployment in Foundry return 429 errors when token usage looks low?
Token usage metrics show billed tokens from successful requests, while the rate limiter counts actual input and generated tokens and enforces requests per minute over short windows of about 1 to 10 seconds. Bursts inside those windows, rejected requests that still count, or a temporary platform reduction on shared Standard capacity can therefore trigger 429s while metrics stay low. A high max_tokens reserves nothing against the limit. Spread requests evenly, compare x-ratelimit-limit-tokens with your TPM, and retry after retry-after-ms with exponential backoff and jitter.
Does a Cost Management budget stop Foundry model spending when it is exceeded?
No. Azure budgets only send notifications when actual or forecasted cost crosses a threshold; they never stop, throttle or cap resources, and Azure OpenAI has no hard spending limit. The only way to cap consumption is to reduce TPM quota, which limits throughput and causes HTTP 429 responses for callers.
What is the difference between continuous and scheduled evaluation in Microsoft Foundry?
Continuous evaluation samples live agent responses as they complete and scores them, so it reflects real production traffic. Scheduled evaluation runs on a fixed recurrence and can score the same curated dataset every time, which makes it the way to detect quality drift. Both write results to the project's Application Insights and can trigger alerts on evaluation scores.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.