In this episode, I sit down with my boss, Tarek Dawoud, to pull back the curtain on what really happens during a major service outage. Tarek shares some incredible "war stories" from his time in the trenches, from the early days of DirSync where the team had to edit a sync file with a debugger to prevent an incident, to the massive outages of 2017 and 2018 that changed everything. We'll give you a peek into the high-stakes, quick-thinking world of a "live site" incident and reveal the groundbreaking engineering principles like cell-based architecture and the backup authentication service that were born from these challenges, making Entra more resilient than ever before. Subscribe with your favorite podcast player or watch on YouTube ๐ About Tarek Dawoud Tarek Dawoud is a Lead Architect in the Customer Engineering team for Microsoft Entra. With years of experience growing up in Entra engineering, he has been involved in his share of outages and has a deep understanding of what it takes to build and maintain a resilient, hyperscale identity service. LinkedIn - https://www.linkedin.com/in/tarekdawoud/ ๐ Related Links * SLA performance for Microsoft Entra ID - aka.ms/entraidsla * Microsoft Blames "Severe Weather" for Azure Cloud Outage * Microsoft Probes Cause of Global Web Outage * Microsoft's Azure AD authentication outage: What went wrong ๐ Chapters 00:57 What is a "Live Site"? 14:15 The Secret to Entra's Uptime: Cell-Based Architecture 18:09 How Entra Routes Your Login Request Globally 24:46 War Story #1: The 2017 Conditional Access Outage 29:52 War Story #2: How a Hurricane & an Office Bug Caused Chaos 43:39 The Backup Auth Service: Entra's Secret Weapon 57:54 Does the Backup Service Kick in Automatically? 01:04:16 Regional Isolation & The Power of Managed Identity 01:08:17 Anatomy of a Near-Outage in 2021 01:12:02 How Microsoft's Culture Learns From Mistakes Podcast Apps ๐๏ธ Entra. Chat - https://entra.chat ๐ง Apple Podcast โ https://entra.chat/apple ๐บ YouTube โ https://entra.chat/youtube ๐บ Spotify โ https://entra.chat/spotify ๐ง Overcast โ https://entra.chat/overcast ๐ง Pocketcast โ https://entra.chat/pocketcast ๐ง Others โ https://entra.chat/rss Merill's socials ๐บ YouTube โ youtube.com/@merillx ๐ LinkedIn โ linkedin.com/in/merill ๐ค Twitter โ twitter.com/merill ๐บ TikTok โ tiktok.com/@merillf ๐ฆ Bluesky โ bsky.app/profile/merill.net ๐ Mastodon โ infosec.exchange/@merill ๐งต Threads โ threads.net/@merillf ๐ค GitHub โ github.com/merill Get full access to Entra. News - Your weekly dose of Microsoft Entra at entra.news/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Join the ride. Go.
SPEAKER_01I hope we don't jinx it with this. episode of the podcast, Tariq. But yeah, there are lots of cool stories and what happened behind the scenes and how Entra has evolved over the years to address these different things.
And we're super lucky to have Tariq here to talk about that and share all the stories.
SPEAKER_01Tarek, let's kick things off.
SPEAKER_02Yeah. Hi, everyone. My name is Tarek Daoud. I'm a lead architect in the customer engineering team for full disclosure. I am Merrill's boss. He is required, forced to do this.
SPEAKER_01He doesn't want to. He has no choice. Yeah. Tarek said, this episode you're doing this. This is in his connect.
SPEAKER_02He has to do this. And then, yeah, one of the, like, One of my favorite things being in the tech industry, right, is life-size culture. In some ways, it can be a very painful thing, especially it becomes a drag when you have bad life-size culture. Yeah. You get alerts that are not real, noisy, that kind of stuff. But I enjoy real life, which is an outage. And I've been kind of... I grew up in intra-engineering in the MSODS core store.
SPEAKER_02I've been involved in my own share of outages. And you, like... Years later, I'm sure many of your listeners relate to this, like, oh, the domain control incident of 1993. I'm not sure the domain control was in 1993. It becomes a thing you bond over and kind of get close. And one of the things I like the most is the decision-making and the quick thinking that you have to have at that moment. I thrive on that. I enjoy it a lot. I just wanted to bring some stories from...
SPEAKER_02growing up in Entron, specifically tied to customer reasons and why customers should expect better resilience from us. So I will actually lead with some of the fluffy stuff that you see marketing talk about and all this stuff, but to build up to why you should have higher faith.
SPEAKER_01But anyways, that's the intro. So this word live site, I had never heard of it before until I came to Microsoft. I guess OCE, what do they call it? I think in the software engineering world, it's a common terminology. But we just say we are in a war room. I think OCE, Encore Engineer, and then I discovered the DRI, Directly Responsible Individual. Yes. Different people call it different things and different companies like Amazon
SPEAKER_02versus Google versus Microsoft. But to me, yeah, life site means like it's, yeah, there's an outrage going on right now and it's a very different world where your number one priority is mitigation. It's not fixing. It's not root causing. You'll sit on a bridge and people will be like, how did this happen? People will be like, get off the bridge. We'll tell you later. Yeah. you're not helping right now um so it's i i really enjoyed and you create these memories like i'll tell you uh so i was a member of the first
the initial the
SPEAKER_02original the og uh dirsync team right ad connect right interconnect right This is 2008, 2007, 2009. And there was one incident, for example, where we broke Sync for Microsoft specifically. So this is in what we call dog food. So the world is not โ this is deposed before even Office 365. But it's the same Sync engine. And this was based on MIM, for those of you who โ your audience who was familiar with
Microsoft Identity
SPEAKER_02Manager โ And we were so, like, there was a bug in the server-side code that disallowed the sync to continue. So the sync has been stuck for a few hours. Nobody's noticing in corp. People left for the day. And we see it. Because we were running the sync ourselves as an engineering team. And we're like, oh, crap, this thing is down. And then, of course, eventually, IT is going to notice that, you know, changes are not replicating to the cloud. Yeah. There's a problem here. And then we realize it's a server-side bug and,
SPEAKER_02of course, it's going to take the developer hours to code the fix and then get through all the gates to get to production. But we also know that it's the shape of the data. It's a specific value on the way back from the cloud that's making the server barf. So if we hide it somehow on the object coming out... the server will not see the data anymore and will not be worried about the value anymore and will move on with its life and be able to finish the sync. Right. And so we,
SPEAKER_02back then, this is not true anymore, but back then, AD Connect would create an export file before it exports everything. So it would, you know, for those who are familiar with FAMOMIM, it would look at the source, look at the source. In this case, it would look at on-prem AD, look at the cloud, diff the two together, decide what it's going to do, produce a file, And then push the changes out through the file. Now it doesn't do that. It actually does it in, you know, object by object in runtime memory. And so we attached a debugger to the sync box and made it stop
right at the moment
SPEAKER_02when it's about to push the file out and edited the file and removed the properties. And we still laugh about it till today. Every time we meet each other, none of us are on that team anymore, right? And every time we get together, remember when you were editing?
SPEAKER_01Editing the sync, hilarious. So did they do it every 15 minutes? No, just for that one expert to get through for that night while he fixes the code and
SPEAKER_02pushes it to production because it was stuck for like a whole day. So that's why I call it war stories. Like, just like, I mean, obviously not to trivialize, you know, these people who serve in military service, but it becomes like IT people's war stories, you know?
SPEAKER_01Yeah, true. Cool. And at Microsoft for LiveSite, like, I didn't know this, but I mean, it makes sense that there are designated people for, who are always marked as being LiveSite. It's a rotation group.
SPEAKER_02So not the same people always. It's actually every feature team has to basically have a bandwidth, a certain percentage who are the assigned on-call engineers that week or CEs or DRIs. Right. And then they take care of lifecycle while everybody else is working on features. And then for a week, there's one called a primary on-call engineer, a secondary on-call engineer. The primary usually is dealing with outages. Right. The secondary is usually doing with the maintenance work, like, oh, there is a hot patch that needs to be pushed out, or there is a thing that needs to be done on the side,
SPEAKER_02whereas the primary is the one sitting on bridges, troubleshooting. The secondary may be called up if there's two outages, for example. One is a SAF1, one is a SAF2. The primary will go to SAF1, the SAF2 will go to the secondary. And it's a tax you pay. So if you have a team of 10 developers, one will be primary, one will be secondary, eight will be working on regular engineering stuff. And if you're a bigger team, 20, there might be two and three, that kind of stuff. And then the work is not done that week.
So it's not like you're off the hook because the moment you finish your lifestyle,
SPEAKER_02the first thing you have to do... Remember the guy you kicked off the bridge and you told him not to now? You have to do the RCA, the root cause analysis of what the hell happened and repair items and you're going to fix them. Sometimes you own the repair items until you should check them in. You don't just get to say, oh, we should fix this. Someone or open an ADO item and just toss it on someone else. And so depending on the team and the culture, it's a big thing, obviously. And it's one of the things that people don't always appreciate about the rigor of software,
SPEAKER_02And it's fun and it also can be taxing as well, to be fair. And I know that there's also an exec who is also responsible for the week, right?
SPEAKER_01Like he gets pulled in.
SPEAKER_02Yeah, yeah. We have something called, I think I'm trying to remember the name, like an incident manager all up for each big area, like for example, an authentication or directory or whatever there will be kind of. And therefore more to kind of make the bigger decisions. So, for example, if the outage requires that we shut down a service altogether or communicate to 100,000 customers that they're not going to be getting tokens for the next few hours or something big like that, then obviously we require some kind of senior leadership to
sign off on it. And then the highest level is obviously there are changes that we call the big red button where you kind of need to override the safe deployment process to push a
SPEAKER_02hotfix or a security patch real quick and stuff like that. And those need like VP approval, not even the senior incident manager can approve. Got it.
SPEAKER_01Cool.
SPEAKER_02Awesome.
SPEAKER_01Cool. Let's kick things off.
SPEAKER_02So let's jump right in. Yeah.
SPEAKER_01Yeah.
SPEAKER_02And I apologize for people who are listening to the podcast. There's a lot of slides and pictures. I do recommend you watch the YouTube video for this one. But I will also try to describe as much as possible. So we'll start off here by this is the typical kind of, uh, more markety stuff where we talk about entrance availability SLA. We are, we promised a four nine SLA. This is something that I'm proud of personally. Very few SAS vendors offer more than three nights, uh, a SAS networking is different, but like SAS providers,
SPEAKER_02you should offer three nights. We offer four nights and, uh, Fully recognizing that SLA means little when we do have an outage. Like if a customer is taking dependency on us and they're down for an hour, they lose a lot more money than we give them back by paying them back for the one hour that they paid for intra-premium or whatever, right? But to get to 4.9s, we have to run at better than 4.9s. That's kind of the point of the slide here to say is that we publish this publicly. We share how we did every month.
publicly with everybody it's not just a per customer thing it's not internal we also have we do have per customer stuff but we publicly transparency share with the rest of the world how we met our SLA every month and you see here that we're been having a good streak I'm not a very superstitious person I don't do knock on wood
SPEAKER_02and this kind of stuff but You have to be humble. It's not to brag as well because in resilience, the number one โ in resilience, it's security both. And I say this generically for everybody who does a podcast or writes blogs or whatever. Never make fun of your competitors when they have a security incident or outage because you will be next always just by definition, right? So just stay humble, right? But โ This is to say that there is some investment. So this is not just magic. This is actually the SLA.
SPEAKER_02So for those who are not seeing this visually, this is the actual perceived SLA by the customer and the users and the actual success failure rates at our authentication service level, STS, security token service. And we've had blips during that same month that we said we served more than four nights. But the reason is we have these, and this is the heart of the talk today, is we'll talk about a few war stories of Entra and what happened in them, big outages.
But to show how we've learned from them and we have created these systems,
SPEAKER_02these isolations, these backup systems, these kind of constructs, that have allowed us to survive as more and more things have happened since, and we've been able to feel them less. That's the thing. It's not that cables start being cut. It's not that racks stop going down. It's not that they're just going to stop dying. All these still happen. It is just that we've kind of put in these defense in depth kind of measures from a resilience perspective. that have allowed us to arrive with this thing. So I'm going to kind of walk with you,
SPEAKER_02hopefully today, and your audience about three big investments we're going to talk about and see how each of them contributes to this.
SPEAKER_01Any time before we jump in? Yeah, we look at what happened, right? That led to why we did these as well and how these address them.
SPEAKER_02Yes. So especially as we're going through cell-based architecture, we will actually lead with the famous outage of 2015. We'll talk about some of your outages and be like, oh, I remember I was trying to log in that day and I couldn't get my email. Yeah. That's why. So conceptually, this is a resilient slide we share with our customers when they ask us. This is actually a blog also by our VP of engineering, Nadeem, who talked about these eight principles. These principles are actually fairly ubiquitous among Microsoft
services in general.
SPEAKER_02If you talk to an engineering leader from Exchange, from Dynamics, they'll subscribe to most of these. It's just that for each server, sometimes they do something slightly different. So, for example, backup auth service is a very intra-unique specific feature, given the nature of authentication as a problem space. An equivalent of that, for example, on exchange side would be that they have this delayed mailbox replication as a capability, where there's one replica of mailboxes they delay replicating changes to in case there's a massive corruption. So it's like the fallback, the safety.
SPEAKER_02Oh, right. Right? That's a very different feature. We don't have that one, for example. But they, because they're sitting on very important customer data that is stateful data that is very, very important, they actually do that, for example. So each service will have kind of unique kind of innovations and then also kind of these common seven, eight principles that apply all the time. So we'll start with the cell-based architecture one. Which will be the bulk of the talk. And visually, we usually represent it this way.
I don't want you to squint too deeply other than to say that there's a beautiful rainbow chart on the right side of this picture that shows big pie chart with like
SPEAKER_02nothing, no slice bigger than 1-2%. And that is the end message of this, is that there is not more than one or two percent of traffic being served from any specific entra cell at any point in time. We're not putting a lot of eggs in one basket. We're going to talk about what a cell means and how did we arrive at that in the next section. But this is what this picture is like. And what we're doing here today is we're going deep into that little beautiful rainbow, into how actually it โ how do you arrive at that? But to get there,
what I'm going to start with first is actually explaining some fundamentals about
SPEAKER_02how ENTER works, right? Yeah. So, this is specifically kind of generic, inaccurate, very old picture. In fact, some of you who see this visually will recognize this as an old website, so deprecated, it's not there anymore, right? It's just 2020. But the concept I'm trying to show here is that Azure is everywhere. Azure data centers are everywhere. Intra is not everywhere. Intra data centers are only in enough data centers to serve our
customers and
SPEAKER_02traffic per region, per our geo requirements and residency and whatever. So we have a requirement, for example, to serve Japanese customers from Japan. you know, Australian customers from Australia. But, for example, regular customers in APAC, we may have two data centers in APAC or three that serve this traffic, and we don't need to be in every place that Azure is. Same thing in Europe. You see so many data centers in Europe, we don't have as many data centers in ENTRA in Europe. Same thing in North America, right? So that's what this picture is saying. So... What we do have in most Azure data centers is something called
the gateway service,
SPEAKER_02which we will expand upon in a slide or two. That is pretty much kind of our forward proxy that routes traffic to our actual data centers. If you're walking in Morocco and... you decide to hit ENTRA for any reason, get a token, you'll probably hit Spain. That's the closest. Microsoft Azure data center to you, it will likely have a gateway service there. That one will find the nearest ENTRA data center, which may be in France or maybe in Ireland, and go get the tokens from that one and then send them back to you.
SPEAKER_01But that is going through the Azure backbone, right? Exactly.
SPEAKER_02The hub between the Azure data center will be on the backbone. Exactly. And we'll talk more about these kind of routing examples in a second. Another thing I want to explain visually for those who are listening is the concept of the directory layer versus the STS. that kind of Microsoft Entra, and these are old slides, like you see the word AED everywhere. It's very terrifying. But the Microsoft Entra has replicas of your tenant per region.
SPEAKER_02So if you're a U.S. customer or an America's customer, you're generally in the U.S. If you are an EMEA customer, so Europe, Middle East, and Africa, you are generally in Europe. And if you are a customer... East of that, you are generally in APAC, except Japan and Australia, right? And so customers will have, and those will be the stateful services that have your data. And on top of them will be the authentication layer. The thing we're trying to communicate here is that the authentication layer and the directory are not always kind of like, they're not the same service. It's not like when you had a domain control and it was sitting
on top of the DIT
SPEAKER_02file and it was serving authentication and the same thing. They actually could be basically thinking of separate servers. There's one server with the DIT file and another server with minting tokens. Cool. So let's expand on the gateway service. So to understand how the gateway service works and kind of how geolocation works in Intra, we'll walk through an example here. So this is an employee of a company in Japan. He is currently actually traveling in California,
walking around in LA, I don't know.
SPEAKER_02And he requests a token from Antra for whatever reason. What's going to happen is the closest gateways data center to him will pick up the request. And that may be in Los Angeles. There may be an Azure data center in Southern California. They go to Azure LA. Azure LA is where the gateway service is. That one says, okay, I know where the nearest data center to me is. It's in the one in Seattle. So let's say it's going to go to Seattle. That has the intradatabase. Yeah, that's the stack you see here, the US data center, the red one, right?
SPEAKER_02So it hits that one, that's step number two, and it says, hey, can you please, and the gateway service is just a header rewriting service. So you hit login to Microsoft.com. All it does is rewrite that to internalurl.com. And then when you come back with the response, it rewrites the header back and says, hey, login.com is saying, and it gives you back the response. So it hits the authentication service. The authentication service is stateless, as I mentioned. It is an amazing token minting service that can mint tokens like nobody else can, sign keys. It understands how to parse OAuth requests,
SPEAKER_02SAML requests, all that stuff beautifully, but it doesn't contain state. State is actually in the directory service. Okay. Hits the directory service and says, can you give me the artifacts I need to make this decision? So I need the app, I need the conditional access policy, I need the user, I need the blah, blah, blah, blah, blah, the authentication methods. Give me all that stuff so I can start working on. The directory service doesn't have the state of this customer because he's in Japan.
SPEAKER_01He's a user from Japan, right?
SPEAKER_02He's mentioned Japanese customers in Japan. So what it's going to do, though, it's not going to say no. It's not going to say 401. It will actually give a 302 and say, hey, so it has on its side something called a partition table. It has a full table where every other customer is in the world. So it's able to answer and say, here you go. Here is, this customer is actually in data center three. Go there. So then ESCS will send that response back to the gateway.
SPEAKER_02The gateway will try the request against this other data center. This other data center will say, oh, lo and behold, I actually know. What this customer did is it gives the artifacts back. The server serves the request successfully. The gateway will then set a cookie or a session or a cache on its side that says, okay, next time this guy comes back, I don't do this dance again. I don't know where to go. So it doesn't have to keep doing this every time you authenticate.
SPEAKER_01So the gateway has some state that it uses to. Yeah. Caching or cookies. It uses a cookie. Right.
SPEAKER_02Yep. So this is important to understand because the gateway is a huge part of our resilience story. The gateway is not just for this nice, beautiful routing. Think of it as SDN, software-defined networking, right? This is the thing that an engineering manager on our side can decide to say. They used to decide to say, okay, send 1% of traffic here and 12% of traffic there. This is how they can move traffic around. They can say fail everybody from east to west, from north to south. They can move things around without having to go to a router and kind of switch over and do any of that stuff.
SPEAKER_02log into a hub or Cisco or whatever. Nope. None of that stuff. It's very software. It takes care of all that. Makes sense. So it's important to understand it, not just in the geo-runness way, but also in the resilience perspective. And we'll show you how that works in a second. Now that you've explained this, it kind of walked you through these tiers here, right? So the gateway takes you to the STS. Below it, the STS takes you to the DPX. DPX is a directory proxy. Probably most of your audience would not have heard that name before.
SPEAKER_02Yeah, no. It is, think of it as a simplified version of IntraGraph that is focused on what the STS needs. So coming in from MSGraph, you can request users, groups, you can filter by, source with, select, do whatever the hell you want with the directory. This is super optimized for what the STS wants. It's super optimized for queries about the user, the conditional access. They get the results of the authentication requests. That's it. If it starts asking you about admin units, it won't answer.
SPEAKER_02Make sense? So super. And this is also very helpful for your customers to understand about isolation. Graph is isolated from DPX. So when you're hammering away a graph with your bad apps, that does not affect your authentication traffic and vice versa. So it also is beneficial to the customers.
SPEAKER_01Some people ask if I do too much of, you know, Graph API, hit it too much, will it bring down users trying to sign in? That's a common question I get all the time.
SPEAKER_02And the reads are served from a different set of front ends altogether. You are going to get throttled there, but it's not going to impact your users. Users, yeah. Cool. So now that you understand this, and below this, you see the PN, P1, P26. This is the partitions where the customers live. So when you hit the core store, the directory stateful servers that I mentioned, we're not having everyone in a big bucket. It's not a good idea, obviously. They're all in scale units. Each scale unit contains a bunch of customers. You're not alone in your own partition. It's not a domain controller.
I know many of your listeners would be very disappointed to find out that they're
SPEAKER_02not just sitting in a domain controller in the cloud. It is not. It's a truly hyperscale multi-tenant service. And so, but it is still, there's a limit. Yes, we can take on more than one tenant with, you know, even a million users. So to give you a sense of the scale, a single scale unit is about 15 million objects. $15 million, right? So typically, we will let customers, every time a new sign-up comes in, a customer signed up for Dynamics, a customer signed up for Office 365, a customer signed up for Azure. They all keep getting added to that partition until it gets to
$25 million.
SPEAKER_02Once it gets to 25 million, we stop adding new customers to it, we spawn off a new partition, and then that partition is allowed to grow organically, meaning as soon the customers in there will hire more people, add more objects, create groups, the partition has grown. If it starts to run hot, so it's getting close to 40 million or something, maybe we'll start moving customers off of it. This happens silently, behind the scenes, customers don't see it, don't have to file a request for it, none of that stuff. But this to give people an understanding of scale, 50 million is one scale unit, one partition in interim.
SPEAKER_02Cool. Okay. Let's get to the bad stuff. Well, you know, the drama, the war stories, right? The drama, yes. So this is the infamous outage of March 2017. I was on the bridge of that one. Okay. This was a single customer. in West Coast US. I shall not name them. It's not their fault. But I won't name them. I'm not at liberty to name them.
SPEAKER_02But they made a conditional access policy. That's it. That's all they did. They made a conditional access policy that just had a criteria. I don't even remember. It was a group. I think it was a group expansion, right? And so all that was happening... is the request was hitting the STS to get a token for that customer. That user was in scope for the conditional access policy. The STS was asking the DPS to resolve and get me all the artifacts of all the people in scope for this. Is this user in scope or out of scope of this policy? Yes or no, right?
And DPX just asked the directory, CoreStore, can you help me expand this group?
SPEAKER_02And CoreStore was just like taking a long time. It's not that it wasn't answering. It was answering in three seconds.
SPEAKER_01Right. And usually that's how many seconds? Milliseconds.
SPEAKER_02Yeah. Ten milliseconds, 20 milliseconds. Right. So basically it was running hot. It was a very hard question. This is a latent code bug and obviously on our side, right? Performance bug, right? And so, and again, it's past all testing. Nobody found it in anything, but the customer created one CA policy. It's called data shape. As you can see here at the top, it's a shape of the data. It's not always easy to predict the shape of the data. You can always do your best to try and do end-to-end testing and unit testing, but customers will create them.
SPEAKER_02Obviously, like with Gen AI, you can even imagine this 10x. Yeah, it's a unique combination of what data they had in their tenant and the CA policy
SPEAKER_01they created. Yeah. That cost us.
SPEAKER_02So now we have a bug. So the partition is running hard and DPX is waiting on the answer. Okay. So... Some of the requests, because this one is taking too long, waiting on the answer, ESDS starts asking, the other side fails over. And now I'm going to pause here for a second and talk about the pairing architecture. So, what folks see in the picture here, and for those of you who are not or just listening... is we're showing four data centers with a service deployed in them,
SPEAKER_02and the front ends and the back ends of the service are paired. So the front ends in the east and south are paired together, or west and south are paired together, and the back ends are paired together, and then the front ends of north and east are paired together, and the back ends are paired together. This is called the pairing. This is actually recommended. This is what Microsoft, if you were deploying a new app in Azure, front ends and back end, your CSAs, your cloud solution architects would tell you, do this if you want high availability. Don't just put all your eggs in one basket.
SPEAKER_02Don't deploy the app only in ECOS 2. Yeah, not in one region.
SPEAKER_01Exactly.
SPEAKER_02If ECOS 2 goes down, you're down. So please deploy it in ECOS 2 and ECOS 3 and maybe pair them together with load balancing so you push people around between the two of them as you wish. So we've done that. We've done our whole โ we actually did all that in this example here. And yet, we're starting to get in trouble now. So as the โ So it starts sending the load to the โ so the ESTs starts sending the
SPEAKER_01load to the other one or is it the gateway service that says โ Well, in this case, it's ESTS. So Gateway will start sending things around if ESTS is not responding to it.
SPEAKER_02But this one, it's ESTS trying the DPS next to it and saying, hey, and it's running out of, it's waiting, and then the DPX is running out of handles below it. So the DPX is running out of you know, webhooks that's listening, waiting on MSODS to come back to, the core directory to come back. So DPS is unable to respond. So ESDS is saying, I called this one server or this side, the US East, you know, in this case, US West servers, and they're not asking me, let me call the other side.
SPEAKER_01So it runs that same bad query on the other.
SPEAKER_02Exactly. But unbeknownst to it, by doing that, it is killing the other side too. Yeah. Right? So it's making things worse. I remember being on the bridge and one person saying, okay, let's just fail both sides to the other side, all the way. To the other regions. And I remember, those are the cool things, right? The engineering manager said, how do we know it's not going to propagate the problem further? And they were like, we don't know. And they paused. And they didn't. And it saved the others from being much worse, right?
SPEAKER_02Those are the cool moments that you live for. You know, above the tools and above the telemetry and the stuff, it's kind of these judgment calls that you have to make right at the time in the moment, right? So that is problem number one. Data shape, okay? And the traffic kind of running out of space basically because of the data shape. Second problem we had is a region down or a massive kind of outage. So think of it as protecting ourselves from infrastructure issues below us, right?
Where at the end of the day enters a SaaS, think of it as a PaaS or a SaaS, whatever.
SPEAKER_02Yeah. We are abstracting away infrastructure from you. You're not managing the domain controller storage, the domain controller port, number of whatever, NICs. We are. But what belongs to you is we are relying on infrastructure below us somewhere, right? There's no magic. Like there's a famous meme that says there's something as a cloud of somebody else's server, right? Yes. So... So in this case, right, this is the infamous San Antonio outage of 2018. See, they're by names. This was, I think, October 2018, maybe September.
SPEAKER_02September, I think. In this case, what had happened was the San Antonio data center in South Central US in Texas, right? There was a hurricane, tornado, something near it, which happens frequently in America. It's happening more frequently now with climate change. And they decided to cut or shut down the data center to save it, like to be safe. They were afraid that it was going to cause, you know,
SPEAKER_02Hardware destruction, you know, shorts and this kind of stuff. So they pulled the switch. So it wasn't like, oh, the outage actually just cut off, you know, the trees flew off the way and cut off the cable. No, we purposefully said, nope, let's just shut it down. So not have electricity, you know, somebody electrocuted by a cable flying or something like that. So they cut off, and that is a foreseen and planned scenario, right? They were supposed to be able to fail over. Nothing was surprising there.
SPEAKER_02So now all of a sudden shut down a data center. So we moved over. To the other side, the traffic all failed over. Now, think about a moment here about what you have to do. I think you refer to it here, right? Yeah. Is because you have to anticipate at any point in time in this pairing model that you can get all the traffic from the other half. Yeah. You have to run a 33% utilization, memory and CPU. Yeah.
SPEAKER_01Yeah, this is like a fascinating thing for me, right? Like this means Microsoft is not very, like if you just think of it, you're like not very efficient, right? You're only using 33% of the compute and the server is idle.
SPEAKER_02Yeah, but you have to plan for, I mean, you have to accommodate for, because you do have other things you do, by the way. So there's auto scaling, right? So you don't just sit at, okay, let's just feel like, oh, you also try to scale your number of front ends. But while you're scaling, right? you gotta take on the initial burst of traffic. So you can scale your number of front-ends and back-ends that you have or if you need, that you need, right? You can't just say, oh, I'm gonna auto-scale what I need to because then auto-scaling means you're spinning up a VM. It's not instantaneous. It's not like zero seconds, right?
SPEAKER_02So that means, so you have to have enough room to take over the initial traffic burst and then scale up as needed, right? And I think most providers have to deal with this in some way. This number right now is better and we'll show you why and how, right? But yes, you have to always plan for that.
SPEAKER_01Yeah. So for reference, one customer I know, they have an on-prem IDP that they're running and their servers are running at like 80%, 90%. And recently they've got load and it's almost like at 95%, 98% running hot. And they're just playing fire.
SPEAKER_02They're just hoping no spikes happen, right? Yeah. And this is what actually, maybe this is a horror story for them to think about, is in this case, we fail the traffic over. And then another problem, again, another latent bug, like I'm sure your listeners, especially those of you who've had a few years in IT services, right? Whenever you've had any of these big outages, even within a single customer, right? You know that it's like limiting snickets. It's a series of unfortunate events, right?
SPEAKER_03Yeah. Yeah. It's never one thing that goes wrong that just takes down the whole system.
SPEAKER_02When you do the RCA, the five Ys, you discover that this was that and all these conditions came together to make this a big outage. So in this case, after the failover, there was an office bug. And so we discovered that the office client, so after the failover happened, the world woke up the next day. So the failover actually happened, nothing was bad.
SPEAKER_02And we're now trying to spin up, you know, scrambling to spin up and figure out, are we going to need a new data center? What the hell's going to go on? And everybody's trying to figure things out. But failover actually initially happened fine. But then customers woke up the next morning and started hitting our service and demanding tokens. And there was an office bug. Not to slam the office. It was a latent bug. Again, just like the conditional access bug earlier, right? Latent code bug is always there. But in this case, it was a load amplification bug. The office clients,
SPEAKER_02when they were faced with a lot of throttling denial requests, would try harder. That was a surprise for everybody, including folks. So it was hammering our service even harder and harder. And our service was having a hard time even having enough bandwidth to say no, not to even serve the traffic. And so they basically kind of started kind of degrading the whole ecosystem again. So it was an office client sort of launching a denial of service thing by trying to
SPEAKER_01sign in again because it couldn't sign in. It must be our own product launching a denial of service against us, right?
SPEAKER_02And I say these things not to obviously make light to anyone. I hope these things help your folks and your listeners think about how are they susceptible to these things, right? You and your organization, even as you're sitting there listening, laughing about Microsoft and how silly we are, think about you have also client apps that your developers wrote that are hitting your backend APIs that your developers also wrote Are they susceptible to this thing? Will they become your biggest DDoS attackers if an outage happens or a bad guy manipulates them, right? So it's very interesting to learn all these things, right?
SPEAKER_02And again, I was on the bridge of that one too. So this one was intense, right? I had to do lots of drastic measures for this one. And we learned from it, right? So now, let's talk about what we learned from it, right? So what big changes did we want to make, right? These are the principles, right? That loss of an availability zone will not break the identity system. If a rack goes down, if a whole router goes down in an Azure Data Center, no. right? Azure region going down will not break us, right?
SPEAKER_02A partition should be kind of present in two separate availability zones. So a customer is not served from one availability zone and you die if it dies, right? Failure of one partition should not drown out the others like the 2017 outage where, you know, one partition is struggling and it's starting to poison the whole ecosystem, right? So to answer that, We came up with this. So this is cell-based architecture. Basically, think of the rows in this picture as units of customers,
SPEAKER_02so partitions or scale units of customers. So FD1, FD2, think of them as the partitions of the customer. So each one has 1,000 customers in it and they're serving them. And then the SUs are scale units of the authentication service. So basically every cluster of customers is served from four different scale units that are partitioned across all regions equally. So the big difference between the two slides is this big line you see at the top here. Now the gateway can serve traffic from anywhere to anywhere, can route the traffic from a guy who shows up here all the way
over there.
SPEAKER_02It's no longer paired, hard paired as it was before. Right. And so that's โ so how does this play? So what's the big deal? Think of it as I used to have a big monolithic service with a bunch of 1,000 front-ends in US East and 1,000 front-ends in US West. And now I broke it into 100 front-ends in 20 data centers instead of 1,000 in two big data centers. Right. Right. So why does that make a difference, right? Obviously, if a single gateway goes down, we're fairly immune from it. Even in the old architecture, we're fairly fine.
Now we talk about a single cell of the STS itself as a problem, a code bug, whatever. You see that when it goes down, the load will be peanut buttered across...
SPEAKER_01Across more regions, right? It's not just like the two-paired one.
SPEAKER_02Three cells, it gets peanut butter. That's the thing. It's not a hard failover from here to here. It's peanut butter across three, which we'll talk about CPU utilization in a second. This is an availability zone. So this is a rack or a router and Azure goes down and swallows everything that's running in that availability zone. Then again, that translates to one scale unit going down for each of the partitions, but all the partitions have backup they can go to in everywhere else. Make sense?
Then this is the conditional access 2017 outage thingy where a customer is drowning
SPEAKER_02out everybody else in its partition. The partition is unable to resolve queries. They're still hosed. That's tenant two up there, the yellow tenant up there. But at least their outage is now contained to them. No longer are these other SUs poisoned by this one kind of row that's bubbling up that equals the stack and poisoning everything. Tenant three and four and one are unimpacted.
SPEAKER_01It prevents one tenant causing like a global outage, right? Exactly. Some issue in just one. Yeah. And then the final one is the San Antonio 2018 outage where basically you can see here now the traffic gets evenly peanut buttered across the ecosystem back to the
SPEAKER_02Microsoft not running very efficiently. In this new architecture, you can run these nodes each at 50% of capacity because when this thing goes down, this one cell, you peanut butter it, right? So you take basically this is handling 25% of load. This is 25, 25, it's traffic, customer traffic, right? So you take this one and you spread it across, it becomes 8%, 8%, 8%. So if they're running at 50%, they'll bump up to 60%. They won't feel the load. So now you can run with more CPU utilization and memory with
this new architecture,
SPEAKER_02actually more efficient as well, too. Back to your point. So that is cell-based architecture. So anything you want to ask about this before we jump to the next thing?
SPEAKER_01Yeah, so this is one of the reasons why... We have these SLAs and there are all these global outages. But each tenant, I know when you're a Microsoft Entra customer, you can go to a blade where you can see your tenant's SLAs. And that could be different to what's published as the global SLAs. Correct. It's usually better. Yeah. Because it's a tenant-specific SLA, and that's sort of driven by part of the cell-based architecture.
SPEAKER_02It contributes. Everything contributes to you being able to. And, yeah, for those of you who don't know, if you go to EntraPortal, go to Health and Monitoring, you can go to Health under Monitoring. And if you go to that health blade, there are two features, the SLA, the per-tenant SLA. And this is actually for your tenant. But it's SLA, so it's not monitoring. What I mean is it calculated at the end of the month. It's not going to show you right now if you're out or down. It's actually meant to show you that for the last month,
we made our SLA for you or we didn't. And it's meant to help you use that with your leadership when they read in the news
SPEAKER_02Microsoft had outage and they're like, are we safe on Microsoft? What's going on there with this Microsoft thing? You can actually go there and show them that we're fine or not, right? You can also say, we're not fine. Maybe we should move off, right? But you now have an evidence to show them independent of the news because the problem is every time we've had an outage or a near outage or a somewhat major outage, It will cause a fuss in the news. People will see status at Azure.com. There's an outage at Entra. Are we impacted? I think we're impacted. And of course, people in their mind will play kind of games. I had five support calls at the same time. That must have been the Entra outage.
SPEAKER_02It could have been something else. We don't know. We can't prove one way or the other. So us publishing per tenant SLA helps. But to be fair, it's only for customers with 5,000 Cs or more, I think. It's not just for anybody. So if you're a small, small customer, it gets hard to even compute SLA. And it's only authentication SLA. So we don't have SLA around latency or other things or rights or something. It's just authentication. But it helps you build confidence in the platform. And it's part of our transparency with you. We're trying to be more obvious. So we did publish the public one that says four nines and were amazing.
SPEAKER_02I shared that at the beginning. But it doesn't matter if you have been impacted by that. It doesn't care. You know that it's not true for you. So this helps you see what's true for you. The other tab in that UI is my favorite, which is scenario monitoring, which is real-time. So, like I said, monitoring, you know, intra-portal monitoring, and then you go to health, there's two tabs, SLA and then scenario monitoring. And that one is real-time health of MFA, device-based CA, that kind of stuff. That goes into every specific feature. Correct.
SPEAKER_02And it's near real-time. I guess it's five to 15 minutes behind. It's really cool. Nice. Okay, so that's the first set of features that's called cell-based architecture. Let's talk about the next one. The next one is something called the Backup Authentication Service. And again, this is a very identity-centric...
SPEAKER_01example. This I know because the incident happened after I joined in 2020, I think. Well, this has been around since 2018, since the big 2018 outage of San Antonio. It's actually been in development since even earlier, but it was under very limited use.
SPEAKER_02But since 2018, we've pushed it very hard. So, What does it do? So what this is, is going above and beyond. So we did all this, you know, fragmenting and sales and whatever to keep the service always resilient and nothing below it can take it down. But still, we can go down and we can have potential large outages. So how do we even account for that? It's a unique authentication experience, which is the fact that we can, if done correctly,
SPEAKER_02we can serve you tokens even though we're dead. authentication most of the time is a refresh of an existing thing you have. And so this is what this is about. It's about how can we continue to refresh sessions while our ability to check new artifacts and things like that is kind of degraded.
SPEAKER_01I think just to step back for people who don't really know, like this plays into the whole access token and refresh token and how they work, right? You need to know a little bit. But The short story is even if you are like using Teams, you are not signed into Teams today. You didn't see the login screen. Almost every hour, it depends based on new things like continuous access evaluation. But typically every hour, every app you have is calling back to enter and checking
information.
SPEAKER_01you know, is this person still valid? And then it gets a new token to continue accessing it and enter checks all the CA policies before it sort of gives a new token to that user saying, yeah, I'll give you access for another one more and you can get to things, which is why when someone leaves the org and you sort of remove them or disable the account, they lose access. That's what makes it possible for those things to happen.
Yeah, and by the way, for your listeners, this is a kind of L200, L300 talk. If you don't know what tokens are, you should go watch the intro chat episode number three.
SPEAKER_02I'm just kidding. But to kind of build on what you said, for those who are unfamiliar, all modern authentication is tokenized. And this is why when you open your mobile app or you open your window and you're sitting on your windows and you go to the browser and you go to your familiar sites, you're always signed in. You never do fresh with it. You never type in your username. In fact, you get pissed off when your banking site requires you to enter your password every few days, even though I just did it yesterday because it's a banking site, right?
SPEAKER_03Yeah.
SPEAKER_02But all the other sites are usually very friendly. And I don't recall the last time I was logged into any mobile app I have on my phone. All that is tokenized. What that means is you provide your credentials initially. After that, the authentication service gives you an access token to what you're trying to get to and gives your app something behind your back called the refresh token. The app takes the access token and submits it to the resource. So, for example, Netflix, after you log in, let's say Outlook or Teams, it logs in with Entra, but then it turns around and goes to Exchange to get stuff,
SPEAKER_02right? So this token from Entran goes to exchange to get the stuff, the mail, the messages or whatever. But under the covers, it keeps the refresh token with it. And then when the access token runs out, because it has to run out, that's how we know you've been fired or you've left the company or you no longer own that role or whatever. So we bring you back. That's how we bring you back is every hour we send you. We give you a very short-lived token, an hour, a day, two hours, whatever, depending on the app. But any of them, the access token is short-lived.
So when it runs out, the app doesn't just prompt you to use your password again.
SPEAKER_02It's smart. It has a refresh token. It will submit that to the authentication service and say, remember this guy? Can you give me another access token? At that point, the authentication service could stop you. I'd say re-log in again like the bank does or like most normal app. Authentication services will say, here you go. Here's another token. Nothing changed. Keep going. Right? That's how we keep checking that you're still allowed to do this without
SPEAKER_01interrupting you as an end user. And if you're an intra-admin, you can go to the sign-in logs. We have a tab that says interactive sign-in. Exactly. And you have this non-interactive tab. You can see almost like every app for a user will be hitting that endpoint to get... Exactly.
SPEAKER_02And so back to this, we have those two tied together is the reality of... even though you're an inter-admin and you're creating all this CA policy and you know, checking all these things, the reality is and you're staring at the sign-in logs all day, the reality is about 3%, no more than 3% of your actual sign-ins are interactive. 97% of them are non-interactive. Nothing is happening. It's happening in the background. No big deal. And in fact, we as Microsoft, you may not agree with us,
we actually think prompting for re-interactive sign-in over and over is just so
SPEAKER_02frustrating to the end user. It's not a very good security measure whatsoever. There are places like checking for intent and checking for sensitive operations where it makes sense, like PIM or whatever. But in general, just having end users re-authenticate every three days or five days just to make sure it's still them, we don't feel as effective. But because of that... we're able to do something from a resilience perspective and identity that, yeah, I don't know, other products and other things, I don't know, mail or, I don't know, Amazon or amazon.com,
SPEAKER_02you know, like the shopping site may not be able to, right? And here I want to actually do a shout out to kind of like, you know, the, what's it called? The, What's it called? Unnamed soldier? What's it called? The unknown soldier or whatever in the war? I say this because a lot of folks, especially in podcasts, you know, tech podcasts and whatever, there's a lot of celebrities, right? I don't see myself as one of them. You are. But others, right? So there's a lot of celebrities in our industry, people talking conferences and so on.
SPEAKER_02They're celebrated, right? But I want to call out that for every one really smart or, you know, talented person you see from Microsoft or Google or Amazon whom,
SPEAKER_00oh,
SPEAKER_02my God, he's a rock star. She's amazing, blah, blah, blah, blah. You should know there's at least 10 really, really smart people behind the scenes that you never even see or hear about or talk to. Like in Entra, there are all these giants like Merle, Adrian, Rahman, that people like Tariq walk into a room like, oh, crap, Adrian is there. really amazing geniuses who come up with some of this stuff really really cool stuff you know some of the names like Nadim and Igor obviously they're amazing but
they're VPs so you kind of get to know their names but there's all these really really smart amazing people that just want to come up with some of this stuff right
SPEAKER_02Okay, let's talk about this. So in the happy days, let me see where am I? I don't know where I am. Let's try this one. Yeah. In the happy times. This is the user. She requests a token. Back to this token story. Unbeknownst to her, she's using Outlook. Unbeknownst to Outlook, behind the scenes, goes to Entra, says, hey, Entra, I need a token. As we said, Gateway. Gateway is a big part of ours, and you'll see why here, too. It's a big part of cell biz architecture.
SPEAKER_02It's an even bigger part of this, right? It's going to go and say, okay. The artist formula on Azure AD. You know, it's going to, as I said, it does header rewriting, right? So it's going to rewrite login to some other thing internal and say, hey, give me a token. Here's a request. This thing will parse the request. As I mentioned, it's an expert at token processing and minting. It will parse the request, say, hey... As we mentioned earlier, directory proxy service, hit the decor store, get me the artifacts I need to make a decision. Here are the artifacts you need. It's a good time. She's done MFA.
SPEAKER_02She's done everything. Let's mint her a token. Nope. Right before we give her a token, the STS will call a clone of itself called the backup auth service. Same code running in different decorrelated infrastructure. So if the main STS is running in Azure ES, you know, US East 2, this may be running in an M365 bare metal data center. Yes, Microsoft service at the end of the day, but not the same data center, not the same rack, not the same. So that same, you know, same, I don't know, Xfinity Outers doesn't take both.
SPEAKER_02We don't use Xfinity, we use our own back phone. The same infra can't take them both down.
SPEAKER_01Right. So it's completely different. I remember when once Scott Guthrie did a presentation, he said even the water lines, they have like a different water source coming in. Cooling power. Cooling power, like so that it doesn't, they don't use the same water source, which can cause an outage on both sides. Exactly. If it takes up.
SPEAKER_02So calls it to that thing and says, hey, here you go. Here's an access token for that same person. But this one is three days long, not one hour or three hours long, three days long. It says, hey, hold on to that one. That one calls into a M365 storage. So that means that it's not new service with new authorization and new isolation. It is basically stored in the user shard in M365, just like your mail and your other things.
SPEAKER_02Obviously, you can't see it, but it's stored there. So you don't have to reinvent a new tenant in system or anything like that. It's using the same existing structure. And it's stored there.
SPEAKER_01And it's isolated as well, right? Then to the customer's partition of M365.
SPEAKER_02Exactly. And then we mint a token to her. So she gets that token she's expecting. She's happy. She's good. And an hour later, she comes back. Unbeknownst to her, some big problem happens and ends. So the core store is having a problem. So 2017 outage. Some bad thing is happening and the core sort of bubbling hot and incoherent. Or the STS is struggling. Load amplification, 2018 outage, one of them.
SPEAKER_02Some big problem. The end result is the gateway sitting in front of all of this will get an incoherent response. An incoherent response means it's not a 200, 300, 400. Because 200 means here you go. Here's a token. Good. Success, right? 300 means redirect. Go somewhere else. And then 400s are all โ I am as a code, as an STS, I'm telling you, you are denied. 400, bad request. 401, unauthenticated. 403, forbidden. 404, not found. These are all โ the STS is saying these things, right? 500 is bad.
Because if I heard there's the code below you, that's answering, not you.
SPEAKER_03I don't know what's happening.
SPEAKER_02Yeah, this is Apache or IIS saying code is not there, right? Unexpected data. Exactly. That's not good. A bad gateway, all those kind of not good things. When you see an end user even on a website, you know, you enter into a very dark place. Right? So... Or you get DNS not found, host not found, some tragic network level error, not even a 500, right? So you're getting some really bad responses, right? So what it's going to do is it's going to try another replica, right? So I don't know. So US East 2, let's go to US East 3 or US West 1 or whatever.
SPEAKER_02Hey, can you serve me? Right? And gets the same bad response. So now we know it's not a single cell issue. It's starting to smell like a tenant-wide issue, partition-wide issue, intra-wide issue. Not clear, right? So what it will do is on the third attempt, it will try to back up our service. And remember, it's the same code. So it will take the same refresh token request, unpack it, understand, oh, this is the user requesting another token for exchange, blah, blah, blah. Let me check if I have something in the storage for it.
SPEAKER_02Oh, look at that. There's a token already. Let me pick it up and send it back. This is important because there are scenarios that are not backed up. We are not, this slide is old. So we're not at 70%. We're actually at 90 something percent of off now, but still not 100%. meaning that there are scenarios that are not covered by the backup service right now, certain SAML scenarios, that kind of stuff, that when it looks, it won't find a token cached. But most of the time, 90% of the time, it will find a token cached,
right? And it will pick up the token and it will send it to her and she will be none the wiser.
SPEAKER_02She'll get a token and she'll be happy. She'll go read her mail and we will lie to the client. So some of your listeners will be like, wait a minute, you just minted a three-day access token? The user is going to go away for three days and let's check for accident. No, we did not. So for those of you, again, I'm going to go into the weeds of OAuth now. So again, this is an L200, L300. So watch and chat episode five to understand this deeper or go to a blog by our dearly departed friend, Vittorio. But... What it will do is,
SPEAKER_02for those of you who don't know how this works, the way Outlook knows that the token is one hour is not because it opens it. It never opens it. In fact, the token is not intended for Outlook. Outlook takes the token as it is and gives it to Exchange. Exchange cracks it open. Outlook doesn't do anything. So how does Outlook know that it's supposed to come back in an hour? It is a header. So we lie in that header. We say the token is an hour, but it's not. So Outlook will just come back in an hour, even though it is actually longer than an hour. So then, yeah, that's how it works under the covers. There are ways for customers to turn this off.
SPEAKER_02This is the default behavior. We really try to err on the side of continuing off. So if you had a CA policy that says, if Merrill is not a member of this group, don't MFA him. And then there's an outage, and now you're being served on the backup off service, and Merrill comes back. We will assume you're still not a part of the group and you don't need to do fresh MFA. We will continue the auth. Some customers say that's not acceptable. If you're not able to verify everything that I said, deny the token. There's this checkbox in the product called resilient defaults
under session controls.
SPEAKER_02You can turn off. We do not recommend you do that because it degrades your resiliency. But if you need to for any regulatory compliance reasons, you can. And of course, untold in this is fresh auth kills all of this. So if you have a sign-in frequency policy, for example, that says demand fresh authentication every 20 minutes from users or every three days or whatever, you're making their ability to succeed with this lower.
SPEAKER_01Right. And this is โ so when this does kick in, say there's an intra-outage, obviously you wouldn't know, but there is something โ bad happening the backup service is automatically kicking in and giving tokens to the user for one of the hardest things for people to internalize because they keep asking when does it kick in whenever it can't get a coherent response so people still have the mindset of like on-prem domain controllers and i have to fail over and cut a switch and manually move the load balancers from nope
this is all
SPEAKER_02happening automatically and per request. There's no software engineer sitting there and saying, oh, let's cut over these. We can do that. We have the controls and the gateway to say, okay, let's move over everybody from here to there. But we're not waiting on human judgment here. This is simply the request got an incorrect response. There is no reason to even wake up an on-call engineer. Let's go get a backup token. And of course, there's telemacy that tells us there's degradation and other stuff like that. So we'll wake up our own on-call engineers. But there's no human judgment involved in switching or switching back either way. As a customer, I guess the only time you might notice is some people are
already logged in.
SPEAKER_01Whoever's logged in is fine, but when someone new tries to sign in, they are not able to sign in because they've never minted a token. The backup auth service doesn't have the token.
SPEAKER_02Correct. There is good news in that the backup auth service... does show up in the signing logs. So you can actually see it working. Oh, nice. So that is one of those.
SPEAKER_01Before you wouldn't even know if it was kicking in.
SPEAKER_02Yeah, so it's right here. So you can see now in the sign-in logs, you can filter by, I think it says enter backup auth, not Azure AD backup auth now after the rebrand. But you can actually see it right now in the sign-in logs. So if you use the token, it will be in the non-interactive, not the interactive. Because obviously interactive doesn't work. But it's not interactive. So if you ever suspect, as you said, there were a couple of failures and you can go look here and see. But that is one cool transparency thing we did as well. So kind of show it.
SPEAKER_02You can see when it's working for you. But again, token issuer type, which is Antra or if you have ADFS, it will show you ADFS traffic. And if we served any traffic from the backup office, it will show you.
SPEAKER_01So on the backup pod, just so it's clear in people's head, the backup pod service is very close to being like a replica. It's not a replica of entry. It's just keeping backup tokens.
SPEAKER_02It's a replica of ESTS.
SPEAKER_01ESTS, right. It doesn't have its own sort of login page at all, right? Like no one will ever see a login page.
SPEAKER_02It's unable to look up group membership. It's unable to look up CA policies. All it's able to do is look at the... If a token has been stored at it, they receive a request, decipher that request maps to that token and then serve it back unless there's something explicitly in the request that says validate everything and then it will just say, no, I can't.
SPEAKER_03Right.
SPEAKER_02Because it can't validate anything.
SPEAKER_01It doesn't run CA policies and other things.
SPEAKER_02There is one thing it can do, which is IP. It can see your IP. So if there's a CA policy that says require trusted IPs or come from these IPs, it sees your IP, so it's able to make a judgment call on that one. But for example, for MFA, it can't look up your phone number to initiate MFA. It can't even do any of that. It can't invoke any of that. It's doing the bare minimum work. Yeah, it's doing what can be done within the STS. It is not a replica of all of Intra. It is only a replica of the security token service.
SPEAKER_02And one of the things we didn't talk about, I'm glad now that you asked the question, is why did we do it this way? Why didn't we just mint a token from this one? Why did we pass a purple token? And stash it there instead of simply having this backup auth service itself just mint its own token. There you go. Yeah. It's a very important point for people to kind of internalize. We debated this, right? And when people ask us all the time, like, is it safer for me if I'm trying to really be up all the time to put Entra and Okta
SPEAKER_02on top of it or ping an Entra side by side to a server authentication, right? And not noticing the other products, obviously. Yeah. And no, it's harder for you. So if we had minted a different token from this, it would have been a different issuer for those of you who are into the mechanics of tokens, auth tokens, access tokens, refresh tokens. So the access token would have had a different issuer, different certificate, which means Outlook will get the token. First of all, you have to teach Outlook to request a token from one URL or
another.
SPEAKER_02So you have to change Outlook now. But let's say Outlook gets the token. When you submit the token to Exchange, Exchange now has to trust tokens from Entra or Entra2, or Entra or Okta, or Entra token signed by this assigner or that other certificate. So now we have to change the whole app ecosystem to get resilience. right you have to get out all the clients that request tokens you have to change all the servers that receive tokens which would have taken decades to finish yeah so that's why we went this path because this is kind of like
the least interrupt and intrusive to them because we don't have to change the whole like one of the challenges people ask about Depop you know for proof of possession for binding access tokens or continuous access one of the challenges in the industry is that
SPEAKER_02they acquire changes of the app right Those take years and years and many, many years. And seven years from now, we'll still have a lot of apps not supporting them, right? This was a very kind of elegant, quick solution that helped us to provide a lot of resiliency without rewriting the whole Microsoft ecosystem or your app ecosystem as well, right?
SPEAKER_01Yeah, yeah. The last thing Microsoft wants is teams going down because intro and down, right? Yeah.
SPEAKER_02So that's the second component. So we covered the cell-based architecture and the backup auth service. The third piece I want to talk about is a derivative of the backup auth service, which is the, because we achieved the backup auth service, we were able to do this other creature, which is regional isolation. So this is a bit of a detailed slide. I'm not trying to focus on the right side as much, but for those of you who don't know, this is kind of how many levels of isolation and protection. This is about protecting your workloads in Azure specifically.
SPEAKER_02Workloads in any infra in general have this amazing thing, which is they just run all the time or all the time and very little changes. It's not like a user who's going to get in the building, get out of the building, do fresh MFA or not do fresh MFA or trusted device. They're always running the same thing you put them in. all the time pretty much, right? Unless a malicious actor steals their credentials or something, right? So that context, for those of you who don't know, one of the best resilience investments you can do, I'm trying to make this practical also for people, right? Is use managed identity.
If you're not using internet managed identity already or Azure managed identity
SPEAKER_02already, shame on you. You should be doing it in anything that supports it. So Azure functions, VMs, everything has it. Please do it to you. Not just is it cool, but Originally, it was invented for secrets management to help you not have to deploy secret on a VM with a certificate to go call and try an authentic certificate to get your first
SPEAKER_01token.
SPEAKER_02And keep rotating it. Exactly. This automatically gets you the first token. You don't even have to worry about how the hell you got it. You just get a token for whatever you need. Like I say, you want the friend to wake up and talk to SQL Azure. With this approach, you just automatically get... A token to SQL Azure that is exactly scoped for what you are allowed to do. And then you can call your back end and get what you want, right? And, you know, I don't know. Merrill will do an episode about managed identity one day. I'm signing him up for it. But what's happening here, what I want to talk about here is more is what we don't know is
when you do get
SPEAKER_02that token, it is not coming from primary STS entra. It is actually coming from an in-region cache that you have. And so you basically have a mini SESTS serving you tokens in region for your needs, just like the backup auth servers did for the auth scenario you mentioned earlier. Now imagine that same thing now deployed in every Azure region so that after the fresh auth that you do the first time, There's a long-lived kind of token you can keep getting from that thing. They keep serving you what you need.
SPEAKER_02You're working fine. Unless the authorization rules change, you somehow change the ARM. You go to ARM as a resource manager and change what's RBAC assignments for this thingy. It's going to keep working just fine. And this thing is super, super resilient. So even though Entra itself might be drowning, you'll discover your workloads felt nothing in US West 3 because Entra, they barely talk to Entra at all. They do come to Entra when there's a fresh out, when they first get their initial token.
SPEAKER_01After that, it's just a result. Right. So this is if you're building custom apps and all of that, right? It's a lot more secure than using a client ID and secret because that needs to be validated all the time.
SPEAKER_02Yeah. And then specifically password secret is bad and then certificate secret is just bad. How are you going to get that secret on the VM? Yeah. Right? Some of you in the audience are putting a certificate in a file, a ticket with them to production, and dropping it on the machine. On your desktop. And that file is absolutely a nightmare that you shouldn't exist. It's in the developer's machine. It's in the... So then, no. So we can have a separate deep dive on that one.
But that was originally why it was invented to, you know, better secrets management.
SPEAKER_02But it's also better resilience as well.
SPEAKER_01Right. Go ahead. For me, that's a new thing. Like managed identity for me has mostly been about not having to rotate certificates and like do all of that. But there's a huge story on availability as well. Correct.
SPEAKER_02And this is like, again, another war story. The near outage of 2021, December 2021. This one was a near outage because, and I wanted here to show kind of like the relative strength of each of them, right? So the red at the bottom of this chart is what the actual availability of the STS was. So at a certain, this was like a certain part of the US, not everywhere, right? It was running at 82%, right? Right. And then backup auth service was running at 97%, which is kind of the delta between fresh auth and backup auth,
SPEAKER_02right? Most people were getting tokens just fine and some people were getting failures, you know. So even within your own user base as a customer, most of the users are fine and then there was a 3% column that's like, I can't get it and what's going on, right? And you're like scratching your head, what's going on? It's going to play out the same way within your world, right? But look at managed identity, 99.6%. They barely saw anything, basically, in terms of an average altogether because they just served locally from the copy next to them, and all they do is continue on. They never, not a lot of parameters change with what they're doing,
right?
SPEAKER_02And then the aggregate view that the world saw... was 90%, right? This is combined. And, of course, the 82 includes things not covered by the backup service. So everybody as a whole saw 90%, and 10% degradation in entry in any region will be seen. People will just talk about it. Down detector, people will be like, you know, gossiping about it. Of course, we will try to communicate, obviously, our best. But it's interesting because, as you see, the things that are covered by these measures, that's why... the point is that that's why these mechanisms give us hope so
yeah knock on wood all those of us really because they actually do make a difference as you can see here in some of these things right so and that's kind of how we get to this kind of final picture that started with right it's like it's not just magic it's not just
SPEAKER_02hype and oh look at us we're so smart and so cool it's also a
SPEAKER_01So what's this two chart like? The first one shows that the uptime has been close to 100% for users.
SPEAKER_02Yeah, this is a user experience. This is a user uptime experience. This is how they experienced Entra, because they saw it 100%. They saw no failures at all. Whereas under the covers, we were at 99.97, for example. But because of backup auth serving most of the traffic, for example, this is users, probably backup auth, right? They saw, they felt nothing, for example. And so... And this is kind of how we're โ the point is we're layering these things, cell-based architectures, foundation, backup our service on top of it. And these layers help us kind of deflect a lot of these outages.
SPEAKER_02Not deflect as in they never happen. It's more absorb. You're able to kind of be resilient in the face of these things as opposed to simply only just doubling down on I'm never going to go down, right? Like we have other resilience measures, like for example, active, you know, the preventative stuff, like active, active DNS, active, active CDN. DNS and CDN are kind of like the two foundational things that people need to get to you, right? When you hit the login, first of all, DNS has to resolve to us.
SPEAKER_02And then when the page renders, that has a CDN that has, you know, the logo, the UI elements, the JavaScript, all that is CDN and content delivery network, right? And so... But that's how prevent it. We try not to have an outage. But this is basically saying, if ESTS can't load its front-end page to get you or whatever, then can we route the request to backup auth and get you a token there? That's a defense in-depth kind of resilience measure.
SPEAKER_01Yes. Yeah, I mean, for me, it's been fascinating being inside Microsoft to see how much thought and effort goes in. like having worked in enterprise and when things go wrong you rush to fix it and then things do sort of just eventually people forget about it and you move on until it sort of happens again but Having been at Microsoft now for five years, I sort of see all of the work that happens behind the scene to
try to learn from it
SPEAKER_01and fix it. And you see it in sort of these results of, you know, the... the work that goes on, and also the outside, like how Microsoft communicates and shares all of this information, like the whole cell-based architecture, safe deployments, what we were doing, and explaining all of that. So for me, that's been... really fascinating thing about what happens and I'm sure we'll do one on like the whole SFI thing that are happening today in the future at some
point but it's
SPEAKER_01fascinating how much how thorough like There's time spent all the way with all the execs and everyone involved, leadership teams, to make sure Microsoft learns from these mistakes and it doesn't sort of happen again. And the level of innovation you see here is massive in terms of the amount of
SPEAKER_02engineering time and effort and thinking. And sometimes it's at the cost of features. Like people will be like, oh, when is this feature coming? I mean, you are very familiar with this from your work in the application space, right? Working with developers and work with our applications team. There's a lot of features customers are like, oh, can you add more SAML customization? But you know that that team is so heads down. on securing the app ecosystem, that they're very focused on that part because, yeah, like if we get consent wrong or, you know, app policies wrong, a whole lot of bad happens ahead of that one nice feature.
SPEAKER_02And not to dismiss any feature, but I think, yes, you kind of start to see also the kind of like the wisdom of how some of the decisions about like... prioritizing, investing, some of these things. And some of these things took years, to be fair. Backup us service, you saw the slide. Backup us service back in 2021 was only serving 70%. Now it serves about 95% of traffic or something like that, right?
SPEAKER_01Yes. Nice. Awesome. Thank you so much, Tarek. I think this is, we broke the record for the longest episode, maybe. Really? About an hour and a half. Oh, okay. So, it depends on how much I edit. You're going to edit it, I'm sure. Yeah. But yeah, like cool stories and the behind the scenes of how Microsoft works and,
SPEAKER_01you know, how these things play out when they happen inside of real time. I've never been in a live site, but I have joined some of the bridges when we have had some of the outages.
SPEAKER_02I'll drag you into one one day. I was dragged into one thing two weeks ago. Okay. They still ask me about things. I'm not supposed to be in bridges anymore.
Microsoft is moving millions of users off SMS and onto passkeys, and most admins now have to decide which kind of passkey each group of users should get. Nishant Kaushik, CTO of the FIDO Alliance, the industry body...
AI agents are arriving in every Microsoft 365 tenant, and the questions admins ask first are what they cost to run and what it costs to secure them. In this Workplace Ninjas US special, four of the eventโs speakers...
Most SaaS vendors connect to your tenant with one multitenant app and one credential, shared by every customer. Kelvin Tegelaar, founder of CyberDrain and creator of CIPP (used by well over 10,000 MSPs), sees it from...
Most Conditional Access gaps arenโt exotic. They come from reading policies the wrong way: as firewall rules with an โallowโ, as a list of platforms that seems complete, as an MFA exception for the office that made...
Most tenants have the same problem: hundreds of app registrations and service principals, client secrets that were set to expire in a hundred years, permission grants nobody remembers approving, and test tenants that...