Bonjour, Hi! I'm Frank Boucher Microsoft Azure MVP based in Montreal in Canada
and today I want to talk about the ARM template you shouldn't be afraid of them
and I want to show you how you could start right now using them. Aussi
if you prefer, I have an English version of this video. Just click here in the top right corner.
the arm template are a little bit monstrous they could be scary like big
blob of data that we don't know what it is but in fact they are pretty simple an
arm template stands for either a resource manager and they are in fact
just adjacent file that described the architecture of your project not the
binaries just the structure the arm template are really great you define
your structure and then use them with a parameter file the two together could be
deployed in many different environment and you will change different parameters
depending on the environment you're deploying in so for example I will have
the same structure for my VM however the size of the VM could be a parameter and
based on that parameter I will deploy a way smaller VM in a dev
environment than in production it will be the same structure the same code
except the parameter will change the size of my VM also when you deploy a
sure will do its best to paralyze as much as possible are there resources
based on the dependency you define in the arm template so it's really the
fastest way to deploy arm template are also pretty easy to deploy that's why
they are so convenient for a develop practice in fact any text editor will be
perfect for arm templates since they are only JSON file but I will you show you
treat of the tool that I use frequently first you can go in the add reporter and
click on this big plus green icon create resource and search for template
deployment here you will have the commons one and you could also check
what's available from the github QuickStart of course those are simple
example and they are just waiting for you to customize them a second tool is
Visual Studio code you could use it right away
like and text-editor but if you install the
extension asher a resource manager tool you will have a lot more functionality
that will help you let's have an example if i type arm in any json file i will
have a lot of options and I could create adjacent file right away in fact let's
have a look this is the arm template at its simplest expression it's a list of
parameters a list of variables a list of resources and finally a list of outputs
a very common mistake when we start doing arm template is to have too much
parameters we put everything in parameters this will make your arm
template difficult to use you should instead use less parameters and leverage
the variables and make smart choice in that section to know more about the best
practices on the arm template you should have a look to my other videos I will
put the link in this description another tool to play with arm template is of
course the visual studio ABI or like I call it the big visual
studio to create an arm template when you create a new project you will go in
the section cloud and click the add a resource group and click OK
lets you you could start right away with many different options but for now let's
click an empty one and there it is we have our projects so for us Visual
Studio create empty JSON file a parameter file that is in fact another
JSON file and a PowerShell script to deploy this PowerShell script is really
useful and manage a lot of exceptions but you don't need that you could use as
your CLI or other system to deploy your arm template let's try to do a simple
arm template what I like about visuals Joe is this JSON outline here on the
left of the screen it's really convenient to add a new resource I just
need to right-click on resource and I had a new resource now I can pick from
many different options
but for now let's create a web app so I just enter the name of my web app and I
could also specify my service plan or if I don't have one I will create a new one
and just like that I have now two resources that I've been added to my
home template again with this tree view here I can navigate quickly between the
resources and even see that I have now a variable and two parameters that have
been created the only thing left now is to deploy it
so to deploy it of course I could use the PowerShell script or I could even
just right click and deploy very convenient so the best way to get
started with arm template is to start little take a simple VM or a web app or
a database keep it simple and deploy that and try to understand what's
happening and had more component more resources in it that way will be much
easier to deploy if you would like to know more about the arm template you
could watch this other video where I explain the best practices or you could
watch here another video of cloud in five minutes I hope you liked this video
and I hope it was useful see you next time