This post is a quick update to walk through the new flow. If you read the previous one, think of this as the easier path I wish I had the first time round. If you have not seen the original, you can find it here: Integrating Microsoft Foundry with OpenClaw: Step by Step Model Configuration | Microsoft Community Hub
You will need the Azure CLI (azure-cli) installed on your machine. The official install guide for Linux is here: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest
I am on Linux so I went the Homebrew route, which keeps things simple. The formula is here: https://formulae.brew.sh/formula/azure-cli
Microsoft also has official docs covering the Homebrew/Linuxbrew install: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-macos?view=azure-cli-latest#install-with-homebrew
Once Homebrew is ready, run this in your terminal:
brew install azure-cli
Before this update, every Foundry model you wanted to use in OpenClaw needed its own API key and endpoint pasted into the config. It worked, but it was tedious, and keys are easy to leak if you are copying them around. The Azure AD path solves both problems. You authenticate as yourself (or a service principal), OpenClaw asks Azure for the list of Foundry resources you have access to, and it brings the models in automatically.
A device-code OAuth handshake replaces the old static-API-key flow. OpenClaw delegates auth to the local Azure CLI; the CLI handles the browser-side sign-in, holds the resulting tokens, and refreshes them silently. OpenClaw then walks the Azure resource graph, subscriptions → Foundry resources → model deployments and registers each model into its own config. No API keys move through OpenClaw at any point.
Start with the command to onboard openclaw as if you were setting up OpenClaw for the first time:
openclaw onboard
Kick things off with the OpenClaw onboard command, the same one you would use when setting up OpenClaw for the first time. When it prompts you, choose update values.
Next, you will be asked to configure your models. Scroll down a little and you will see Microsoft Foundry listed as a supported provider. Pick it.
From here, you have two options. You can sign in with an API key, which is what I covered in the previous blog post, or you can sign in through Azure AD. The Azure AD path is easier and more secure, so that is the one we will use.
OpenClaw will give you a URL and a device code. Copy the URL into your browser and use the code to complete the sign in. (This is where the az CLI from the pre-requisite section earns its keep.)
If everything worked, you should see a success prompt similar to this:
Once you are signed in, OpenClaw will ask you to pick the Azure subscription that your Microsoft Foundry resource lives in. Pick the subscription, then pick the Foundry resource where your models are deployed.
And that is pretty much it. All the models you have deployed to that Foundry resource get pulled into OpenClaw automatically. Compared to the old way of pasting API keys and endpoints one by one, this is a huge time saver, and you do not have to babysit any keys.
From here you can start using your Foundry-deployed models inside OpenClaw straight away:
The Azure AD sign-in option in OpenClaw is one of those small updates that quietly removes a real pain point. If you have ever juggled multiple Foundry endpoints and rotated keys across them, you already know why. With this flow, you sign in once, your models show up, and you can get back to actually building.
If you have not tried OpenClaw with Microsoft Foundry yet, this is a good time to give it a go. And if you were holding off because of the key management overhead, that excuse is gone now.
Previous post on integrating Microsoft Foundry with OpenClaw using API keys: Integrating Microsoft Foundry with OpenClaw: Step by Step Model Configuration | Microsoft Community Hub
Install the Azure CLI on Linux: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest
Install the Azure CLI on macOS: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-macos?view=azure-cli-latest#install-with-homebrew
Homebrew formula for azure-cli: https://formulae.brew.sh/formula/azure-cli
This article assumes you already have an Azure Foundry project and resource deployed in Microsoft Foundry. The options referenced here are documented in detail in the linked articles; this post serves as a consolidated step by step guide bringing them all together and explaining where each option is most useful.
A Summary:
|
Need |
Best Option |
|
Quick day-over-day visual, minimal setup |
Grafana Dashboard (Option 3) |
|
Custom growth % calculations |
App Insights + KQL in Log Analytics (Option 4) |
|
Shareable, interactive report |
Azure Workbooks (Option 5) |
|
Per-user/per-agent granularity |
APIM + App Insights (Option 6) |
|
Quick one-off chart, export to Excel |
Microsoft Foundry Monitor tab or App Insights Metrics Explorer (Option 1 and 2) |
If you have models deployed in Microsoft Foundry and would like to monitor its usage, go to the New Foundry Portal → Build → Models → Monitor tab.
View metrics such as:
This is the simplest way to monitor both model and agent usage.
For PAYG plans:
You can also view your total allocated quota (and figure out which Tier you are on) using the Quota Management Screen (New Foundry Portal → Operate → Quota tab).
This screen shows how much your total allocated quota is, per model in a given subscription + region + Deployment Type (Global, Data Zones or Regional). For eg., in the image below, for gpt-4o, I am allocated 7M total TPM in my subscription. I am only using 150K TPM of the allocated 7M TPM amount.
Which means, my requests will get throttled if I exceed the 150K TPM limit. To avoid throttling, I would need to increase my shared allocation limit.
NOTE: you are charged for usage, so if you allow more capacity, you use more, so you pay more.
This is already built into the Azure Portal and gives you time-series charts out of the box.
Tip: You can pin these charts to an Azure Dashboard for a persistent view, or click Share → Download to Excel to get the raw data for your own analysis.
This is the best option for a polished, real-time, day-over-day dashboard with no custom code. There's a pre-built AI Foundry dashboard ready to import. [grafana.com], [Create a M...ed Grafana]
How to set it up:
Token trends over time (inference, prompt, completion — day over day)
Request trends over time (AzureOpenAIRequests as a time series)
Latency trends (bonus)
NOTE: Default time range is 7 days — adjust to 30/60/90 days for growth trends
If you want fully custom day-over-day growth calculations (e.g., % change day-to-day), this is the way. [azurefeeds.com]
Setup:
Same view but showing a chart:
Export options:
Another way to get the above graphs are via Log Analytics. Simply enable Diagnostic Settings on your Azure OpenAI resource → send to a Log Analytics workspace. Open Log Analytics → Logs and try our your sample queries.
Sample KQL for day-over-day token usage (adjust to your needs):
AzureMetrics | where MetricName in ("TokenTransaction", "ProcessedPromptTokens", "GeneratedTokens") | where TimeGenerated > ago(30d) | summarize DailyTokens = sum(Total) by bin(TimeGenerated, 1d), MetricName | order by TimeGenerated asc | render timechartResult:
Sample KQL for day-over-day growth % (adjust to your needs):
AzureMetrics | where MetricName == "TokenTransaction" | where TimeGenerated > ago(30d) | summarize DailyTokens = sum(Total) by Day = bin(TimeGenerated, 1d) | sort by Day asc | extend PrevDay = prev(DailyTokens) | extend GrowthPct = round((DailyTokens - PrevDay) / PrevDay * 100, 2) | project Day, DailyTokens, GrowthPctWorkbooks let you build interactive, parameterized dashboards that combine metrics and KQL logs.
What's more, you can select resources from multiple subscriptions and visualize them all in one place using Workbooks!
4. Save and share with your team.
1. If your app routes requests through Azure API Management, you can use the azure-openai-emit-token-metric policy to send per-request token metrics to Application Insights with custom dimensions (User ID, Subscription ID, Agent, etc.). [Azure API...osoft Docs]
This is ideal for scenarios like:
NOTE: Microsoft Foundry resources do not track usage by users. So, fronting your Foundry resource with an APIM could be a way to track users provided you pass the username/id in the request context. How you implement this is upto your app design.
Bonus: Check out all other APIM + AI related policies here:
AI-Gateway/labs/semantic-caching at main · Azure-Samples/AI-Gateway
AI-Gateway/labs/token-rate-limiting at main · Azure-Samples/AI-Gateway
Composer 2.5 narrows the gap with frontier coding models on key benchmarks while Cursor touts dramatic token‑efficiency at a fraction of the cost. Enterprise strategy is shifting toward harness‑first platforms and agent orchestration, capturing long‑running context, persistent memories, and post‑training improvements to rival model labs. Security research around Mythos Preview shows models synthesizing and refining exploit chains into functional proofs, prompting Cloudflare warnings about a novel class of model‑generated risk as companies operationalize agent tooling.
The AI Daily Brief helps you understand the most important news and discussions in AI.
Subscribe to the podcast version of The AI Daily Brief wherever you listen: https://pod.link/1680633614
Get it ad free at http://patreon.com/aidailybrief
Learn more about the show https://aidailybrief.ai/
How will Apple follow up on any AI announcements made at WWDC later in June, after Google held its Google I/O keynote? Some leaks of iOS 27's new design could be exciting for a lot of users. And the iPhone 17 is driving Apple's market share within the US, as the overall US smartphone market has declined.
Picks of the Week
Hosts: Leo Laporte, Andy Ihnatko, Jason Snell, and Christina Warren
Download or subscribe to MacBreak Weekly at https://twit.tv/shows/macbreak-weekly.
Join Club TWiT for Ad-Free Podcasts!
Support what you love and get ad-free audio and video feeds, a members-only Discord, and exclusive content. Join today: https://twit.tv/clubtwit
Sponsors:
In this episode, Andy welcomes back Marcus Buckingham, bestselling author and researcher, to discuss his new book, Design Love In: How to Unleash the Most Powerful Force in Business. For 25 years, Marcus studied the most productive teams, loyal customers, and effective leaders in the world, and the word that kept appearing in his data was one he kept changing: love.
Andy and Marcus explore what love actually means in a business context, including how leaders are really experience makers whether they know it or not. You will hear the remarkable story of Josh D'Amaro, the CEO of Disney, and what his leadership reveals about designing love into a team's daily experience. Marcus unpacks the five feelings that lead people to say they love working for a leader, starting with something counterintuitive: control. The conversation also covers tough love, AI's limits as an experience maker, and how these principles can transform how we lead our families too.
If you're looking for a fresh, evidence-based look at what drives sustained high performance, this episode is for you!
You can learn more about Marcus and his work at BuckinghamInstitute.com.
For more learning on this topic, check out:
You can chat directly with PMeLa—the podcast's AI persona—to get episode recommendations and answers to your project management and leadership questions. Visit PeopleAndProjectsPodcast.com/PMeLa to chat with her.
If you or someone you know is thinking about getting PMP certified, we've put together a helpful guide called The 5 Best Resources to Help You Pass the PMP Exam on Your First Try. We've helped thousands of people earn their certification, and we'd love to help you too. It's totally free, and it's a great way to get a head start.
Just go to 5BestResources.PeopleAndProjectsPodcast.com to grab your copy. I'd love to help you get your PMP this year!
I know you want to be a more confident leader–that's why you listen to this podcast. LEAD52 is a global community of people like you who are committed to transforming their ability to lead and deliver. It's 52 weeks of leadership learning, delivered right to your inbox, taking less than 5 minutes a week. And it's all for free. Learn more and sign up at GetLEAD52.com. Thanks!
Thank you for joining me for this episode of The People and Projects Podcast!
Talent Triangle: Power Skills
Topics: Leadership, Love in Business, Team Culture, Employee Engagement, Customer Experience, Project Management, AI, Artificial Intelligence, Parenting, Organizational Culture, Experience Design
The following music was used for this episode:
Music: Summer Morning Full Version by MusicLFiles
License (CC BY 4.0): https://filmmusic.io/standard-license
Music: Tuesday by Sascha Ende
License (CC BY 4.0): https://filmmusic.io/standard-license