hi welcome and cloud in five minutes today I want to talk about a sure
container instance ACI. Also, if you prefer I have a French version of this video
Just click here in the top-right corner.
hello again let me introduce myself I'm Frank Boucher Microsoft Azure MVP base
at Montreal in Canada every week I publish short videos concerning the best
practices in Azure to be sure you don't miss anything
click on the subscribe button in the little bell icon these days we hear a
lot about containers Dockers and pretty keys and stuff like that
Asia has a great product that is in preview right now called badger
container instances or ACI this service is not meant to be hosting for a long
time of period let's say a website it's more to a short period of time where you
could provide very quickly a container do what you need with it and then delete
it I'll show you how to do it right now okay so for the demo of today what I
want to do is I will take a HTML document and convert it in a Word
document to do that I will use library called Penn duck for universal document
converter it's a well-known library that is available online and I will use it in
a container so using HTTP call I will call that container and convert it I
found on the docker hub a panda if HTTP available online on docker hub so we'll
use that one to create a container instance we have many different ways of
course you can go in the azure portal and create it using the UI it will work
perfectly also you can use the PowerShell command but for today I
decided to do a little bit different since container are very well used by
people being open source it could be in many different OS so I will use the
azure CLI and I thought it would be nice to use the cloud shell since I'd never
did it on this channel so what it's cloud shell to use it let's go in the
portal I will show you so cloud shell is a command prompt that
is available right through the portal just need to go in in the azure portal
and click on this little icon on the top right of the your screen you have two
different choices it could be power shell or bash for
today will will stay with bash so first we'll need to create a resource
group Oh a little tips to copy/paste in a
cloud shell it's shift insert so to create a resource group the command is
very simple is Asscher group create I'll call mine cloud in five minutes and I
will use East us of course you use the location of your choice
and just like that the resource group is created now let's create our container
so the command now is as your container since it's the new object we want to
play with and create we specify the resource group we just create so Cloud
five minutes and the name that name will be used to refer to your container and
then you specify your image so the panda HTTP the next parameter here is IP
address and I set it to public because I want to use postman to reach it you
could make it private also other parameter will be CPU and memory because
some time you will need more beefier container to know if your container is
ready one way is to use the command shows I'll just clean mass so easing
container and then we'll say show and we'll say the resource group Cloud five
minutes and the name was my and can if I didn't do any typos so now we see the
state is running sore container is ready and we have the IP address a little just
here so we'll take this IP and I'll go in postman
perfect so here it's the HTML code of a blog post of mine just to have some HTML
code so I paste it in the body also in the editor I put two headers except
ducks and the common type being text HTML then a wall instead of just sending
it I will send and download because I want
to download the word document that will be sent back to me
just receive it so we'll open it here floating so the document is now created
we see everything is there the image the bigger found the URL are there the only
thing like right now we see that here was not formatted because panda doesn't
know about CSS otherwise everything worked perfectly now we need to delete
our container and that will be very easy to do with the command delete so if go
back in the cloud I will just do that and then so as your container and delete
we specify the resource group and the name of our resource will take few
second of course I need to confirm first and then the container will be deleted
voila and just like this you can create one container use it and trash it when
you're done with the azure container instance you don't have any Orchestrator
but Ashur has other features that provide this kind of album I hope you
liked this video and I hope it was useful in a next video I will show you I
use the container instance in a bigger flow using functions and logic see you
next time
you