bonjour hi welcome to this new episode of cloud in five minutes
I`m Frank Boucher Microsoft cloud advocate and today I want to show you
how you can follow every penny consumed by your last application in
Azure using the cast management
so you just publish your last application but you're worried that you
will receive a huge invoice at the end of the month with this video I want to
show you how you could monitor one application or a full subscription using
the cost management so here I have a very simple web application that I that
I did very simple you could you know create some blue
shade ping let's say I had the color a blue edge here
see what I did there so very simple application using a few resources
database and things like that in fact let me show you what I used so this is
the azure portal so portal de Dycker comm and here are the resources I'm
using so it's a app service I use also application insight to get all the
information about my application I have a database that it is running as a
service so I don't need to manage it at a service plan and have some storage
so I want to visually I want to visualize and monitor all that
consumption for this application all this application was deployed in the one
resource group called cloud five net cost management demo so I want to track
everything that is inside this so before we get started let's just create a
dashboard I will explain why it could be useful after so to create dashboard you
go here at the root at the top top left and you select dashboard now you click
this button new dashboard here and you just give it a name so let's call the
Blues because my website show different shade of shade of Blues perfect so now I
have a new dashboard we'll come back to it later so now let's find this cuss
management page so I could go ear top left corner and look for it maybe it's
not there maybe it's not available so what I can do is type here and just type
cuss management and I will I should find it
so great so now I'm in the cast management custom anagen is bunch of
tools so it's a toolbox that will help you to plan visualize and optimize your
resources in Azure and it's all related to money of course so there's plenty of
tools and resource and in fact at the end of the video I will also share you a
lot of links where you could learn more about custom arrangement see what's
coming and even try them before but for today what I want to show you is those
tool here so Caston else is cast alert and budget so let's start with cost
analysis so it will show my subscription we see here in the scope that's the name
of my subscription is a subscription that I use to create demos and there's a
few resources available available here of course I already have some views
created for me so right now I'm in the accumulated cost but I can switch and go
let's say cuss buy resources and every time I found something interesting
I could pin it but remember what we were looking for is to see the resources and
focus on my application so what you can do here is add a filter here and now we
have plenty of option but in your case we'll use the resource group name we'll
just select the one we are interested so cloud 5-minute cuss Center demo now I
have the information for my application so since I'm interested I will pin that
so I will pin using this pin board here and that will go add this chart to my
dashboard we'll go back later we'll just spend a few more so let's say right now
I would like to have a daily costs so again that's cool I have my daily costs
but it's for all my subscription so what I want to do here again I will go there
say by group name and I will select my resource group so
that's perfect we see it's very recent I just deployed this thing of course you
could do it when you have resources that already exist but you know if you want
to track as day one you can just go there and do those things so that's
great I have a lot of information now we'll be able to track it but I don't
want to go every time in the depart all and do all those clicks so what I can do
is save this requests all could click here to save as and give it a name so
let's call it the my daily and I could make it private if I want the beauty of
this is this is all based on Active Directory so you could give very
specific permission on who can see what kind of information in those reports so
that's pretty cool let's also pin it don't forget that and if you want to use
this report inside for example a PowerPoint or a document you could
export it so what you can do do here is click that export button and now you
could export it as an image PNG or an excel file or CSV file to treat it in
another source of information not on or maybe power bi you could even do a
schedule export so every day or every week or once a month extract the
information put that in a blob storage or somewhere else and then another
process will start from there and process it so that's really cool and now
you can customize all those views before we go back to the dashboard
let's switch and see how the cost alert and budget works together so let's
switch to customer and we'll create a new cast alert so to create one or click
the Add button and now I see the scope it's my full subscription but I just
want and specific alert for that application so again same thing well add
a filter we'll use and again you could use many
different kind of filter here I'm just always using the same because my focus
today is for a specific application so that's perfect
so now I have it so let's see monthly bluemax that's the
name of my budget so it will be a monthly back could go quarterly or
annually if I won't have different kind of budget and alerts and now I could set
an expiration date if it's just the beginning that I'm worried about or if
it's a long term of course you can edit them after and then you will put a limit
so let's say 100 bucks for me it's a simple application and honestly I'm not
I don't have the impression that my shade of blue will be that popular so
then if I go next now I'm creating an alert so I would say you know what when
I'm at 50% of my budget I want to do something so application and now if I am
at 90 all I want to also do something else add someone in an email email list
or multiple people if you want and then you have a lot of information right now
since my application is very new nothing is show here but of course if
it's an application I exist for a little bit longer you have more data available
so down you created it will validate that the email is enough sha-1 and
everything is ok and you will have created your first budget and alert
perfect budget was created excellent so now I have a few information but that's
pretty cool when I'm in the portal but let's see the dashboard that we create
so again to see the dashboard we just click here and the dashboard on the top
so now I have my dashboard remember I click on the source and my daily that
was my specific worry that I did of course you can be more creative so let
me show you another one that I create so that's the one I create before so again
there by day the accumulated cost maybe I want to see the curse by review maybe
I want to see the accumulated cost through my subscriptions so in a
dashboard you could mix everything so this is a view where I compare my other
resources to my specific application and then you could add a markdown so I have
an in or something information some
information support number everything you want and I even here
put some application inside dashboard to visualize and now I see that my
application in fact is having some trouble and I should have a look at it
that was pretty quick because my focus was just to show you the point of the
iceberg so we knew that is possible but if you want to learn more you should
definitely go to the MS module there's a small module very quick to do but it
will show you everything that is possible to plan visualize and optimize
your resources in Azure so the link should appear somewhere but I will put
all links also in the description another very nice place is this cuss
management labs where you could try in preview every new feature that is coming
up and lucky for you cuss management is also available on YouTube and you have a
lot of videos available there so you should subscribe so I hope you like this
video and I hope it was useful if you have any question don't hesitate to
write them in the questions and talking about questions let's see what I have
this week so the first question this week comes from Sean and he's asking if
I have one repo for visual studio solution that contain a web app deploy
in a Azure app service and a number of different asher function project can i
configure this see icd such as one chicken that the repo will deploy all
resources in their respective destination of course you can sean for
that I will suggest using an arm template to create all the resources and
then have a few action a few steps that will deploy every of those solution so
there's no problem for that you can definitely go check also how I build
that my CI CD in another video I did open the link somewhere and I hope it
helps you so the next question comes from Steven Penna
is asking what is the Visual Studio code extension that populate those resources
and update all those property when as you type so Steven I'm using the
official Asia resource management arm template tool
and I will put the link in the description I use that all the time it's
a huge time-saver and very very very very useful the product team is also
working very hard to add new feature in that extension so it's definitely
something you should install and keep up to date thank you for watching to know
more about cast management you could go on their Channel just over here or here
another video of cod in 5 minutes see you next time bye
I'm done now you could go anytime