bonjour hi welcome to this new episode of cloud in five minutes i'm frank
boucher and today i want to show you all the different
ways that you could manage your azure
resources
whatever you are running on linux mac or windows
that you are on the go or always at your desktop there's
plenty of ways to manipulate or manage your azure resources
today i want to show you the five ways that you could manage your resources
of course every way as this pros and cons
but let's get started with the first one the
azure portal of course the azure portal is
fantastic is the by default option when you want to know
more about a resource or if it's just the first time and you're looking around
so here i am in the portal so it's portal.azure.com
and by the way all the link i will mention will
probably appear in the screen and of course they will be available
down below in the description so i'm in the azure portal it's very
convenient you could search here with the search bar
anything that exists that you would like to
create or that you want documentation about so this search bar is really
really powerful but let's say i want to create
a storage so a very easy way i could click this
button here create resource most of the time people will refer to
the green plus button in the top left corner
so you click here and then you have the azure marketplace and this is awesome
you have tons of ways to see all your things
and you can manipulate those like this so let's say for example i want
to create a storage account so we'll go scroll i have a category here so i'll
click storage and now i just want the default one
voila i will pick my subscription create a name create a new resource
group resource group or just logical group so it's easy that way to
deploy a bunch of resources together to keep
them all together to maybe do some reports or
something like that and when you want to delete
you could delete the resource group and all the resource inside that resource
group will be deleted also that's pretty
convenient then we just need to give it a name so that's cool
and i will keep the other resources by default i click
review it check some validation and now create to create the resource very easy
now i just need to wait for a few minutes
and my resources would be created voila the resource is created so let's go
jump into the into the resource so now i'm in the
resource blade and it's always the same pattern
on the left i have many different options
for every property i have for that specific resource so for every resource
that could be different some will be the same but some will be different so
always have a look and again don't spend your time scrolling and
scrolling if you're searching for something let's say
i want to export an arm template for this
specific resource i don't need to search export i could go here in the top
and search export and right away i will have it
export template very convenient and then i could explore
all the property of my resource and that will be the same for
all the resources that you have deployed so really really really easy there's
always documentation most of the time it will be in the last
option so you have like the resource held new support
requests if you want something there's documentation available quick
start also so see here there's plenty of tools to help you get started with
different language so a lot of information the portal is
really packed with bunch of options definitely an option to check if
you are interested to learn more about the portal and how it can help you to
manage all the resources and also a little bit about the other
option i will cover there's an excellent learn module in the
azure fundamentals so microsoft learn it's there really well done very
convenient if you prefer reading instead of
watching a video so the second option i want to talk is the
azure powershell so of course it's nice when
we do the first vm or the first thing we deploy to the portal
it's really easy it's visual it's nice but you know when we want to deploy
things we most often will script things so
there's plenty of options here but the first i want to talk about and
there's no priority here just like i'm picking one
it's the azure powershell so in this page on the documentation they will
explain how to install it and by the way powershell now run on any
os so very convenient so here it will have an information to
install update and stuff like that and if you go
on reference it will give you by resource type everything you should
know to create manage all the resource
let's have a look so i'm here in my terminal windows terminal by the way you
should definitely look at that if you're on windows and
let's say i want to create a new azure storage so i will do here the new
az resource group because i still need a resource group
and i will create it in the east us so here you see
it's very convenient it's always the same thing with the verb and then i have
the resource the name i want and i have auto
completion so if i want to know exactly what are the other property i
could do dash and then tab and i will have all the other
property but for now for us this is enough so we'll create
the resource it take only a few seconds creating a
resource group is very fast so now what i want to do is create that
account storage so let's do this so i want a new same thing a new
az storage account i specify the resource group that i just create
and i pass the name the sku i want and location
once again only few minutes i will create the resource
and i will have my my information and voila
now my resource group is created and if i want to query them and have more
information about different resource and i'm not talking only about storage
resource about other also but here i'm just keeping the
thing where we're creating so i could definitely do something like
a get a z storage account and i will receive
a list of all the storage account that exists in my subscription so this way
you could create many different resources when you do a
get go specific put that in a variable and build a very
interesting script so powershell is really great
well integrated in the windows environment but maybe
that's not where you come from so something else would be better for you
so that's why azure cli exists and azure ci
just like powershell will be cross-platform so
whatever platform you are azure sli will work
if we go here on that web page that's the start of the documentation the
overview you will have all the instruction to
install update or uninstall any version that you want and then if we
go again in the reference section will have just like in
powershell all the information we want by resources
so that's i want to create i want to know more about the resource group how
do i create one here we'll have a bunch of
example and it's exactly like that for every
resources both in powershell and cli but since we
are in cli let's see how we can create a azure
storage so we'll switch back to my terminal here
i am of course i'm already logged in but once
you are you could just create a new resource
in this case i want to create a you saw that coming right
a resource group of course so az for azure cli and then i say i want to
the object group and i want to create one i specify the name
and the location i run this it take only few seconds and i will retrieve
my resource group voila just like that now let's say i want to create a storage
what i can do is here again i want to do again the az
specifying the azure cli storage because it's the object i want this time to
create it's not a group it's a storage and it's storage
account because in storage you have multiple sub object
or sub resources so i want a storage account i want to create a new one
i will give it a name i specify the location
and again the resource group that we just created
so if i execute this it will take maybe a minute maybe a little bit less
and i will have my resource and voila just like that i have my storage account
created as you notice the return object is a json document so
very convenient so now if i want to query and see all
the other resources i have let's first let's
go on top of the screen what i can do is easy storage account
and instead of creating this time i want a list and here i specify the output by
this dash o and at any time let's say i don't
know what i'm looking for i could do dash h for help and i will have
all the information about the property i could do
so the dash o for output specify that i want the output formatted in a
table way it's a little bit easier to read than
the big json document so here i have i said just a little bit
just that my font is really big or can i make it smaller maybe
so if i make it smaller voila if i make it super smaller you see it's
a table there's a lot of information there
you know stay to the end i will show you a nice trick to format the output
another interesting way to manipulate your resource to manage your resource
when you're on the go and you just want to see or receive a notification maybe
you need to restart a vm or something like that you just want to see
some logs or like see some information there's a very useful thing that we all
carry that could help you and i'm talking about your
phone so here it is the quality of the image
right now is not good but trust me it is very pretty i will try to do
something else to make it prettier so here we are in the azure application
and i see right right away i have my
resource group i can see the service health
have my money down in the bottom and i could go in my resource group and
i have all the resource group i create and we see here i have the resource
group that i rename cloud5 in it and i will see
my storage account just there so right away i could jump like that
of course i don't see a long session available there but you know just for a
quick check or for deployment or see if the
deployment was done successfully or maybe see the error of the deployment
i think it's really convenient to have the phone
application so the phone application is available
on many different os just check in your app store so the last options i want to
show you is the cloud shell this is really
interesting because it's accessible from anywhere as long as
you have access to internet so you could access it through
shell.azure.com it's also available let's switch to the
portal in the top right corner there's the
button here where you could have the cloud shale splitting the
screen with the portal if you want but for a longer experience
a longer session i suggest you go at shell.azure.com
so here you have the you can have a session in bash or powershell
the way you want just like it and it will create a storage so here i am in
kind of my storage where i have i could save script and everything i
could install application so i have my little environment there
where i could have medical stuff and of course right now i loaded the
bash so i could run the same command we had
previously so azure storage account list with the output table that we saw
previously and expect the same result but like i
said i will show you a trick to customize the
output so first let's so first let's clean that
so what you can do is instead of doing the
output table you could add a dash dash query and then you specify
all object and you want the property call name and you will map name into it
and of course you could do the output again
in a table so this way you will only have the column you want
the name with the name you specify voila much cleaner right so azure site is very
efficient because you could from any computer jump and feel just
like home you have your script you have your tool
install it's a little from everywhere and the beauty of it it
will keep everything from session to session very
very convenient all the links are in the description i
hope you like this little video where i show you different
alternative and for the big question which one is the
best i think the portal azure portal is definitely the first option when you are
in exploration mode and then based on your
background the knowledge you have pick your language powershell or cli of
your choice and then from where you run it i think
it just depends of the context are you on the road
are you in your comfort of your computer that's up to you but know
that those two exist and are there to help you thank
you for watching see you next time