Latest / Microsoft Cloud IT Pro Podcast / Episode 399 – Azure Infrastructure as Code with Greg Suttie
Transcript
- 0:03Welcome to episode 399
- 0:05of the Microsoft Cloud IT Pro podcast recorded
- 0:09live from the MVP Summit on 03/28/2025.
- 0:13This is a show about Microsoft three sixty
- 0:15five and Azure from the perspective of IT
- 0:17pros and end users, where we discuss a
- 0:19topic or recent news and how it relates
- 0:21to you. This week, Ben and Scott get
- 0:24a chance to catch up with Greg Sutti
- 0:25at the MVP Summit.
- 0:27While there, Scott and Greg have a chance
- 0:29to sit down and discuss infrastructure as code
- 0:31in Azure. They discuss what Greg has been
- 0:34working on when it comes to Bicep, Azure
- 0:36verified modules, Bicep configuration files, and more.
- 0:42I'm here at MVP Summit
- 0:45with Gregor, who decided to sit down and
- 0:47was gracious enough to
- 0:49join us today.
- 0:50Gregor is an MVP
- 0:53in Microsoft
- 0:55Azure
- 0:56infrastructure and code,
- 0:58cost resource and configuration management, and probably a
- 1:00bunch of other things where it has a
- 1:02bunch of other skills. So, Gregor, why don't
- 1:04you take a couple minutes, go ahead, introduce
- 1:05yourself, and then we'll get into things. Thank
- 1:07you, Scott. Yeah. My name is Gregor Sutti.
- 1:09I'm an Azure architect for a company in
- 1:11The Netherlands.
- 1:13I am from Scotland, so I will try
- 1:14and speak slowly so that everyone can understand
- 1:16me.
- 1:18My background, I was a developer from from
- 1:20v b sixties,
- 1:21then I moved over to .net, and then
- 1:24I was doing SQL. So I've got a
- 1:25bit of a data background, but I have
- 1:26a development background, and then I moved to
- 1:28become an Azure architect for Intercept in The
- 1:31Netherlands.
- 1:32I have been doing that for five years
- 1:33now. Yeah. And I'm Azure MVP. I'm also
- 1:36an MCT, so I do a lot of
- 1:38Azure fundamentals training, Azure AI training. And, yeah,
- 1:41that's basically my background. Training near and dear
- 1:43to my heart. Mhmm. Love training. Love training.
- 1:46I probably annoyed a bunch of people. I
- 1:48I I was one of the writers for
- 1:49the AZ 100 before I became the one
- 1:51zero four. So
- 1:52you you get a lot of stuff in
- 1:53there to blame me for. Nice to know.
- 1:55So tell me a little bit about your
- 1:56experience as an MVP. I think folks always
- 1:59ask that question.
- 2:00Yeah. How do you come become an MVP?
- 2:02What goes into it? Like, what's your Lyft
- 2:04experience there? Good question. So, yeah, my background,
- 2:07I always wanted to be an MVP. I
- 2:09wasn't really sure what it was to begin
- 2:11with, so I reached out to one of
- 2:13another fellow Scottish person called Kenny Lowe, and
- 2:16I asked him and he told me quite
- 2:17a lot about the program. Really interested in
- 2:19it. I had to say to myself, I
- 2:20would love to become an MVP. So my
- 2:22first step was I wrote the letters MVP
- 2:24above my monitor at home, and I thought
- 2:26that is my goal. I want to become
- 2:27an MVP. You you put together a vision
- 2:29board. No. I just put I just put
- 2:31the letters MVP right above it. I thought
- 2:32I'm gonna go for this. This is my
- 2:34goal. I started off I don't have any
- 2:36Azure experience, so I was working as a
- 2:37dot net developer.
- 2:38The cloud is obviously a big thing five,
- 2:40six years ago. I wanted to learn Azure,
- 2:42so I started off with just learning the
- 2:44exams. So I started off with the development
- 2:46exams, and I started off blogging about my
- 2:49experience of learning, like, the developer exams. Like,
- 2:53how am I what study material am I
- 2:54gonna do? How am I gonna go about
- 2:56learning this? I'm a hands on learner, so
- 2:58the way I learn is by I don't
- 3:00read much. Basically, I read the docs and
- 3:03then hands on learning. So open up the
- 3:05Azure portal, deploy the resources, and learn from
- 3:07that. Then I did some practice tests, took
- 3:10the exam and failed it the first time
- 3:11around because I didn't have enough hands on
- 3:14experience. I thought I knew enough to pass
- 3:16the exam, but it turned out I didn't.
- 3:17So I took a lot of learnings from
- 3:18that, but I needed to spend more time
- 3:20hands on. Took the exam again and passed
- 3:22it, and today, as of now, I've done
- 3:2513 exams. So I am quite exam heavy.
- 3:27Kind of got a routine of studying hands
- 3:30on, looking at the docs, blogging about my
- 3:33experiences of what I've learned, what you need
- 3:35to focus on for the exams. And, yeah,
- 3:37from that, I then started attending the Glasgow
- 3:40Azure user group where Sarah Lynn runs that.
- 3:42She approached me because I was going quite
- 3:44regular,
- 3:45and she said, would you like to help?
- 3:46So I'm kinda helping her with that. That
- 3:49that's been very helpful for MVP. So I've
- 3:51been blogging.
- 3:52I would do some talks
- 3:54and helping out the Azure user group. So
- 3:56that's kinda how I got started in becoming
- 3:57an MVP. And a lot of people reach
- 3:59out to me on LinkedIn and say, how
- 4:01do I become an MVP? So I always
- 4:03say it's all about the community. It's all
- 4:05about giving back. So whatever you learn, blog
- 4:09it, write about it, share your knowledge, share
- 4:11your things you've run into. Lots of times
- 4:13I Google for for an issue and I
- 4:16end up look at ended up on my
- 4:17own blog.
- 4:18So I started blogging because I've got terrible
- 4:20memory. Oh, yeah. And sometimes I still still
- 4:22end up on my own blog. So, yeah,
- 4:25blogging, giving back to the community, user groups
- 4:28are always helpful. But I would say you
- 4:30don't have to a lot of people say
- 4:31that you'd have to do public speaking. I
- 4:33don't think you do. There's one of my
- 4:34friends, Thomas Thornton, he's got an amazing blog
- 4:37and that's all he does, and he's become
- 4:38an MVP from from blogging. He's not into
- 4:41public speaking. So just giving back to the
- 4:43community as much as possible is is kinda
- 4:45how you go about becoming an MVP. Gotcha.
- 4:47Yeah. One of the other things, or at
- 4:49least my experience there is I I I
- 4:51did a similar thing. I wanted to be
- 4:53an MVP. I never became an MVP, but
- 4:55that was okay because the things that I
- 4:57were doing, I still got to go out
- 4:59and meet people and interact with user groups.
- 5:01And that experience of like, yeah, oh, I
- 5:04just landed from Google on my own blog.
- 5:06Yep. It's definitely a thing that happens. So
- 5:08I I often tell folks don't do it
- 5:11with the expectation that you want to be
- 5:12in a VP. Absolutely. Do it with the
- 5:13expectation that you want to
- 5:15participate in a community. You want to become
- 5:17a better technical writer. You want to become
- 5:19a better presenter. Whatever dimension or or mix
- 5:22or match of those things are so that
- 5:24you're getting something out of it. Yeah. And
- 5:26and and that's really kind of the the
- 5:29goal and where you want to land. So
- 5:30I I I have to inquire. So your
- 5:33Azure infrastructure as code is one of your
- 5:35categories. Yep. Dot net developer. Yep. Have have
- 5:39you crossed to the dark side? Do you
- 5:40consider yourself an IT pro these days? No.
- 5:42I'm not an IT pro. Generalist. Yeah. I'm
- 5:44more so when I worked for JP Morgan,
- 5:47they came up with this term t shaped
- 5:49developer. So the idea is you are kind
- 5:51of broad, but you go deep in one
- 5:53area. So I thought that was quite good.
- 5:54So my not my problem, but my background
- 5:56is I am a bit of a master
- 5:58of a jack of all trades, master of
- 5:59none, and I decided I would try and
- 6:01do infrastructure as code as kinda my deep
- 6:03thing. So, yeah, I do data. I do
- 6:06AI. I do infrastructure as code, cost management.
- 6:09I do most of Azure. Probably the only
- 6:12thing I don't really do is EKS, and
- 6:14that's the one thing I've kinda because people
- 6:15at my work to do all that. And
- 6:17I'm like, you can you can stick with
- 6:18that and I'll do the rest. So, yeah,
- 6:20I get asked lots of questions about lots
- 6:21of different things.
- 6:23Infrastructure as code, and I have a very
- 6:26lucky background. I work for a lot of
- 6:27people, a lot of managers who taught me
- 6:29how to do things properly, document things, do
- 6:32pull requests with good comments, and and I
- 6:34was just I've just got a really good
- 6:36background for working for good people who showed
- 6:38me how to do it the right way.
- 6:39So infrastructure as code, build pipelines, doing everything
- 6:43professionally. So that's why I got into Bicep.
- 6:45I wanted to learn how to deploy resources
- 6:46for customers
- 6:48across different environments and do it properly. So,
- 6:50yeah, I'm a big Bicep fan. That that
- 6:52was gonna be my next question. Mhmm. So
- 6:55Azure Resource Manager arm has changed a bunch
- 6:57over the years Yep. From
- 6:59declarative templates to
- 7:01Bicep and
- 7:03and having a domain specific language and and
- 7:05a DSL.
- 7:07And there there are certainly folks out there,
- 7:09I think, that have done infrastructure as code
- 7:11either on the arm side. They've done maybe
- 7:13Terraform,
- 7:14tends to be like my canonical one that
- 7:16I go back to and and near and
- 7:18dear to my heart. How how how are
- 7:20you
- 7:21finding Bicep, like, the transition from
- 7:24traditional resource manager templates and and kinda
- 7:27coming over that? And then are you
- 7:30is are you just a a Bicep fan?
- 7:32Are you using it with customers? Like, how
- 7:34is how is kind of the getting past
- 7:36the documentation and the POCs to, hey, here's
- 7:39how this goes in the world for you?
- 7:41Great question. I did luckily, I didn't spend
- 7:44too much time in my career doing ARM
- 7:45templates because ARM templates are a little bit
- 7:47tricky to kinda understand. When you look at
- 7:49them, you're like, what is the dependency chain?
- 7:51How are things working? So I kind of
- 7:53got on board with Bicep from the very
- 7:55start. I open up Versus Code. I just
- 7:58write Bicep. I basically just learned it by,
- 8:00again, hands on. How do I deploy a
- 8:02storage account? Let's start with some simple deploy
- 8:05it like that. How do I parameterize it?
- 8:07How do I deploy it? Do I deploy
- 8:09it from my machine? Do I deploy it
- 8:11from Azure DevOps or GitHub workflows? Runners. Sorry.
- 8:14So, yeah, just learning it by hands on
- 8:17and doing it, and I've been doing it
- 8:18for five years now. Probably, I feel good
- 8:21at it now, I would suggest. I've got
- 8:22lots of experience. So when I'm at work,
- 8:24I always do infrastructure as code using Bicep.
- 8:27Everyone kinda asks me how to do things
- 8:29because I I spend probably
- 8:3170%
- 8:32of the week doing Bicep for different customers.
- 8:34Absolutely. I love it. I love the idea
- 8:36that I can show customers how to deploy
- 8:38their environment to dev and test in production
- 8:41using the same templates. So all of the
- 8:44same standards. The only difference is the config
- 8:47for the actual deployment resources. So dev might
- 8:49be a a cheap VM, and acceptance of
- 8:51prod might be a more expensive VM. So,
- 8:53yeah, I'm using Bicep a lot, and I
- 8:55absolutely love it. Even today, we're talking to
- 8:57the Bicep team, and I think that stuff's
- 8:59great. Gotcha. And and before we started recording,
- 9:02you had mentioned that some of the projects
- 9:04you work on with customers might be around
- 9:06migrations, things like that.
- 9:09How do you see your customers
- 9:12kinda going through those motions? And maybe if
- 9:15I'm migrating to Azure,
- 9:17I I I don't know your experience with
- 9:19it. I'd be curious to understand. I I
- 9:21see a lot of customers that kinda start
- 9:22in the portal, and they just go next,
- 9:24next, next. And I've I've got my virtual
- 9:26machine, and I've got my VNet. And
- 9:29oh oh, I I need a database. I
- 9:30might stand up like a PaaS instance, like
- 9:32manage instance, something like that. And then they
- 9:35do it once and they go, how do
- 9:36I do it again? Correct. And and and
- 9:38what does that look like? So I'm curious
- 9:39like, do your customers
- 9:41move
- 9:42kind of more traditionally? They come up, they
- 9:44go through that same kind of motion, and
- 9:46then you step in and help them take
- 9:48those environments to a more repeatable
- 9:51stamped out model? Yep. So it depends on
- 9:54the customer, obviously. Some customers are already using
- 9:57doing ClickOps and they're already in Azure. ClickOps?
- 10:00Yeah. We call it ClickOps. Yeah. Yeah. And
- 10:01the port then the portal just and then
- 10:03you show them the value of Bicep and
- 10:05you show them how you can repeat the
- 10:06environment.
- 10:07Because I always I always worry that potentially
- 10:10a region may go down. You never know.
- 10:12And they're in West Europe and they might
- 10:13need to move to North Europe. And if
- 10:15you've deployed that by hand using ClickOps, how
- 10:17do you remember all the settings?
- 10:19The person who's deployed it might move on
- 10:21from the company and then you're kinda left
- 10:23not sure what to do. So I will
- 10:24show them that from a PowerShell file, we
- 10:27call our Bicep templates. We deploy dev. We
- 10:30roll it out. They kinda have a look
- 10:31at it. They check the settings. They deploy
- 10:33their workload on top of that. All good.
- 10:35Then we move on to acceptance and production.
- 10:37So once they see the value of it,
- 10:39they're all in. And when I'm doing my
- 10:41architecture designs upfront, I always put in a
- 10:43section about why infrastructure of code's important, and
- 10:46they kinda get it. The the buy in
- 10:48to nobody's ever said, no. We're doing click
- 10:49ops. But what I still see is sometimes
- 10:52I'll deploy dev acceptance prod and some people
- 10:55manually change things, and then then they realize
- 10:58that there's drift. And then when they deploy
- 10:59the resources, all of a sudden acceptance isn't
- 11:02working, but dev is. And then they're like,
- 11:03yeah, what's going on? And then you have
- 11:05to show them, like, you have to use
- 11:06infrastructure as code, you have to use build
- 11:08pipelines, no touch deployment, like, but but I
- 11:11always want to do click ups to get
- 11:12things working quickly. I I get that. But
- 11:14sometimes you just have to, like, teach these
- 11:16people that that's gonna lead to pain. So,
- 11:18yeah, we've we've had a customer recently who
- 11:20we deployed dev acceptance and prod. We set
- 11:22up the workload and then they manually changed
- 11:24some things and, like, dev and acceptance
- 11:27was was working but dev wasn't and then
- 11:28it was because of the changes. Yeah. So
- 11:30just a learning curve, but that's the way
- 11:32to go. E easier to click run once
- 11:34on a pipeline Yeah. Or or an action
- 11:37than it is to click next, next, next,
- 11:39next, next, next Well, we have we have
- 11:4010 web apps and one of the customers
- 11:42was basically changing all the settings on the
- 11:44web apps and acceptance and dev was working
- 11:46and acceptance wasn't. And sometimes it's difficult to
- 11:48compare two different environments, and they're in the
- 11:50same region and they're in the same subscription,
- 11:53but, I'm sorry, they're different subscriptions, but, yeah,
- 11:55for for, like, web apps, there's a lot
- 11:57of settings, and I had to go through
- 11:58and manually compare them all. And, yeah, that
- 12:00was a bit of a painful exercise, but
- 12:02you kinda teach them that that's not the
- 12:04way to go. So we've kinda put delete
- 12:06locks in them or or making sure that
- 12:08there's PIN so that they don't they don't
- 12:09have access to go and do things unless
- 12:11they elevate and and and do that kind
- 12:12of stuff. Gotcha. Do you also find that
- 12:15you like, maybe those more traditional migration customers
- 12:18to teach them a little bit about I
- 12:20I imagine you need to wear a little
- 12:21bit of your software development hat and and
- 12:24kinda get into
- 12:25software development life cycle Yep. Because infrastructure as
- 12:29code Mhmm. That needs to live someplace. Yep.
- 12:32That that Bicep file
- 12:34and the history of it and the versioning
- 12:36of it, it's Yep. Gotta be in Azure
- 12:38DevOps or GitHub or hopefully some type of
- 12:40repository that's not your OneDrive or your desktop
- 12:43or a little thumb drive over in the
- 12:45corner. Yeah. That's the thing. You you have
- 12:46to source control the the infrastructure as code.
- 12:49And then, normally, what I do is internally,
- 12:51where I work, we we will create the
- 12:53repos for our customers.
- 12:55And then I'll I'll lay all the bicep.
- 12:56And then if they want, we'll give them
- 12:58the bicep and put it into their Azure
- 12:59DevOps, and then they can run pipelines. But
- 13:01we tend to do it in our repos.
- 13:03So it's me that's writing all of the
- 13:04code, and then they just they just review
- 13:06it and and check it. But, yeah, it
- 13:08needs to make sure that it's source controlled
- 13:10without doing proper proper proper pull requests and
- 13:13and rep approvals and all that kind of
- 13:14good stuff. Yeah. I also help build the
- 13:16pipelines for them because a lot of customers
- 13:18like, we've got infrastructure as code, but how
- 13:19do we deploy it? It's like, they don't
- 13:21want I'm gonna introduce you to our friend
- 13:23Gamel. Yeah. They they don't want me to
- 13:25deploy to production from my machine, which is
- 13:26totally fine. Well, I have to set up
- 13:28the pipelines for them, and then sometimes customers
- 13:30don't know how to do that as well.
- 13:32So I will build the ammo and build
- 13:34all the pipelines for them, and then then
- 13:36they're in a good place. But sometimes they
- 13:37just don't quite understand because on on prem,
- 13:40they're just manually changing things, and then they
- 13:41wanna do the same in the cloud. And
- 13:42they're like, no. Please don't. That's not really
- 13:44best practice. So so I learn and you
- 13:46just have to keep keep on the on
- 13:47this case and make sure they're doing the
- 13:49right things.
- 13:50It's quite funny sometimes. That reminds me of
- 13:53like sitting down with my kids maybe and
- 13:55like,
- 13:56no, don't do that. Yeah. Exactly. I I
- 13:58really need you to go do your homework.
- 14:00I mean, you tell them don't do that,
- 14:01they'll let it. But we've got it working
- 14:02then. And I'm like, yeah. You got it
- 14:03working, but it's not repeatable. And and eventually,
- 14:06it's things in that they need to do
- 14:08things properly. Gotcha. Yeah.
- 14:13Do you feel overwhelmed by trying to manage
- 14:15your Office three sixty five environment? Are you
- 14:18facing unexpected issues that disrupt your company's productivity?
- 14:21Intelligink is here to help. Much like you
- 14:23take your car to the mechanic that has
- 14:25specialized knowledge on how to best keep your
- 14:27car running, Intelligent helps you with your Microsoft
- 14:30cloud environment because that's their expertise.
- 14:33Intelligent keeps up with the latest updates in
- 14:35the Microsoft cloud to help keep your business
- 14:37running smoothly and ahead of the curve. Whether
- 14:39you are a small organization with just a
- 14:42few users up to an organization of several
- 14:44thousand employees,
- 14:45they want to partner with you to implement
- 14:47and administer your Microsoft cloud technology.
- 14:51Visit them at intelleginc.com/podcast.
- 14:55That's intelligink,.com/podcast
- 15:02for more information or to schedule a thirty
- 15:04minute call to get started with them today.
- 15:06Remember, Intelligink focuses on the Microsoft cloud so
- 15:10you can focus on your business.
- 15:14And how much do you find
- 15:16that
- 15:17you you you kinda spend your time just
- 15:19keeping up with the churn of Azure? And
- 15:21and as you see so you mentioned maybe,
- 15:23like, deploying, like, a web app for a
- 15:24customer, and they had two environments and a
- 15:27setting changed over here and over here. Web
- 15:29apps are also changing as as they go,
- 15:31things like that. Like, how do you think
- 15:32about that as an architect and incorporating
- 15:35maybe additional parameters into your templates and Yeah.
- 15:38It's it's challenging. Yeah. I mean, I I
- 15:41do a lot of training and and when
- 15:42you're doing training and have the slides and
- 15:44you're like, let's go into a storage account
- 15:45and deploy a storage account and the settings
- 15:47will change because the the the UI of
- 15:49the the portal updates quite a lot and
- 15:51yeah. It's challenging. It definitely is. So to
- 15:54kinda keep on top of that, we are
- 15:55making use of what's called the Azure verified
- 15:57modules. So within Bicep, Microsoft are working on
- 16:00this Bicep kind of ex they extract the
- 16:03modules for you, they write the modules for
- 16:04you, and then we just call them. So
- 16:06they've got an ongoing GitHub project called Azure
- 16:08Verified Modules. They've pretty much got all of
- 16:11the Azure resources built, and we just call
- 16:13that. So we make use of that, which
- 16:14is which is awesome. Going forward, Microsoft are
- 16:16kinda trying to push everybody towards using Azure
- 16:18Verified Modules. So that helps a lot. So,
- 16:21yeah. So I I work in Azure storage.
- 16:23Mhmm. I'm I'm one of the people that
- 16:25signs off on those on the on those
- 16:27verified modules for for the team that that
- 16:30builds them and pushes them out there. I
- 16:31think it's a a very interesting model that
- 16:34that's kind of moving there. If you think
- 16:36about, like, being a customer in the past,
- 16:39you might have gone to Microsoft and read
- 16:41the documentation or landed up in a samples
- 16:44repo, things like that. But you were largely
- 16:46left to your own devices. Yep. And and
- 16:48sure, there's
- 16:49support there. Yep. And and you can reach
- 16:51out to CSS, but they might have to
- 16:53Microsoft customer support. But they
- 16:56they kinda have to do some debugging and
- 16:58and things with you along the way. So
- 16:59one of one of the niceties
- 17:01of AVM or those Azure Terraform
- 17:17modules in there Terraform modules in there as
- 17:19well. So it's not just Bicep. It's Bicep
- 17:21and Terraform. They're there. And and one of
- 17:23the things that I like about those
- 17:25is
- 17:26not only the kind of nice sample nature
- 17:29that's there, they've also implemented a bunch of
- 17:31best
- 17:33practices and learnings that come in. Like, I
- 17:35I know when we were working on the
- 17:36storage modules and kind of working through that
- 17:38partnership, there was a lot of kind of
- 17:40things around best practices,
- 17:42best default state. What's what's what's just like
- 17:44the best configuration? If somebody picked this up
- 17:47and they did a fire and forget deployment,
- 17:49what's the best state that customer needs to
- 17:51be in and where they need to be?
- 17:54So there there's a lot of that in
- 17:55there as well. Like, zone of resiliency is
- 17:58a consideration from the front
- 18:00and being able to tie that all together.
- 18:02So
- 18:03I I think as AVM matures,
- 18:05it'll definitely become a a good place for
- 18:09customers to to look to. I have a
- 18:10lot of my customers come to me today
- 18:12and say,
- 18:13why EVM?
- 18:15Especially my Terraform customers, why EVM versus
- 18:18the HashiCorp modules or the
- 18:21or or something else that's out there in
- 18:23open source. And,
- 18:24really, I think the biggest thing is the
- 18:26supportability
- 18:29built, maintained,
- 18:31supported
- 18:33by Microsoft,
- 18:34and
- 18:35customers get that support as well. So I'd
- 18:38encourage anybody to go out and take a
- 18:39look at APM.
- 18:41Some of the modules
- 18:42are kind of in a beta state, alpha
- 18:44state. They're they're they're in various states of
- 18:46release.
- 18:47But as that gets sealed up across all
- 18:49the services that are out there, it becomes
- 18:51kind of a broader ecosystem over time. One
- 18:53of the best things I think is you
- 18:55can you can put that in a design
- 18:57for a customer. So I'm designing right now,
- 18:59design document, I can tell them all this.
- 19:01And the documentation for the Azure verified modules
- 19:04references the Well Architected Framework. And one of
- 19:06the best things about the docs for EVM
- 19:08is you can go to usage examples
- 19:10and the bot one is always well well
- 19:12architected framework and it shows you the Bicep.
- 19:15So the docs for Bicep alone are sometimes
- 19:17a little bit tricky to to figure out
- 19:19what is the ID reference, what is what
- 19:21it says it's an array, the property might
- 19:23say an array and you're not sure what
- 19:25goes in that array. But the AVM, the
- 19:27well architected framework, has very nice examples of
- 19:30how to deploy things with best practice in
- 19:31mind to that. That's one of the keys
- 19:33of using it, I think. Yeah. And it
- 19:34will it will make it better going forward.
- 19:36Yeah. Yeah.
- 19:38Not just just raised, but, like, the the
- 19:39fixed enums, the fixed values. I think it's
- 19:42a kind of good set of,
- 19:44if not best practices, certainly like guardrails or
- 19:47referential material. Yep. In the case of, like,
- 19:49a storage account, you you don't we might
- 19:51want the underscore, like, standard underscore LRS versus
- 19:54just standard LRS. Like, whatever it happens to
- 19:56be
- 19:57as as you're pumping those things through.
- 20:00I I I'm curious because you you you
- 20:01mentioned kind of architectural docs and design docs
- 20:04and things like that. Do you take advantage
- 20:06of kind of any of the tooling that's
- 20:09out there? Maybe do you have a favorite
- 20:10one for, like, visualizing your templates and the
- 20:13resources that are visualizing,
- 20:15I Yeah. Sometimes I just when I deploy
- 20:17the bicep in Visual Studio Code, you can
- 20:19get a a resource visualizer. But one tool
- 20:21I'd really like to call out is what's
- 20:23called the AZ quick review, AZ QR. I
- 20:26don't know if not a lot of people
- 20:27know about this. I have not heard of
- 20:28this. So it's an ex It's a cool
- 20:29name. It's a GitHub project. It's a open
- 20:32source GitHub project. And if you run that,
- 20:34so what we do is we run this
- 20:35tool after we've built the the bicep. We've
- 20:38run the pipeline. The last step of the
- 20:40pipeline is you can point it at your
- 20:42subscription where you've just deployed it. And against
- 20:44the way I'll architect the framework, it'll generate
- 20:46a CSV that lists all the resources. It
- 20:48will tell you your security scores. It will
- 20:50recommend
- 20:51what you've not done, what you should do.
- 20:53And it's very in-depth and it is very
- 20:55good for finding out like, oh, I'm using
- 20:57service endpoints. I should really be using private
- 21:00endpoints. I'm not using TLS 1.3 or 1.2.
- 21:03It'll tell you all that good stuff that
- 21:05is built in. So we just call this
- 21:07tool. You can run it against a tenant
- 21:09and do all the subscriptions. You can run
- 21:11it against an individual subscription or you can
- 21:13even do it against a resource group and
- 21:14even a resource. And it prompts out a
- 21:16CSV file at the end and you redo
- 21:18that as part of the build. You get
- 21:20the art artifact from Azure DevOps, and you've
- 21:22got something to show the customer. And you
- 21:24can do that. You can run that tool
- 21:25at any point. So if you're not even
- 21:27using Bicep, you can still run the tool
- 21:28against your environment, and it'll give you a
- 21:30list of recommendations. So excellent. It's really good.
- 21:33I wish Microsoft would look take maybe even
- 21:35do something towards using something like that because
- 21:37it's really useful. Once you've deployed your your
- 21:39infrastructure's code, it basically gives you a score
- 21:41and says here's the good parts, here's the
- 21:43not so good parts. Go and fix that.
- 21:45And that's, again, against the well architected framework.
- 21:47So it's building on top of AVM as
- 21:49well. Gotcha. Yeah. So what what's your
- 21:51favorite
- 21:52feature in Bicep?
- 21:54Favorite feature in Bicep? Oh, that's a good
- 21:55question. Let me think. I only think. Favorite
- 21:57feature in Bicep.
- 21:59I like the Bicep parameters. So that's a
- 22:01kind of when you have a a main
- 22:02dot Bicep file, and we talked about before
- 22:05where you're deploying the dev environment, the test
- 22:08environment, and the production environment, these three environments
- 22:11may differ just from the the size of
- 22:13the VM, let's say. So the VM for
- 22:15dev may be like a a small VM,
- 22:17and then you can have a para a
- 22:19bisect parameter file for the the dev environment.
- 22:21We've also got one for acceptance and prod.
- 22:23So the acceptance and prod
- 22:25variables will consider a larger VM, more disk
- 22:28size, maybe an extra disk. So you can
- 22:29configure all that and bicep. So that means
- 22:31that you're deploying all these resources with three
- 22:34different environments with the three different settings. So
- 22:36that, I really like that. I think that's
- 22:38really cool. That's been out for a while.
- 22:40Yeah. It's it's a good way to rationalize
- 22:41things through, like, because often it's t shirt
- 22:44sizing. It's small, medium, large. And that's much
- 22:46easier for somebody to figure out than what's
- 22:49a d sixteen
- 22:50Yep. V five or v six or Yep.
- 22:53Oh, oh, no. A d 16 s versus
- 22:55a d 16. And and and you can
- 22:57kind of bake that logic in into your
- 22:59own custom
- 23:00enums along the way. What what do you
- 23:02see as kind of the biggest
- 23:04kind of stumbling block or or pitfall with
- 23:07your customers and bicep today? Like if somebody
- 23:09is new to it, like,
- 23:10what are one or two things that they
- 23:12should look out for? A lot of our
- 23:13customers believe us to write the bicep, which
- 23:16getting them on board is quite tricky. You
- 23:18just have to, like, we will write the
- 23:20bicep and kinda sometimes they want to take
- 23:22the repo off of us and look at
- 23:23it and and they don't have the skills
- 23:24to learn bicep. So scaling them on on
- 23:27that is is sometimes a bit of an
- 23:28issue. Yeah. They they just want someone else
- 23:30to deploy it and then then they'll they'll
- 23:31put their workload on. So
- 23:33we tend to just look at the device
- 23:34that fall and deploy that. So it'd be
- 23:36nice if some of our customers had people
- 23:38who learn the device as well just to
- 23:40just to so when we are not that
- 23:41not around and they want to change it,
- 23:43then I've got other people to do that.
- 23:44Gotcha. And how about when you're out there
- 23:46training? You mentioned you're an MCT Mhmm. So
- 23:48a Microsoft certified trainer. Yep. Kinda what are
- 23:50the things that you point out to students
- 23:53to look out for? In terms of In
- 23:55in terms of
- 23:57maybe maybe not pitfalls of bicep, but here's
- 24:00some things that you should think about. And
- 24:03because like any other
- 24:05language, like it is a domain specific language,
- 24:07it's got a set of constraints and kind
- 24:09of guardrails in it and and and rules.
- 24:11Yep. But those also often come with new
- 24:14ways of thinking about things, and here's how
- 24:16you have to
- 24:17adapt your thinking. Or the way you did
- 24:19it over here in Arm might be a
- 24:20little bit an Arm template, a resource manager
- 24:23template might be Mainly around structuring the code.
- 24:25So what I like to do is I
- 24:27put all the parameters at the top, and
- 24:28then I'll have the variables, and then I'll
- 24:30draw like a line and the styles across
- 24:32the code, and no hard coding from that
- 24:35point onwards. So I try and teach people
- 24:37to make sure that the modules that you're
- 24:39calling, there's no hard coded locations. It's all
- 24:41parameterized at the top. It's all well documented.
- 24:44In Versus Code, you can use, a
- 24:47Versus Code Copilot and you can get it
- 24:49to document everything for you. Put descriptions above
- 24:52all your modules so that everyone knows what
- 24:54what the code does. I'm a firm believer
- 24:56of leave the code in a good state
- 24:57so that some if I'm off, someone could
- 24:59pick up the bicep and try and figure
- 25:00out what it's doing. I'll generate a diagram
- 25:02as well and put leave that in the
- 25:03repo so people can see what I've deployed.
- 25:05Some of the pitfalls I always think are
- 25:07when you're using Versus Code as a beginner
- 25:10in anything, they say generate generate this for
- 25:12me and you never really learned, you know,
- 25:15I'm always worried that like you can let
- 25:16it fly from reading a book, but the
- 25:18minute you're sitting in a cockpit and try
- 25:19and fly a plane, you really struggle. So
- 25:21you need to get hands on and learn
- 25:22what things do. A good example is in
- 25:24a module in Bicep, you have the name
- 25:26of the module, you have the name of
- 25:27the deployment, and you have the name of
- 25:29the, like, the storage account for example, and
- 25:31those three names are different. And I see
- 25:32a lot of people creating the module called
- 25:34create storage and then they'll put the name
- 25:36of the deployment, create storage, and then put
- 25:37the name of the storage account, create storage,
- 25:39and then they'll start there and go, why
- 25:40is that not working? Because they haven't learned
- 25:42the reason these three parameters are slightly different
- 25:44even though they're all called name. So So,
- 25:46yeah, there are one or two pitfalls of
- 25:48learning it. But the other thing to do
- 25:49is if you're really stuck, deploy the resource
- 25:52using ClickOps and then go into the arm.
- 25:54You can export the template. Now the feature's
- 25:56coming out, but you can click on generate
- 25:57bicep and it'll actually show you the bicep.
- 26:00So sometimes you need to figure out, like,
- 26:02a good example might be TD encryption SQL
- 26:04Server. You deploy in the portal. You type
- 26:06the you type the portal, and then you
- 26:08can see the bicep and see what the
- 26:09setting is to turn that on. And that
- 26:10that's always a good way of kind of
- 26:12reverse engineering your bicep. I think if you're
- 26:14doing things like
- 26:15Azure firewall rule collections, the the documentation is
- 26:18quite tricky to kind of follow it. So
- 26:20you you deploy it by hand and then
- 26:21work out what goes where and then it
- 26:23needs to be in the right order. So
- 26:24that's that's always that's always a good way
- 26:25of doing it as well. That's one of
- 26:27the biggest pitfalls is figuring out what does
- 26:29the parameter mean? What what's it expecting? Yeah.
- 26:32Yeah. I do that with customers a lot.
- 26:34They they come in often
- 26:35they they I I think their intentions are
- 26:38good. Mhmm. So and and I I tend
- 26:40to be the same way. Like, I I'd
- 26:41rather get hands on with it than go
- 26:43read a book about it. Yep. And so
- 26:44I'll often just start opening Versus Code and
- 26:47and
- 26:48then, oh, it doesn't work. It's broken. But
- 26:50that trick of going to the portal and
- 26:52let me see how the portal does it
- 26:54because I I always used to when I
- 26:55was a trainer and and doing the
- 26:58the infrastructure exams, the the one point I
- 27:00always wanted my students to take away was
- 27:03the Azure portal, when you're deploying something or
- 27:06you are updating something, it is an ARM
- 27:09expression generator. Yep. So it it's great at
- 27:13expressing those values in a way that, like,
- 27:15you can go get to the end and
- 27:16and get the template. Get the ARM template.
- 27:18Great to hear that they've got get a
- 27:19bicep template coming. That that that's certainly a
- 27:22a nicety that's there. You also mentioned working
- 27:26in Versus Code, GitHub, Copilot, things like that.
- 27:29I haven't played around with ARM templates too
- 27:31much or really gotten hands on with with
- 27:33Bicep with GitHub Copilot, but I do a
- 27:34lot of PowerShell and Bash. Super helpful there.
- 27:37What's your experience been? Is is it a
- 27:38good Oh, fabulous. Good augmentor Yes. Where even
- 27:41for, like, new thing where it's Yeah.
- 27:43Yeah. You can actually one of the things
- 27:45that people might not know is I talked
- 27:47about AVM modules. You can go into GitHub
- 27:49Copilot and reference that external GitHub repo and
- 27:52ask it to generate bicep based off of
- 27:54that project. So instead of it gen writing
- 27:56generic bicep, it'll actually write bicep that's targeting
- 27:59the Azure verified modules, which is really good.
- 28:01So I use it to generate documentation.
- 28:04If I'm doing if I'm even if I'm
- 28:05doing bash scripts or I'm looking at someone
- 28:07else's script, I always do slash explain and
- 28:09it'll it'll explain to me what the script's
- 28:11doing. That's also very helpful. Mainly generate documentation,
- 28:14putting your variables at the top, making sure
- 28:16there's descriptions on everything, and kind of explaining
- 28:19I was trying to write a little bit
- 28:20at the top of the file on explaining
- 28:22what I'm trying to do. Like, what I've
- 28:24maybe I've taken a what I sometimes do
- 28:26is I'll go to the Azure Architecture Center.
- 28:27I'll look for the zero trust diagram. I'll
- 28:30deploy that as an example when I'm teaching
- 28:31someone Bicep, and I'll put in the link
- 28:33to the diagram, explain all of the resources
- 28:36at the top of the the Bicep file
- 28:37so that people have got some understanding before
- 28:39it's doing. Because that's what I tend to
- 28:41see is when people are deploying Bicep for
- 28:43the first time, they don't know how to
- 28:44make resources talk to each other. So someone
- 28:46will create a storage account, someone will create
- 28:48a manager of the entity and a SQL
- 28:49Server, and then they'll say, how do I
- 28:51get the manager of the entity to talk
- 28:52to the SQL Server to get to go
- 28:53to the storage account? And then that's where
- 28:55it starts to get tricky. You you just
- 28:57need to read the docs and spend a
- 28:58lot of time in figuring it out or
- 29:00deploy it manually and reverse engineer. That's that's
- 29:02the way forward. I think it's always been
- 29:04hard to figure out the Mhmm. Dependencies. Yep.
- 29:06And
- 29:07I don't know if there's just an easier
- 29:09way to do it. It's just the the
- 29:11way the system comes. Yep. If I give
- 29:12you a bunch of Legos,
- 29:15your Lego house needs to look different than
- 29:17mine sometimes. Yep. And sometimes that just turns
- 29:19into, like, oh, we dumped the whole thing
- 29:21out in front of us, and now we
- 29:22now we gotta figure out how that composes
- 29:24and and and how all that goes. Some
- 29:26of the other nice things is the Bicep
- 29:27configuration files. So if you're not used to
- 29:29that or you don't know about that, you
- 29:31can add a configuration file where you can
- 29:32say, like, don't show warnings.
- 29:34You can say, only use the latest version
- 29:36of AVM modules. That's a nice one. So
- 29:38if a new version of the module comes
- 29:40out, your code won't build and you have
- 29:42to go and change the code or you
- 29:43can make an error or a warning. Kinda
- 29:45kinda like, you know, I I might with
- 29:47the container. Yeah. Exactly. Say, hey, play all
- 29:48the latest image tag kind of thing. The
- 29:50one thing that we were talking about earlier
- 29:52is it would be nice to know if
- 29:53the underlying API has changed from version 0.12
- 29:57to 0.13,
- 29:58what are the changes? That's one thing we've
- 30:00we've we've asked for for some sort of
- 30:01feedback on, like, what was the difference between
- 30:03the previous API and this API? Because nobody
- 30:05really knows and it's really hard to find
- 30:07the docs. So that that would be an
- 30:08interesting nice change. I use I use Copilot
- 30:11all the time. And the more you use
- 30:13it, it starts to get frightening. You you
- 30:15start you may write Bicep for an Azure
- 30:17Firewall and it just knows that you're gonna
- 30:18write an Azure Firewall policy next. It's like
- 30:21it's like how did you know that? It's
- 30:22really, really smart. It's super useful and saves
- 30:25a lot of time. Thanks for taking the
- 30:26time to chat with me today. Thanks for
- 30:28having me. Let you get back over to
- 30:30MVP Summit and get some good learnings and
- 30:33and give us some good feedback and Will
- 30:35do. Thanks for coming in. Thank you. Thanks
- 30:38for having me.
- 30:41If you enjoyed the podcast,
- 30:42go leave us a five star rating in
- 30:44iTunes. It helps to get the word out
- 30:46so more IT pros can learn about Office
- 30:48three sixty five and Azure.
- 30:50If you have any questions you want us
- 30:52to address on the show, or feedback about
- 30:54the show, feel free to reach out via
- 30:56our website, Twitter, or Facebook.
- 30:59Thanks again for listening, and have a great
- 31:01day.