hello everybody and welcome back to the cae youtube channel uh today i'm again joined by my fabulous colleagues matt and kevin and we're going to talk a little bit today around dev test production application handling inside of azure landing zones so without further ado let's get into uh the meat of today's uh talk so as we've i've said there just a minute ago we're talking around the applications but we do realize that some people might be wondering how do i handle dev test product the platform side of it itself so how do i test as
your landing zones in terms of my management groups my policies and we have some guidance for this already available in a document called testing approach for enterprise scale that you can uh check out in that short link there that talks about how to test the platform but today we're talking around that application and workload uh def test production handling so matt do you want to give us a bit of an intro and so what you know what we're talking around here for the application sure so when we talk about devtest prod in terms of alz
we're really talking about the governance of those workloads um and if you remember the alg management group hierarchy which is on the screen now your applications live under the landing zones management group and we by default we give you two management groups corp and online now the reason that they're different is because there's a policy difference between those two management groups for example in corp by default you're not allowed to use public ip addresses whereas in online you are so that we can see that we create management groups because we need different um governance frameworks
for uh these types of workloads so if we then fast forward then to making decisions about where an application subscription would live so let's say you've got an application subscription sorry an application with three subscriptions instead of test and prod where's that going to live right where do we put that that's a good question first and foremost i think you should ask yourself what the governance model is of that application is it is it this will it fit under one of my existing archetypes right um if the answer is yes then then put it under
that archetype um if production has the same governance model as dev and test then put them all together there's no reason to create different management groups there however if your dev environment isn't compatible with your production policies then that's where uh you should use sound boxes now there are many reasons for this but principally it's the use of services which are not aren't yet sanctioned in production so you wanna version two of your app you wanna use a new service can't put it under the production management group hierarchy got to use sandboxes so in short
it's a summary of the decision mod decision process that you should go through when you're thinking about placing your workloads so kevin talk to us a bit about sandboxes how should we use them of course so the sandbox really is like you said it's an environment where developers have a bit more kind of freedom and autonomy and that's a real kind of underlying principle behind alc is giving developers and application teams the ability to work in the way that best suits them and sandbox is a part of that model so as you've already mentioned within
the landing zones traditionally you're going to have a lot more kind of enforced governance that are there to help protect you against things like data loss and to ensure that you're compliant with all your regulatory requirements sandbox is really designed to mirror that but in a way that doesn't get in the way of developers so you know we'll generally try to recommend that you put the same types of policies in there but rather than in signing them in a deny mode or a deploy if not exist mode you might put them in just an audit
mode and that allows developers to have a bit more freedom over how they experiment with different services but also to actually evaluate how that environment is going to look once they move it into production so it's really a great area for developers to experiment um you know this is often done you know when you look at some of the policies not everything has a real kind of audit equivalent to so we often assign the same policy but in the assignment we set enforcement mode to do not enforce and that effectively puts it in an audit
mode um you know you've also got to think about what happens when you've got lots of different types of policies that different groupings for different landing zones um so in the kind of the default we have a single sandbox but you know one of the other options we have is that we actually create a replica effectively of what you've got under landing zones so using the classic example of corporen online here you can see how we've expanded the sandbox management group hierarchy to include equivalence to corp and online and again we're taking the same approach
in terms of how we control those policies but we're putting them into the audit only mode now there might be a few variations on this so because it's a sandbox and because you want to reduce the risk of data locks there are a couple of policies you might want to apply there so ones that we often see customers using are things like deny v-net peering so you know each subscription within the sandbox operates in complete isolation from the others the other thing you might want to do is to actually deny connectivity to on-premise so you
might block things like vpn gateways or express route connections so that you know that environment truly stays isolated again reducing risk so you know let's have a look at how that might look in practice when we actually look at this in the context of the broader sort of alz architecture so here you can see the traditional alc hierarchy and here we've got an example application called app a yeah app a is very much the kind of the typical scenario for most customers where development test and prod all sit under the same governance model and they
can therefore all sit just under the standard corp management group under landing zones um but that's not going to work for everybody you might have an application in this case app b where the development environment actually the developers need a bit more freedom you know they're still experimenting a lot and before they promote their application up into tests and fraud they want to have a bit more freedom to experiment with new features and new capabilities within the azure platform and then the third scenario is app c so app c we talk about the idea of
a scenario where it's just purely experimentation so we've got an mvp type environment there it is uh we've got an mvp type environment where the developer is going to be so they haven't built the test or production workflow yet um but they're still very much looking at sort of just working out how the application looks in the environment you know the expectation for app c is that it would evolve probably into app b and then eventually at the point where you're kind of in a bit more of a stable environment you move to the same
pattern that app a is currently showing us that's really interesting points there i suppose taking that on from where we've talked about those different applications and and you know you maybe have gone through different development cycles or different maturity levels of those applications you may get to that point where you go okay well my app isn't compliant like my sandbox app that i've tried out my version 2 or trying a new service out from application it's not not compliant with the policies that we have applied there so you know what do we do and i
think this is a really important point right there's a few options that you as a customer have in this space you know i think number one is you can create exemptions right so exemptions not exceptions very key to call out there exemptions are like temporary waivers or maybe permanent waivers with a detailed reason and you know justification of why this isn't compliant with the policy and why that's okay and something you would work with the platform team to put in place uh upon your subscription or maybe even a more refined scope like an individual resource
group inside your subscription um but you know that's one option you've got another option you've got is you know modify those policies in production you know work with your uh platform team to understand that actually the policy that's being applied doesn't really work for us as a application team and these are the reasons why and you may find that that actually applies to more people in production and you're just the first people to find that as part of your application uh workload so you may need to modify that policy in production to infect that entire
archetype so in the entire court landing zone or the entire online landing zone and then the the fourth one you've got here uh sorry the third one is a new archetype right you may decide that actually corporate online may not be uh suitable and we need something different right we need a new uh archetype to sit alongside there that has a completely different governance model that we want to support um and obviously you would apply the the policies that are relevant there and again working with that platform team and then finally and i think that
the least preferable for most application teams is modifying the application right so there may be um a reason or a governance or a regulatory compliance framework that means what you've designed just cannot work for the business and the requirements that are put upon them and the platform team should work with you to understand that you know these are the bits you need to tweak to make it compliant like it might be as simple as using private endpoints for all of your pass services um right and that may be a small change that you need to
make that is well within the the uh the capabilities of the application so that you are therefore compliant with the policies and the business can move on um but yeah these are the four options that we commonly see customers go through um and definitely starting with exemptions or moving towards the fourth option as the least preferable so matt if we just do a bit of a summary and a wrap-up of this you know what are some of the key takeaways from today's talk that we've given so i think it's important to consider management groups as
units of governance instead of units of organization or or even of our back i think generally do our back at the subscription level can prevent that kind of management group sprawl that we sometimes see um and there are definitely some anti-patterns as well that we should we should come on to right so if we click the slide onto the next uh animation what we don't want you to do is that right we don't want you to do pro the test and dev underneath corporate online we've seen problems when customers have tried this and it just
doesn't scale uh and then they try and kind of flip prod desk upside down and put the archetypes underneath and then that doesn't scale either so try and avoid doing that you may and if you do go down this route you may end up with lots of exemptions or exclusions to policies to try and get things working as you want to the other thing that we can do is some customers use uh azure policy for operational reasons like for enforcing things like azure backup so if you do that some customers want a different policy for
tests as they do for production um we'd recommend still not creating a management group to do this instead you can use policy filtering by the tag of the resource so you do have to be careful though we don't recommend you do this for any policy that for governance of the environment we only recommend you do this for policies that are for operational reasons so don't do this with your pci dss um assignments okay just do this with uh stuff with backup and be aware that anybody that can modify the tags can change the effect of
the policy um also using azure policy to control things like azure backup is a fairly blunt tool so maybe a better option there is to talk to your application teams if you're the platform team talk to your application teams and and understand that it's better to deploy the backup with the workload um so they have more control over it absolutely and i think we have a lot of these documented right map in some guidance we've already got published inside the enterprise scale faq so for any of you there check out the link that's just popped
up below um and you can get some guidance about what we've talked about today in a in a more documented format and you know maybe make it part of your uh your design documents and share with wider teams and share this video with them yeah thanks jack um and that brings us to the end thanks everyone for watching um we really hope you've enjoyed it we'd love to see and hear your feedback so please leave a comment below um if you'd like to see more videos please check out the link aka ms slash cae youtube
see you next time