0:33
hi welcome to my show as your essential
0:36
hi welcome to my show as your essential
0:36
hi welcome to my show as your essential Series this is your host
0:38
Series this is your host
0:38
Series this is your host habiban and this is our episode six we
0:42
habiban and this is our episode six we
0:42
habiban and this is our episode six we will talk about Azure container registry
0:44
will talk about Azure container registry
0:44
will talk about Azure container registry and Azor container instances so let's
0:48
and Azor container instances so let's
0:48
and Azor container instances so let's start this uh this is the agenda of our
0:51
start this uh this is the agenda of our
0:51
start this uh this is the agenda of our today episode uh first of all we will
0:54
today episode uh first of all we will
0:54
today episode uh first of all we will talk about a your container registry and
0:57
talk about a your container registry and
0:57
talk about a your container registry and then uh we will go to a practical
0:59
then uh we will go to a practical
0:59
then uh we will go to a practical session where we will create an Azure
1:01
session where we will create an Azure
1:01
session where we will create an Azure container registry using Azure portal
1:04
container registry using Azure portal
1:04
container registry using Azure portal then we will uh push uh a default images
1:08
then we will uh push uh a default images
1:08
then we will uh push uh a default images uh to container registry uh then we will
1:11
uh to container registry uh then we will
1:11
uh to container registry uh then we will talk about Azure container instances we
1:13
talk about Azure container instances we
1:13
talk about Azure container instances we will also uh look how to create a
1:17
will also uh look how to create a
1:17
will also uh look how to create a container instance using a z portal and
1:20
container instance using a z portal and
1:20
container instance using a z portal and then how to run custom images on uh
1:23
then how to run custom images on uh
1:23
then how to run custom images on uh container a your container images uh and
1:26
container a your container images uh and
1:26
container a your container images uh and at the end we will have a Q session so
1:28
at the end we will have a Q session so
1:29
at the end we will have a Q session so let's start this this is your host uh
1:32
let's start this this is your host uh
1:32
let's start this this is your host uh I'm two times cop Corner MVP Microsoft
1:35
I'm two times cop Corner MVP Microsoft
1:35
I'm two times cop Corner MVP Microsoft certified solution developer and
1:37
certified solution developer and
1:37
certified solution developer and currently working as a lead software
1:39
currently working as a lead software
1:39
currently working as a lead software developer at now
1:41
developer at now software so uh first of all what is aor
1:44
software so uh first of all what is aor
1:44
software so uh first of all what is aor container registry uh ACR is a basically
1:48
container registry uh ACR is a basically
1:48
container registry uh ACR is a basically managed private Docker registry service
1:51
managed private Docker registry service
1:51
managed private Docker registry service in Azure that allows you to store and
1:54
in Azure that allows you to store and
1:54
in Azure that allows you to store and manage container images uh maybe you
1:57
manage container images uh maybe you
1:57
manage container images uh maybe you have heard about uh dockerhub uh
1:59
have heard about uh dockerhub uh
1:59
have heard about uh dockerhub uh basically that's another uh container
2:02
basically that's another uh container
2:02
basically that's another uh container registry provided by Docker but a lot of
2:07
registry provided by Docker but a lot of
2:07
registry provided by Docker but a lot of other party services are available and
2:09
other party services are available and
2:09
other party services are available and one of them is AZ container registry uh
2:12
one of them is AZ container registry uh
2:12
one of them is AZ container registry uh so the main purpose of a container
2:15
so the main purpose of a container
2:15
so the main purpose of a container registry is uh to host your images uh
2:19
registry is uh to host your images uh
2:19
registry is uh to host your images uh securely uh securely inside your
2:23
securely uh securely inside your
2:23
securely uh securely inside your Azure uh Docker registry and these
2:26
Azure uh Docker registry and these
2:26
Azure uh Docker registry and these images can be private public so you can
2:29
images can be private public so you can
2:29
images can be private public so you can store them according to your
2:31
store them according to your
2:31
store them according to your requirements uh then it have a seamless
2:34
requirements uh then it have a seamless
2:34
requirements uh then it have a seamless integration with Azure Uber net Services
2:38
integration with Azure Uber net Services
2:38
integration with Azure Uber net Services Azure devops and other Azure Services uh
2:41
Azure devops and other Azure Services uh
2:41
Azure devops and other Azure Services uh because it's uh provided by Microsoft so
2:44
because it's uh provided by Microsoft so
2:44
because it's uh provided by Microsoft so they provide a lot of seamless
2:47
they provide a lot of seamless
2:47
they provide a lot of seamless integration it also provide us a multi-
2:50
integration it also provide us a multi-
2:50
integration it also provide us a multi- region replication uh for high
2:52
region replication uh for high
2:52
region replication uh for high availability and reduced latency uh then
2:56
availability and reduced latency uh then
2:56
availability and reduced latency uh then we also have Security Options where you
2:58
we also have Security Options where you
2:58
we also have Security Options where you can scan images is for different
3:01
can scan images is for different
3:01
can scan images is for different vulnerabilities and you can also enforce
3:03
vulnerabilities and you can also enforce
3:03
vulnerabilities and you can also enforce different security policies uh so that
3:07
different security policies uh so that
3:07
different security policies uh so that you can unauthorize the users The
3:10
you can unauthorize the users The
3:10
you can unauthorize the users The Unwanted
3:11
Unwanted users then uh uh for the benefits that
3:15
users then uh uh for the benefits that
3:15
users then uh uh for the benefits that we have with ACR or
3:18
we have with ACR or scalability uh so you can scale your
3:20
scalability uh so you can scale your
3:20
scalability uh so you can scale your large number of images and Report
3:23
large number of images and Report
3:24
large number of images and Report repositories uh with multiple instances
3:27
repositories uh with multiple instances
3:27
repositories uh with multiple instances uh so that you don't have to be worry
3:29
uh so that you don't have to be worry
3:29
uh so that you don't have to be worry about about how many users are pulling
3:32
about about how many users are pulling
3:32
about about how many users are pulling your images so you can uh you can scale
3:36
your images so you can uh you can scale
3:36
your images so you can uh you can scale them at any time it's also cost
3:38
them at any time it's also cost
3:38
them at any time it's also cost effective you can you have to only pay
3:41
effective you can you have to only pay
3:41
effective you can you have to only pay for the storage and data transfer that
3:44
for the storage and data transfer that
3:44
for the storage and data transfer that you are using then it also provide uh
3:47
you are using then it also provide uh
3:47
you are using then it also provide uh buil-in security
3:49
buil-in security features including content Rost and
3:52
features including content Rost and
3:52
features including content Rost and image
3:53
image signing so uh this is basic introduction
3:56
signing so uh this is basic introduction
3:56
signing so uh this is basic introduction of aure container registry
3:59
of aure container registry
3:59
of aure container registry okay uh let's start with aure container
4:02
okay uh let's start with aure container
4:02
okay uh let's start with aure container registry first of all uh I will uh show
4:05
registry first of all uh I will uh show
4:05
registry first of all uh I will uh show you how to uh create a z container
4:10
you how to uh create a z container
4:10
you how to uh create a z container registry so first of all let me share my
4:16
screen you uh need one as your account
4:20
screen you uh need one as your account
4:20
screen you uh need one as your account uh maybe you already have subscription
4:22
uh maybe you already have subscription
4:22
uh maybe you already have subscription if you don't you can create uh you can
4:25
if you don't you can create uh you can
4:25
if you don't you can create uh you can create one you can create as your
4:28
create one you can create as your
4:28
create one you can create as your account uh with a free trial okay so
4:32
account uh with a free trial okay so
4:32
account uh with a free trial okay so first of all I will click on a create a
4:35
first of all I will click on a create a
4:35
first of all I will click on a create a resource and inside a resource uh the
4:39
resource and inside a resource uh the
4:39
resource and inside a resource uh the category uh which I need is basically
4:42
category uh which I need is basically
4:42
category uh which I need is basically containers and inside this you can see
4:44
containers and inside this you can see
4:44
containers and inside this you can see that there are multiple Azure popular
4:47
that there are multiple Azure popular
4:47
that there are multiple Azure popular services available you have Azure
4:49
services available you have Azure
4:49
services available you have Azure kubernetes uh you have web app for
4:52
kubernetes uh you have web app for
4:52
kubernetes uh you have web app for containers we have batch Services uh we
4:55
containers we have batch Services uh we
4:55
containers we have batch Services uh we have container instances and service
4:58
have container instances and service
4:58
have container instances and service fabric cluster as well uh but as for our
5:01
fabric cluster as well uh but as for our
5:01
fabric cluster as well uh but as for our episode we will uh we are we will be
5:04
episode we will uh we are we will be
5:04
episode we will uh we are we will be creating container
5:06
creating container registry so uh let's create on this
5:10
registry so uh let's create on this
5:10
registry so uh let's create on this Buton and Azure will uh quickly open a
5:13
Buton and Azure will uh quickly open a
5:13
Buton and Azure will uh quickly open a new blade uh for creating container
5:17
new blade uh for creating container
5:17
new blade uh for creating container registry uh the first step that you need
5:20
registry uh the first step that you need
5:20
registry uh the first step that you need to do is uh select a subscription so my
5:23
to do is uh select a subscription so my
5:23
to do is uh select a subscription so my subscription is pay as youo this is the
5:25
subscription is pay as youo this is the
5:25
subscription is pay as youo this is the only subscription that I have on my
5:27
only subscription that I have on my
5:27
only subscription that I have on my account then we have Resource Group
5:30
account then we have Resource Group
5:30
account then we have Resource Group uh you can create a new Resource Group
5:32
uh you can create a new Resource Group
5:32
uh you can create a new Resource Group uh but I already have one Resource Group
5:35
uh but I already have one Resource Group
5:35
uh but I already have one Resource Group which name is a as a means aor essential
5:39
which name is a as a means aor essential
5:39
which name is a as a means aor essential Series so I will be using this uh then
5:43
Series so I will be using this uh then
5:43
Series so I will be using this uh then we need to
5:44
we need to specify registry name uh so basically
5:48
specify registry name uh so basically
5:48
specify registry name uh so basically registry name is the uh name uh and the
5:53
registry name is the uh name uh and the
5:53
registry name is the uh name uh and the it will be basically the subdomain name
5:55
it will be basically the subdomain name
5:55
it will be basically the subdomain name that we you will be using for assessing
5:58
that we you will be using for assessing
5:58
that we you will be using for assessing your aure container registry uh so and
6:01
your aure container registry uh so and
6:01
your aure container registry uh so and this name should be
6:03
this name should be unique so you can put any name you can
6:07
unique so you can put any name you can
6:07
unique so you can put any name you can see that this name is not available so I
6:10
see that this name is not available so I
6:10
see that this name is not available so I can uh say as your essential
6:13
can uh say as your essential
6:13
can uh say as your essential series uh C
6:18
sure I hope this name will be available
6:20
sure I hope this name will be available
6:20
sure I hope this name will be available okay so this name is
6:23
okay so this name is available a cot uh then I need to select
6:27
available a cot uh then I need to select
6:27
available a cot uh then I need to select the location uh this location is
6:29
the location uh this location is
6:29
the location uh this location is basically the region where I want to uh
6:33
basically the region where I want to uh
6:33
basically the region where I want to uh store my Azure container images uh so I
6:36
store my Azure container images uh so I
6:36
store my Azure container images uh so I will be using East us because my my
6:39
will be using East us because my my
6:39
will be using East us because my my resource grope is already having the
6:42
resource grope is already having the
6:42
resource grope is already having the same uh then you can see that there is
6:45
same uh then you can see that there is
6:45
same uh then you can see that there is one option for uh use availability
6:48
one option for uh use availability
6:48
one option for uh use availability zones and these availability zones are
6:51
zones and these availability zones are
6:51
zones and these availability zones are only uh available on premium registry so
6:54
only uh available on premium registry so
6:54
only uh available on premium registry so you can see that there are three uh
6:56
you can see that there are three uh
6:56
you can see that there are three uh pricing plans one is basic standard and
6:59
pricing plans one is basic standard and
6:59
pricing plans one is basic standard and premium
7:00
premium so if I select premium uh then I will be
7:02
so if I select premium uh then I will be
7:02
so if I select premium uh then I will be able to use this availability Zone
7:06
able to use this availability Zone
7:06
able to use this availability Zone options uh so uh basically this
7:09
options uh so uh basically this
7:09
options uh so uh basically this availability zones option will
7:11
availability zones option will
7:11
availability zones option will automatically uh replicate your registry
7:14
automatically uh replicate your registry
7:14
automatically uh replicate your registry on multiple regions uh and this will
7:17
on multiple regions uh and this will
7:17
on multiple regions uh and this will also decrease your latency and provide
7:20
also decrease your latency and provide
7:20
also decrease your latency and provide High resilience so I don't need this
7:24
High resilience so I don't need this
7:24
High resilience so I don't need this option and uh for this I will be using
7:27
option and uh for this I will be using
7:27
option and uh for this I will be using standard option okay uh then we have a
7:30
standard option okay uh then we have a
7:30
standard option okay uh then we have a networking
7:32
networking option and uh you can also see this
7:35
option and uh you can also see this
7:35
option and uh you can also see this networking option is only available uh
7:38
networking option is only available uh
7:38
networking option is only available uh for premium pricing plans so let me go
7:41
for premium pricing plans so let me go
7:41
for premium pricing plans so let me go back and select the premium one and then
7:44
back and select the premium one and then
7:44
back and select the premium one and then move to next okay so inside network
7:47
move to next okay so inside network
7:47
move to next okay so inside network connectivity you can make it public and
7:50
connectivity you can make it public and
7:50
connectivity you can make it public and you can make it make it private access
7:53
you can make it make it private access
7:53
you can make it make it private access as well if you make it private then you
7:55
as well if you make it private then you
7:55
as well if you make it private then you have to uh specify endpoint
7:58
have to uh specify endpoint
7:58
have to uh specify endpoint connection so that you can specify which
8:01
connection so that you can specify which
8:01
connection so that you can specify which users uh can access your uh uh registry
8:05
users uh can access your uh uh registry
8:05
users uh can access your uh uh registry so you can see that inside
8:08
so you can see that inside
8:08
so you can see that inside security you can also select a virtual
8:11
security you can also select a virtual
8:11
security you can also select a virtual Network and only using that virtual
8:14
Network and only using that virtual
8:14
Network and only using that virtual Network this uh container registry will
8:16
Network this uh container registry will
8:16
Network this uh container registry will be accessible so uh for in my current
8:19
be accessible so uh for in my current
8:20
be accessible so uh for in my current case I don't need this so I will select
8:23
case I don't need this so I will select
8:23
case I don't need this so I will select Public Access okay uh then we have
8:26
Public Access okay uh then we have
8:26
Public Access okay uh then we have encryption option if you are interested
8:28
encryption option if you are interested
8:28
encryption option if you are interested to encrypt you are as your image you are
8:31
to encrypt you are as your image you are
8:31
to encrypt you are as your image you are as your registry images uh then you can
8:34
as your registry images uh then you can
8:34
as your registry images uh then you can also make them uh encryption enabled uh
8:38
also make them uh encryption enabled uh
8:38
also make them uh encryption enabled uh but you need an identity account for
8:42
but you need an identity account for
8:42
but you need an identity account for managing your custom Keys uh for the
8:46
managing your custom Keys uh for the
8:46
managing your custom Keys uh for the purpose of encryption so in my current
8:49
purpose of encryption so in my current
8:49
purpose of encryption so in my current case I will select this disable then
8:51
case I will select this disable then
8:52
case I will select this disable then there is option for tags so you can
8:54
there is option for tags so you can
8:55
there is option for tags so you can associate different tags with your uh
8:58
associate different tags with your uh
8:58
associate different tags with your uh this as your resource
9:00
this as your resource
9:00
this as your resource uh but I don't read this so I will move
9:02
uh but I don't read this so I will move
9:02
uh but I don't read this so I will move to the next review at theate
9:05
to the next review at theate
9:05
to the next review at theate section uh so inside this tab you can
9:08
section uh so inside this tab you can
9:08
section uh so inside this tab you can see the basic details of your uh
9:12
see the basic details of your uh
9:12
see the basic details of your uh resource that you are going to deploy
9:14
resource that you are going to deploy
9:14
resource that you are going to deploy first of all we have registry name then
9:17
first of all we have registry name then
9:17
first of all we have registry name then we have subscription uh Resource Group
9:20
we have subscription uh Resource Group
9:20
we have subscription uh Resource Group uh then we have pricing plan if you uh
9:23
uh then we have pricing plan if you uh
9:23
uh then we have pricing plan if you uh if you click on create button uh then
9:26
if you click on create button uh then
9:26
if you click on create button uh then aure will create a new container
9:28
aure will create a new container
9:28
aure will create a new container registry for you it will take a few
9:31
registry for you it will take a few
9:31
registry for you it will take a few minutes to create this uh so let's see
9:35
minutes to create this uh so let's see
9:35
minutes to create this uh so let's see this okay so now my deployment is in
9:38
this okay so now my deployment is in
9:38
this okay so now my deployment is in progress Microsoft is uh making it ready
9:42
progress Microsoft is uh making it ready
9:42
progress Microsoft is uh making it ready for me it may take few minutes so we
9:46
for me it may take few minutes so we
9:46
for me it may take few minutes so we have to wait for this okay so go to the
9:50
have to wait for this okay so go to the
9:50
have to wait for this okay so go to the source and see whether it is up and
9:52
source and see whether it is up and
9:52
source and see whether it is up and running or
9:59
okay so you can see that the provision
10:03
okay so you can see that the provision
10:03
okay so you can see that the provision uh state has been succeeded which means
10:05
uh state has been succeeded which means
10:05
uh state has been succeeded which means uh my Azure container registry is up and
10:09
uh my Azure container registry is up and
10:09
uh my Azure container registry is up and running here are few options which are
10:12
running here are few options which are
10:12
running here are few options which are available inside my container registry
10:14
available inside my container registry
10:14
available inside my container registry one of them is uh login server name so
10:18
one of them is uh login server name so
10:18
one of them is uh login server name so you can see that this is the domain name
10:21
you can see that this is the domain name
10:21
you can see that this is the domain name or the server name that I will be using
10:23
or the server name that I will be using
10:23
or the server name that I will be using for Access accessing my uh container
10:27
for Access accessing my uh container
10:27
for Access accessing my uh container registry and this name is a c. aure
10:33
registry and this name is a c. aure
10:33
registry and this name is a c. aure cr. and uh if you see this we have
10:37
cr. and uh if you see this we have
10:37
cr. and uh if you see this we have different options for pushing or images
10:40
different options for pushing or images
10:40
different options for pushing or images to contain the simple one is if if I
10:43
to contain the simple one is if if I
10:43
to contain the simple one is if if I click on this push and image and it is
10:47
click on this push and image and it is
10:47
click on this push and image and it is showing me different steps that I need
10:49
showing me different steps that I need
10:49
showing me different steps that I need to perform uh to push an image to AER
10:53
to perform uh to push an image to AER
10:53
to perform uh to push an image to AER container
10:54
container registry uh so first of all there are
10:57
registry uh so first of all there are
10:57
registry uh so first of all there are two things which are required Ed on your
11:00
two things which are required Ed on your
11:00
two things which are required Ed on your desktop machine to access this you need
11:03
desktop machine to access this you need
11:03
desktop machine to access this you need Azure CLI and Docker CLI and then you
11:07
Azure CLI and Docker CLI and then you
11:07
Azure CLI and Docker CLI and then you will be able to uh Lo then you will be
11:10
will be able to uh Lo then you will be
11:11
will be able to uh Lo then you will be able to push an image to this container
11:14
able to push an image to this container
11:14
able to push an image to this container registry I already have installed this
11:17
registry I already have installed this
11:18
registry I already have installed this if you don't you can install uh this by
11:21
if you don't you can install uh this by
11:21
if you don't you can install uh this by going as your
11:23
going as your CLI click on this
11:29
and click here install
11:33
Windows okay so here you can see that
11:36
Windows okay so here you can see that
11:36
Windows okay so here you can see that three options are available uh you can
11:38
three options are available uh you can
11:38
three options are available uh you can select this if you have 64bit system uh
11:42
select this if you have 64bit system uh
11:42
select this if you have 64bit system uh so just click on this and then you need
11:45
so just click on this and then you need
11:45
so just click on this and then you need to install this and then you will be
11:46
to install this and then you will be
11:46
to install this and then you will be able to access as your CLI okay so
11:50
able to access as your CLI okay so
11:50
able to access as your CLI okay so that's good and you you also need to
11:53
that's good and you you also need to
11:53
that's good and you you also need to install Docker CLI uh click on this
11:56
install Docker CLI uh click on this
11:56
install Docker CLI uh click on this button it will show
11:58
button it will show you uh Docker command line you just need
12:01
you uh Docker command line you just need
12:01
you uh Docker command line you just need to install this uh to uh continue uh the
12:05
to install this uh to uh continue uh the
12:05
to install this uh to uh continue uh the same
12:07
same episode okay so let's start this I
12:10
episode okay so let's start this I
12:10
episode okay so let's start this I already have installed this uh let me
12:14
already have installed this uh let me
12:14
already have installed this uh let me open my CMD
12:18
open my CMD there okay uh first of all you need to
12:21
there okay uh first of all you need to
12:22
there okay uh first of all you need to login with Azure so I already have
12:25
login with Azure so I already have
12:25
login with Azure so I already have logged in uh but if you are not logged
12:28
logged in uh but if you are not logged
12:28
logged in uh but if you are not logged in you just need to click on as your you
12:31
in you just need to click on as your you
12:31
in you just need to click on as your you just need to write as that login and
12:33
just need to write as that login and
12:33
just need to write as that login and click on enter button as your CLI will
12:36
click on enter button as your CLI will
12:36
click on enter button as your CLI will redirect to you to a browser where you
12:39
redirect to you to a browser where you
12:39
redirect to you to a browser where you can just select your Microsoft account
12:41
can just select your Microsoft account
12:41
can just select your Microsoft account and you will be log uh the next step is
12:44
and you will be log uh the next step is
12:44
and you will be log uh the next step is you need to log in with your aure uh
12:48
you need to log in with your aure uh
12:48
you need to log in with your aure uh registry aure container registry and you
12:51
registry aure container registry and you
12:51
registry aure container registry and you have to write aure ACR login then the
12:54
have to write aure ACR login then the
12:54
have to write aure ACR login then the name of the registry aesc
12:57
name of the registry aesc
12:57
name of the registry aesc do and click on on this uh Microsoft
13:01
do and click on on this uh Microsoft
13:01
do and click on on this uh Microsoft will log in with
13:04
will log in with that
13:06
that uh okay currently it is giving me an
13:10
uh okay currently it is giving me an
13:10
uh okay currently it is giving me an error uh probably it is saying that
13:13
error uh probably it is saying that
13:13
error uh probably it is saying that would not be found in subscription to S
13:16
would not be found in subscription to S
13:16
would not be found in subscription to S youo uh there is something wrong with my
13:19
youo uh there is something wrong with my
13:19
youo uh there is something wrong with my login so let me check
13:23
login so let me check
13:23
login so let me check that okay so it is asking me for login
13:32
take a little bit time to retrieve my uh
13:36
take a little bit time to retrieve my uh
13:36
take a little bit time to retrieve my uh D and
13:57
subscription news rather I have been log in or not
14:01
news rather I have been log in or not
14:01
news rather I have been log in or not okay so it look like my login is working
14:05
okay so it look like my login is working
14:05
okay so it look like my login is working fine and I'm unable to uh retrieve the
14:09
fine and I'm unable to uh retrieve the
14:09
fine and I'm unable to uh retrieve the resource Group
14:10
resource Group names so let's try it again as your ACR
14:15
names so let's try it again as your ACR
14:15
names so let's try it again as your ACR login and the name is a
14:22
sh okay still it is uh giving me an
14:25
sh okay still it is uh giving me an
14:25
sh okay still it is uh giving me an error could not connect to registry uh
14:28
error could not connect to registry uh
14:28
error could not connect to registry uh so it means we have to
14:32
so it means we have to
14:32
so it means we have to uh diagnose this issue why this is not
14:36
uh diagnose this issue why this is not
14:36
uh diagnose this issue why this is not connecting with my
14:40
connecting with my CMD uh okay so first of all there is one
14:43
CMD uh okay so first of all there is one
14:43
CMD uh okay so first of all there is one option uh that we need to enable uh for
14:47
option uh that we need to enable uh for
14:47
option uh that we need to enable uh for pushing uh that is admin user uh so this
14:51
pushing uh that is admin user uh so this
14:51
pushing uh that is admin user uh so this will provide my user basically that is
14:54
will provide my user basically that is
14:54
will provide my user basically that is mhab gmail.com so this will provide
14:58
mhab gmail.com so this will provide
14:58
mhab gmail.com so this will provide admin user the rights uh for this
15:05
registry so go to overview and let's try
15:10
registry so go to overview and let's try
15:10
registry so go to overview and let's try it
15:15
again uh still it is giving
15:19
again uh still it is giving
15:19
again uh still it is giving me an
15:26
error let's check for other option which
15:29
error let's check for other option which
15:29
error let's check for other option which are available for
15:36
login and it is giving me the same
15:41
login and it is giving me the same
15:41
login and it is giving me the same one uh it look like uh basically Azure
15:45
one uh it look like uh basically Azure
15:45
one uh it look like uh basically Azure takes a few minutes uh to up and running
15:48
takes a few minutes uh to up and running
15:48
takes a few minutes uh to up and running this I already have created one Azure
15:52
this I already have created one Azure
15:52
this I already have created one Azure container registry uh so let's try with
15:55
container registry uh so let's try with
15:55
container registry uh so let's try with this this is the same as your container
15:57
this this is the same as your container
15:57
this this is the same as your container registry but with a different name uh so
16:01
registry but with a different name uh so
16:01
registry but with a different name uh so let's try to login with
16:03
let's try to login with
16:03
let's try to login with this and the name for this registry is
16:07
this and the name for this registry is
16:07
this and the name for this registry is uh P
16:13
ship okay it's uh taking a little bit
16:20
time okay login succeeded okay so you
16:24
time okay login succeeded okay so you
16:24
time okay login succeeded okay so you can see uh this a a your container
16:26
can see uh this a a your container
16:26
can see uh this a a your container registry has been logged in successfully
16:29
registry has been logged in successfully
16:29
registry has been logged in successfully so I will be using this
16:32
so I will be using this
16:33
so I will be using this one uh I already have a few repositories
16:37
one uh I already have a few repositories
16:37
one uh I already have a few repositories or images which I have pushed inside
16:39
or images which I have pushed inside
16:39
or images which I have pushed inside this uh so let me try to delete them uh
16:43
this uh so let me try to delete them uh
16:43
this uh so let me try to delete them uh so that you we can push latest
16:48
so that you we can push latest
16:48
so that you we can push latest images okay and delete this one as well
16:52
images okay and delete this one as well
16:52
images okay and delete this one as well make it
16:53
make it clear so that it don't make any
16:56
clear so that it don't make any
16:57
clear so that it don't make any confusion click on refresh person it
16:59
confusion click on refresh person it
16:59
confusion click on refresh person it will take a little bit
17:08
time okay it will be updated in okay so
17:15
time okay it will be updated in okay so
17:15
time okay it will be updated in okay so the next step is uh first of all uh we
17:17
the next step is uh first of all uh we
17:17
the next step is uh first of all uh we will pull a buildin or you can say
17:20
will pull a buildin or you can say
17:20
will pull a buildin or you can say default uh image from the Microsoft
17:24
default uh image from the Microsoft
17:24
default uh image from the Microsoft website so you it's very easy you just
17:27
website so you it's very easy you just
17:27
website so you it's very easy you just need to uh copy this line of code okay
17:31
need to uh copy this line of code okay
17:31
need to uh copy this line of code okay uh this command will basically pull
17:34
uh this command will basically pull
17:34
uh this command will basically pull hello Word program uh from Microsoft
17:37
hello Word program uh from Microsoft
17:37
hello Word program uh from Microsoft container registry so this MCR is a
17:40
container registry so this MCR is a
17:40
container registry so this MCR is a default registry provided by Microsoft
17:43
default registry provided by Microsoft
17:43
default registry provided by Microsoft but it contains all the uh sample
17:46
but it contains all the uh sample
17:46
but it contains all the uh sample application so first of all we need to
17:48
application so first of all we need to
17:48
application so first of all we need to pull that uh so it pulled successfully
17:52
pull that uh so it pulled successfully
17:52
pull that uh so it pulled successfully and then we need to push this uh image
17:56
and then we need to push this uh image
17:56
and then we need to push this uh image to our uh aure container registry which
17:59
to our uh aure container registry which
17:59
to our uh aure container registry which is fin
18:01
is fin ship and first of all we need to tag
18:05
ship and first of all we need to tag
18:05
ship and first of all we need to tag this uh we will update this tag with uh
18:09
this uh we will update this tag with uh
18:09
this uh we will update this tag with uh the or tag and I will also update this
18:12
the or tag and I will also update this
18:12
the or tag and I will also update this name
18:17
toship do asure cr. iio so that I can
18:22
toship do asure cr. iio so that I can
18:22
toship do asure cr. iio so that I can push it easily
18:30
Z C r. live okay uh tag have been updated if I
18:34
live okay uh tag have been updated if I
18:34
live okay uh tag have been updated if I see the list of images which are
18:37
see the list of images which are
18:37
see the list of images which are available so you can see that one of
18:40
available so you can see that one of
18:40
available so you can see that one of them is available fin ship this one
18:43
them is available fin ship this one
18:43
them is available fin ship this one pinship do as your
18:46
pinship do as your cr. simple so now I will be pushing
18:50
cr. simple so now I will be pushing
18:50
cr. simple so now I will be pushing this uh to my registry and I just need
18:54
this uh to my registry and I just need
18:54
this uh to my registry and I just need to write Docker push
18:59
then I need to specify the name which is
19:02
then I need to specify the name which is
19:02
then I need to specify the name which is uh pip uh do zc. iio
19:08
uh pip uh do zc. iio
19:08
uh pip uh do zc. iio SL simple SL hello
19:13
one so it's preparing for pushing this
19:17
one so it's preparing for pushing this
19:17
one so it's preparing for pushing this image to my uh aure container registry
19:20
image to my uh aure container registry
19:21
image to my uh aure container registry it will take a little bit time it
19:23
it will take a little bit time it
19:23
it will take a little bit time it depends on the
19:25
depends on the speed and the size of the file
19:29
speed and the size of the file
19:29
speed and the size of the file okay so it look like my image have been
19:32
okay so it look like my image have been
19:32
okay so it look like my image have been pushed successfully and the size was
19:39
524 okay so if I uh go to my repository
19:43
524 okay so if I uh go to my repository
19:43
524 okay so if I uh go to my repository section and refresh this so this is the
19:48
section and refresh this so this is the
19:48
section and refresh this so this is the new push image and you can see that the
19:52
new push image and you can see that the
19:52
new push image and you can see that the time is 919 VM so it means this is the
19:55
time is 919 VM so it means this is the
19:55
time is 919 VM so it means this is the lest one I just pushed uh a few seconds
20:01
lest one I just pushed uh a few seconds
20:01
lest one I just pushed uh a few seconds ago okay so now you have made the
20:04
ago okay so now you have made the
20:04
ago okay so now you have made the concept that uh container registry is
20:08
concept that uh container registry is
20:08
concept that uh container registry is simple uh a drive or a location where
20:11
simple uh a drive or a location where
20:11
simple uh a drive or a location where you can store your uh container images
20:15
you can store your uh container images
20:15
you can store your uh container images and then you can use these container
20:17
and then you can use these container
20:17
and then you can use these container images for different
20:20
images for different
20:20
images for different purposes uh so now let's move to aure
20:23
purposes uh so now let's move to aure
20:23
purposes uh so now let's move to aure container
20:26
container instancy uh let me uh go to
20:35
okay okay now we have introduction to
20:38
okay okay now we have introduction to
20:38
okay okay now we have introduction to Azure container
20:40
Azure container instances first of
20:44
instances first of all what is aure container instance uh
20:48
all what is aure container instance uh
20:48
all what is aure container instance uh ACI is a service basically that allows
20:51
ACI is a service basically that allows
20:51
ACI is a service basically that allows you to run Docker containers uh directly
20:54
you to run Docker containers uh directly
20:54
you to run Docker containers uh directly on Azure without managing virtual
20:56
on Azure without managing virtual
20:56
on Azure without managing virtual machines or adopting a high level
20:59
machines or adopting a high level
20:59
machines or adopting a high level orchestration service so this is just
21:02
orchestration service so this is just
21:02
orchestration service so this is just like a Docker engine uh which is hosted
21:05
like a Docker engine uh which is hosted
21:05
like a Docker engine uh which is hosted on Microsoft infrastructure you don't
21:08
on Microsoft infrastructure you don't
21:08
on Microsoft infrastructure you don't have to be worried about managing
21:10
have to be worried about managing
21:10
have to be worried about managing virtual machines uh or you don't have to
21:12
virtual machines uh or you don't have to
21:12
virtual machines uh or you don't have to be worried about uh allocating resources
21:16
be worried about uh allocating resources
21:16
be worried about uh allocating resources manually and configuring all these stuff
21:19
manually and configuring all these stuff
21:19
manually and configuring all these stuff Microsoft as your provide you this
21:21
Microsoft as your provide you this
21:21
Microsoft as your provide you this service so you just need to run your
21:23
service so you just need to run your
21:23
service so you just need to run your container and all other stuff will be
21:25
container and all other stuff will be
21:25
container and all other stuff will be managed by Microsoft and key features
21:29
managed by Microsoft and key features
21:29
managed by Microsoft and key features of ACI or uh first of all serverless
21:32
of ACI or uh first of all serverless
21:32
of ACI or uh first of all serverless containers uh serverless container means
21:35
containers uh serverless container means
21:35
containers uh serverless container means you can instantly run your containers
21:38
you can instantly run your containers
21:38
you can instantly run your containers without needing to manage infrastructure
21:40
without needing to manage infrastructure
21:40
without needing to manage infrastructure you don't have to uh create uh a new uh
21:44
you don't have to uh create uh a new uh
21:44
you don't have to uh create uh a new uh virtual machine uh Microsoft will deploy
21:48
virtual machine uh Microsoft will deploy
21:48
virtual machine uh Microsoft will deploy this on serverless Computing
21:50
this on serverless Computing
21:50
this on serverless Computing resources it's also have flexible
21:53
resources it's also have flexible
21:53
resources it's also have flexible resource allocation so you can specify
21:56
resource allocation so you can specify
21:56
resource allocation so you can specify exact number of CPU and uh the memory
21:59
exact number of CPU and uh the memory
21:59
exact number of CPU and uh the memory requirement that you need for each
22:02
requirement that you need for each
22:02
requirement that you need for each instance uh which means it's very easy
22:05
instance uh which means it's very easy
22:05
instance uh which means it's very easy for you to uh for you to update the
22:08
for you to uh for you to update the
22:08
for you to uh for you to update the number of CPU or memory on the run time
22:11
number of CPU or memory on the run time
22:11
number of CPU or memory on the run time uh you don't have to restart your system
22:14
uh you don't have to restart your system
22:14
uh you don't have to restart your system and the uh zero time is uh no so there
22:19
and the uh zero time is uh no so there
22:19
and the uh zero time is uh no so there is no zero time so there is no down time
22:22
is no zero time so there is no down time
22:23
is no zero time so there is no down time so your application will be not down
22:25
so your application will be not down
22:25
so your application will be not down it's also have F startup so you can
22:28
it's also have F startup so you can
22:28
it's also have F startup so you can apply quickly on Azure container
22:31
apply quickly on Azure container
22:31
apply quickly on Azure container instances with within
22:33
instances with within
22:33
instances with within seconds then there are few benefits of
22:36
seconds then there are few benefits of
22:36
seconds then there are few benefits of aure uh container instances as well
22:39
aure uh container instances as well
22:39
aure uh container instances as well first of all it is cost effective uh you
22:42
first of all it is cost effective uh you
22:42
first of all it is cost effective uh you have to pay only for the computer
22:45
have to pay only for the computer
22:45
have to pay only for the computer resources which your containers are
22:47
resources which your containers are
22:47
resources which your containers are using and running uh you can you can
22:50
using and running uh you can you can
22:50
using and running uh you can you can easily scale out containers to me demand
22:54
easily scale out containers to me demand
22:54
easily scale out containers to me demand for example you want to scale out your
22:57
for example you want to scale out your
22:57
for example you want to scale out your number of is from 1 to 100 so that is
23:01
number of is from 1 to 100 so that is
23:01
number of is from 1 to 100 so that is very easy within few clicks and it will
23:04
very easy within few clicks and it will
23:04
very easy within few clicks and it will uh it will help you to manage your uh
23:07
uh it will help you to manage your uh
23:07
uh it will help you to manage your uh user request then we have uh very simple
23:10
user request then we have uh very simple
23:10
user request then we have uh very simple management you can focus on your
23:13
management you can focus on your
23:13
management you can focus on your application logic and on development
23:15
application logic and on development
23:15
application logic and on development side without worrying about the
23:17
side without worrying about the
23:17
side without worrying about the underlying
23:18
underlying infrastructure uh there then there there
23:21
infrastructure uh there then there there
23:21
infrastructure uh there then there there are few other options available for
23:23
are few other options available for
23:23
are few other options available for deployment you can deploy uh as your
23:26
deployment you can deploy uh as your
23:26
deployment you can deploy uh as your container instances us
23:29
container instances us
23:29
container instances us Azure container regustry or Docker Hub
23:31
Azure container regustry or Docker Hub
23:31
Azure container regustry or Docker Hub or you can also use aure portal aure CLI
23:35
or you can also use aure portal aure CLI
23:35
or you can also use aure portal aure CLI and armm
23:38
and armm templates uh then we have Resource
23:40
templates uh then we have Resource
23:40
templates uh then we have Resource Management you can uh you can make a
23:43
Management you can uh you can make a
23:43
Management you can uh you can make a group of your aure containers and you
23:46
group of your aure containers and you
23:46
group of your aure containers and you can start or stop or you can manage the
23:48
can start or stop or you can manage the
23:48
can start or stop or you can manage the life cycle of aure container resource
23:51
life cycle of aure container resource
23:51
life cycle of aure container resource grow
23:52
grow easily uh Azure container expenses also
23:55
easily uh Azure container expenses also
23:55
easily uh Azure container expenses also have integration with Azure other
23:58
have integration with Azure other
23:58
have integration with Azure other Services first of all we have aure kuber
24:01
Services first of all we have aure kuber
24:01
Services first of all we have aure kuber n
24:02
n services and you can use aure container
24:05
services and you can use aure container
24:05
services and you can use aure container instances for bus scenarios to handle
24:08
instances for bus scenarios to handle
24:08
instances for bus scenarios to handle Peak
24:10
Peak workloads uh you can also have
24:12
workloads uh you can also have
24:12
workloads uh you can also have integration with Azure logic apps and
24:15
integration with Azure logic apps and
24:15
integration with Azure logic apps and functions if you are making an event
24:17
functions if you are making an event
24:17
functions if you are making an event driven application or workloads you can
24:20
driven application or workloads you can
24:20
driven application or workloads you can automate them using a containers and
24:23
automate them using a containers and
24:23
automate them using a containers and then we have different networking
24:25
then we have different networking
24:25
then we have different networking options you can create virtual networks
24:27
options you can create virtual networks
24:28
options you can create virtual networks for your communication with Azure
24:30
for your communication with Azure
24:30
for your communication with Azure resources uh so these are uh the key
24:33
resources uh so these are uh the key
24:33
resources uh so these are uh the key points of azure container instances uh
24:36
points of azure container instances uh
24:36
points of azure container instances uh so now let's start
24:39
so now let's start this to uh creating a zure container
24:42
this to uh creating a zure container
24:42
this to uh creating a zure container instances uh you can see that there is
24:45
instances uh you can see that there is
24:45
instances uh you can see that there is one image uh on the uh bottom side of
24:49
one image uh on the uh bottom side of
24:49
one image uh on the uh bottom side of the slide uh so this is your PC then you
24:53
the slide uh so this is your PC then you
24:53
the slide uh so this is your PC then you will create and a Docker image and you
24:56
will create and a Docker image and you
24:56
will create and a Docker image and you will push that Docker image to aure
24:58
will push that Docker image to aure
24:58
will push that Docker image to aure container registry a your container
25:00
container registry a your container
25:00
container registry a your container registry is the central location which
25:03
registry is the central location which
25:03
registry is the central location which will be storing all the container images
25:05
will be storing all the container images
25:05
will be storing all the container images that you have and then you can run your
25:08
that you have and then you can run your
25:08
that you have and then you can run your container images on Azure container
25:12
container images on Azure container
25:12
container images on Azure container instances so this is a simple uh
25:15
instances so this is a simple uh
25:15
instances so this is a simple uh flowchart how aure container registry
25:18
flowchart how aure container registry
25:18
flowchart how aure container registry and how aure container instances
25:22
and how aure container instances
25:22
and how aure container instances work uh so let's start the session and
25:26
work uh so let's start the session and
25:26
work uh so let's start the session and let me share my screen
25:33
okay so I already have one aure
25:35
okay so I already have one aure
25:36
okay so I already have one aure container registry uh now I will create
25:38
container registry uh now I will create
25:39
container registry uh now I will create a z container instance first of all uh
25:42
a z container instance first of all uh
25:42
a z container instance first of all uh go to home uh click on create a
25:46
go to home uh click on create a
25:46
go to home uh click on create a resource okay now select the containers
25:50
resource okay now select the containers
25:50
resource okay now select the containers and inside container uh we will select
25:53
and inside container uh we will select
25:53
and inside container uh we will select container instances there are a lot of
25:56
container instances there are a lot of
25:56
container instances there are a lot of options available but in our case we
25:59
options available but in our case we
25:59
options available but in our case we will be using this one so click on
26:03
will be using this one so click on
26:03
will be using this one so click on create uh Microsoft will take a little
26:06
create uh Microsoft will take a little
26:06
create uh Microsoft will take a little bit time okay so likewise uh we see
26:11
bit time okay so likewise uh we see
26:11
bit time okay so likewise uh we see first of all we have to select
26:13
first of all we have to select
26:13
first of all we have to select subscription that is pay as you go then
26:16
subscription that is pay as you go then
26:16
subscription that is pay as you go then we need to select a resource Group I
26:19
we need to select a resource Group I
26:19
we need to select a resource Group I already have created that so I will be
26:21
already have created that so I will be
26:21
already have created that so I will be using
26:23
using a then we have uh container name so you
26:26
a then we have uh container name so you
26:26
a then we have uh container name so you can specify and any container name for
26:29
can specify and any container name for
26:29
can specify and any container name for this uh in my case I will be using for
26:32
this uh in my case I will be using for
26:32
this uh in my case I will be using for example
26:35
example we okay so this uh container name is
26:38
we okay so this uh container name is
26:38
we okay so this uh container name is available because it's Unique inside my
26:41
available because it's Unique inside my
26:41
available because it's Unique inside my resource
26:42
resource gr then we need to select the region uh
26:45
gr then we need to select the region uh
26:45
gr then we need to select the region uh region is basically the location where
26:48
region is basically the location where
26:48
region is basically the location where uh my container instance will be running
26:51
uh my container instance will be running
26:51
uh my container instance will be running then there are availability zones so you
26:54
then there are availability zones so you
26:54
then there are availability zones so you can select the number of zones where you
26:58
can select the number of zones where you
26:58
can select the number of zones where you want to be make your application running
27:02
want to be make your application running
27:02
want to be make your application running so if I will select three uh so my
27:05
so if I will select three uh so my
27:05
so if I will select three uh so my container instance will be running on
27:08
container instance will be running on
27:08
container instance will be running on three different zones so this is one
27:10
three different zones so this is one
27:10
three different zones so this is one option but I will be going with none
27:13
option but I will be going with none
27:13
option but I will be going with none because this is just for development
27:15
because this is just for development
27:15
because this is just for development purpose then we have
27:18
purpose then we have
27:18
purpose then we have SKU so there are two options one is
27:21
SKU so there are two options one is
27:21
SKU so there are two options one is standard standard container group
27:23
standard standard container group
27:23
standard standard container group providing hyper V level isolation
27:26
providing hyper V level isolation
27:26
providing hyper V level isolation recommended for most load then you can
27:29
recommended for most load then you can
27:29
recommended for most load then you can also use confidential container
27:32
also use confidential container
27:32
also use confidential container groups so these provides with a few
27:35
groups so these provides with a few
27:35
groups so these provides with a few other options you can use in memory
27:38
other options you can use in memory
27:38
other options you can use in memory encryption and Hardware level isolation
27:41
encryption and Hardware level isolation
27:41
encryption and Hardware level isolation for example if your application uh is uh
27:45
for example if your application uh is uh
27:45
for example if your application uh is uh very private and you have concerns about
27:48
very private and you have concerns about
27:48
very private and you have concerns about your security so you can use this
27:50
your security so you can use this
27:50
your security so you can use this confidential when Microsoft uh will run
27:54
confidential when Microsoft uh will run
27:54
confidential when Microsoft uh will run your container on different Hardware
27:57
your container on different Hardware
27:57
your container on different Hardware level isolation levels so it which means
28:00
level isolation levels so it which means
28:00
level isolation levels so it which means the hardware will be different for your
28:02
the hardware will be different for your
28:03
the hardware will be different for your aure containers but that will be
28:05
aure containers but that will be
28:05
aure containers but that will be expensive uh so in my case I will be use
28:08
expensive uh so in my case I will be use
28:08
expensive uh so in my case I will be use standard
28:10
standard option then image resource basically
28:13
option then image resource basically
28:13
option then image resource basically this is the source from which uh we will
28:17
this is the source from which uh we will
28:17
this is the source from which uh we will pull our container images and then we
28:19
pull our container images and then we
28:19
pull our container images and then we will run them so you can see that this
28:22
will run them so you can see that this
28:22
will run them so you can see that this Source uh can be as your container
28:25
Source uh can be as your container
28:25
Source uh can be as your container registry and uh Docker Hub or any
28:28
registry and uh Docker Hub or any
28:28
registry and uh Docker Hub or any container registry so which means you
28:31
container registry so which means you
28:31
container registry so which means you just need to put uh the URL of your
28:34
just need to put uh the URL of your
28:34
just need to put uh the URL of your container registry the image type if
28:36
container registry the image type if
28:36
container registry the image type if that is private you need to provide
28:38
that is private you need to provide
28:38
that is private you need to provide username and password and if that is
28:40
username and password and if that is
28:40
username and password and if that is public you just need to provide the URL
28:44
public you just need to provide the URL
28:44
public you just need to provide the URL and in my case I already have aure
28:47
and in my case I already have aure
28:47
and in my case I already have aure container registry so I can select uh my
28:52
container registry so I can select uh my
28:52
container registry so I can select uh my Azure container registry and that was
28:56
Azure container registry and that was
28:56
Azure container registry and that was pin ship and then I can select the image
29:00
pin ship and then I can select the image
29:00
pin ship and then I can select the image which I want to run and in my case the
29:03
which I want to run and in my case the
29:03
which I want to run and in my case the image name is samples /hello word and
29:06
image name is samples /hello word and
29:06
image name is samples /hello word and this is the image tag so I want to uh
29:10
this is the image tag so I want to uh
29:10
this is the image tag so I want to uh run the latest image so I will be using
29:12
run the latest image so I will be using
29:12
run the latest image so I will be using this uh there is also quick start images
29:16
this uh there is also quick start images
29:16
this uh there is also quick start images for example uh you don't have your
29:19
for example uh you don't have your
29:19
for example uh you don't have your Custom Image and you want to use uh the
29:22
Custom Image and you want to use uh the
29:22
Custom Image and you want to use uh the Microsoft image so you can use this one
29:26
Microsoft image so you can use this one
29:26
Microsoft image so you can use this one so let's uh do the or image and then we
29:31
so let's uh do the or image and then we
29:31
so let's uh do the or image and then we have size of the Azure container
29:33
have size of the Azure container
29:33
have size of the Azure container instance if I click on change
29:36
instance if I click on change
29:36
instance if I click on change size here you can uh change the
29:39
size here you can uh change the
29:39
size here you can uh change the specification of your um of your running
29:43
specification of your um of your running
29:43
specification of your um of your running container instance for example you can
29:46
container instance for example you can
29:46
container instance for example you can specify the number of CPU CES uh if I
29:50
specify the number of CPU CES uh if I
29:50
specify the number of CPU CES uh if I specified
29:52
specified five which means my Azure container
29:55
five which means my Azure container
29:55
five which means my Azure container instance will be using five cores off a
29:58
instance will be using five cores off a
29:58
instance will be using five cores off a CPU and the maximum number is
30:00
CPU and the maximum number is
30:01
CPU and the maximum number is 32 for example I want to use then there
30:04
32 for example I want to use then there
30:04
32 for example I want to use then there is uh memory size which is available
30:07
is uh memory size which is available
30:07
is uh memory size which is available from 1 to
30:11
256 gab so you can use this option you can
30:15
gab so you can use this option you can
30:15
gab so you can use this option you can specify the memory which you required
30:18
specify the memory which you required
30:18
specify the memory which you required and you can change this later on also if
30:20
and you can change this later on also if
30:20
and you can change this later on also if you need GPU you can also configure that
30:24
you need GPU you can also configure that
30:24
you need GPU you can also configure that so here you can specify the GPU type V1
30:28
so here you can specify the GPU type V1
30:28
so here you can specify the GPU type V1 100 you can also specify the GPU count
30:31
100 you can also specify the GPU count
30:31
100 you can also specify the GPU count as I don't need a GPU for my application
30:34
as I don't need a GPU for my application
30:34
as I don't need a GPU for my application so I will select
30:36
so I will select none uh now let's move to the next tab
30:39
none uh now let's move to the next tab
30:39
none uh now let's move to the next tab if I click on
30:44
networking let me save this because I
30:48
networking let me save this because I
30:48
networking let me save this because I have unsaved
30:49
have unsaved changes okay if I uh see this networking
30:54
changes okay if I uh see this networking
30:54
changes okay if I uh see this networking so inside networking you can uh
30:56
so inside networking you can uh
30:56
so inside networking you can uh configure your network type you can make
30:58
configure your network type you can make
30:58
configure your network type you can make it private public or non so I will be
31:02
it private public or non so I will be
31:02
it private public or non so I will be using uh public here you can uh use a
31:07
using uh public here you can uh use a
31:07
using uh public here you can uh use a DNS
31:11
label uh so DNS label means you just
31:15
label uh so DNS label means you just
31:15
label uh so DNS label means you just need to specify any label uh which will
31:18
need to specify any label uh which will
31:18
need to specify any label uh which will be part of the subdomain and you can use
31:22
be part of the subdomain and you can use
31:22
be part of the subdomain and you can use that for accessing your
31:25
that for accessing your
31:25
that for accessing your containers and in public option you can
31:27
containers and in public option you can
31:27
containers and in public option you can see that public will create a public IP
31:30
see that public will create a public IP
31:30
see that public will create a public IP address for your container instance so
31:32
address for your container instance so
31:32
address for your container instance so if I will uh go with this option it will
31:35
if I will uh go with this option it will
31:35
if I will uh go with this option it will automatically create a public IP address
31:38
automatically create a public IP address
31:38
automatically create a public IP address and using that I will be able to access
31:40
and using that I will be able to access
31:40
and using that I will be able to access my aure container instance and if you
31:44
my aure container instance and if you
31:44
my aure container instance and if you have custom
31:45
have custom ports which you want to
31:47
ports which you want to
31:48
ports which you want to specify uh for your application for
31:50
specify uh for your application for
31:50
specify uh for your application for example your app is running on a
31:53
example your app is running on a
31:53
example your app is running on a different port so you can you can
31:55
different port so you can you can
31:56
different port so you can you can specify here which Port you want to open
31:58
specify here which Port you want to open
31:58
specify here which Port you want to open for your application and it is the
32:01
for your application and it is the
32:01
for your application and it is the default port for HTTP so I will be using
32:04
default port for HTTP so I will be using
32:04
default port for HTTP so I will be using this click on Advance option we have uh
32:08
this click on Advance option we have uh
32:08
this click on Advance option we have uh different configurations related to
32:11
different configurations related to
32:11
different configurations related to restart policies and environment
32:14
restart policies and environment
32:14
restart policies and environment variables for example there are three
32:17
variables for example there are three
32:17
variables for example there are three restart policies you want to restart on
32:19
restart policies you want to restart on
32:19
restart policies you want to restart on failure and then you don't want to
32:22
failure and then you don't want to
32:22
failure and then you don't want to restart your instance and make it always
32:25
restart your instance and make it always
32:25
restart your instance and make it always so I think on failure that is fine if
32:27
so I think on failure that is fine if
32:27
so I think on failure that is fine if your container will fail it will
32:29
your container will fail it will
32:29
your container will fail it will automatically restart your aure
32:31
automatically restart your aure
32:31
automatically restart your aure container
32:32
container instance if you have uh different uh
32:36
instance if you have uh different uh
32:36
instance if you have uh different uh maybe app settings or environment
32:38
maybe app settings or environment
32:38
maybe app settings or environment variable inside your application then
32:40
variable inside your application then
32:40
variable inside your application then you can use these options you just have
32:42
you can use these options you just have
32:43
you can use these options you just have to provide the key and the value uh for
32:46
to provide the key and the value uh for
32:46
to provide the key and the value uh for that key for environment variable so
32:49
that key for environment variable so
32:49
that key for environment variable so okay so in my case I don't have anyone
32:51
okay so in my case I don't have anyone
32:51
okay so in my case I don't have anyone so I will move to next here you can
32:54
so I will move to next here you can
32:54
so I will move to next here you can specify the tags for this as your
32:57
specify the tags for this as your
32:57
specify the tags for this as your resource
33:02
here is review and create
33:05
here is review and create
33:05
here is review and create blade so here you can uh look all the
33:09
blade so here you can uh look all the
33:09
blade so here you can uh look all the information available for example this
33:11
information available for example this
33:11
information available for example this will show you uh which registry I will
33:14
will show you uh which registry I will
33:14
will show you uh which registry I will be using for running this image which
33:17
be using for running this image which
33:17
be using for running this image which image I will be running and all this
33:20
image I will be running and all this
33:20
image I will be running and all this information is available the server
33:22
information is available the server
33:22
information is available the server which we'll be using and here is
33:25
which we'll be using and here is
33:25
which we'll be using and here is networking application so let's click on
33:28
networking application so let's click on
33:28
networking application so let's click on create micro Azure will take a little
33:31
create micro Azure will take a little
33:31
create micro Azure will take a little bit
33:32
bit time to deploy this
33:44
resource climate is currently in
33:46
resource climate is currently in
33:46
resource climate is currently in progress we have to wait for this
34:15
succeeded let's go to the resource and
34:18
succeeded let's go to the resource and
34:18
succeeded let's go to the resource and see whether that is running or not uh
34:21
see whether that is running or not uh
34:22
see whether that is running or not uh currently uh the instance does not
34:24
currently uh the instance does not
34:24
currently uh the instance does not started because it takes a little time
34:28
started because it takes a little time
34:28
started because it takes a little time to provision all the resources and then
34:30
to provision all the resources and then
34:30
to provision all the resources and then it runs and here is the information this
34:34
it runs and here is the information this
34:34
it runs and here is the information this is the public IP address on which my
34:37
is the public IP address on which my
34:37
is the public IP address on which my application for this will be
34:41
application for this will be
34:41
application for this will be accessible and if I go to
34:45
Containers so here you can see the
34:49
Containers so here you can see the
34:49
Containers so here you can see the events which is happening and inside
34:52
events which is happening and inside
34:52
events which is happening and inside these events you can see um first of all
34:56
these events you can see um first of all
34:56
these events you can see um first of all this my image and then it started the
35:00
this my image and then it started the
35:00
this my image and then it started the container and the current status is
35:02
container and the current status is
35:02
container and the current status is killing so it look like there is
35:05
killing so it look like there is
35:05
killing so it look like there is something not running yet uh but if I go
35:09
something not running yet uh but if I go
35:09
something not running yet uh but if I go to the logs here I can
35:12
to the logs here I can
35:12
to the logs here I can see the logs of my uh running
35:17
application so this shows that hello
35:20
application so this shows that hello
35:20
application so this shows that hello from Doctor this message shows that your
35:22
from Doctor this message shows that your
35:22
from Doctor this message shows that your installation appears to be working
35:24
installation appears to be working
35:24
installation appears to be working correctly uh so this uh image was a
35:27
correctly uh so this uh image was a
35:27
correctly uh so this uh image was a simple console application uh which
35:30
simple console application uh which
35:30
simple console application uh which shows this message and which means your
35:33
shows this message and which means your
35:33
shows this message and which means your app is running running fine uh but maybe
35:37
app is running running fine uh but maybe
35:37
app is running running fine uh but maybe you are interested how to host a web
35:40
you are interested how to host a web
35:40
you are interested how to host a web application uh on aure container
35:43
application uh on aure container
35:43
application uh on aure container instance uh so we can see that as
35:48
well so let's uh create another assure
35:52
well so let's uh create another assure
35:53
well so let's uh create another assure container instance app uh and we will
35:56
container instance app uh and we will
35:56
container instance app uh and we will create that using a buildin template
36:00
create that using a buildin template
36:00
create that using a buildin template from
36:01
from Microsoft so click on container
36:07
instance and I will uh select all the
36:10
instance and I will uh select all the
36:10
instance and I will uh select all the options quickly and currently I will
36:13
options quickly and currently I will
36:13
options quickly and currently I will select web
36:18
app I will make it a yes web
36:22
app I will make it a yes web
36:22
app I will make it a yes web app and I will select quick start images
36:25
app and I will select quick start images
36:25
app and I will select quick start images and this is the default image I will be
36:29
and this is the default image I will be
36:29
and this is the default image I will be using hello world
36:32
using hello world application I will quickly go to review
36:34
application I will quickly go to review
36:34
application I will quickly go to review and create
36:42
section Okay click on
36:53
create so now I'm creating another
36:57
create so now I'm creating another
36:57
create so now I'm creating another container
37:06
Microsoft status is in
37:09
Microsoft status is in
37:09
Microsoft status is in progress I think just few more seconds
37:13
progress I think just few more seconds
37:13
progress I think just few more seconds to complete
37:27
the deployment completed uh go to the
37:36
resource okay so this is the public IP
37:40
resource okay so this is the public IP
37:40
resource okay so this is the public IP address and if I go inside my
37:43
address and if I go inside my
37:43
address and if I go inside my containers so here you can see that the
37:46
containers so here you can see that the
37:46
containers so here you can see that the status of my container is started and
37:50
status of my container is started and
37:50
status of my container is started and the state is running is this is the
37:52
the state is running is this is the
37:52
the state is running is this is the image which is running and the name of
37:56
image which is running and the name of
37:56
image which is running and the name of container instance is AES web
37:59
container instance is AES web
37:59
container instance is AES web app if I Gove to
38:02
app if I Gove to logs you can see that currently my image
38:06
logs you can see that currently my image
38:06
logs you can see that currently my image is running on Port
38:09
is running on Port 0 okay so uh let's access this IP
38:14
0 okay so uh let's access this IP
38:14
0 okay so uh let's access this IP address in web browser to see that
38:16
address in web browser to see that
38:16
address in web browser to see that whether my app is running or
38:20
not sometimes it takes a little bit time
38:24
not sometimes it takes a little bit time
38:24
not sometimes it takes a little bit time to run the container instances and make
38:27
to run the container instances and make
38:27
to run the container instances and make them available or public IP address uh
38:31
them available or public IP address uh
38:31
them available or public IP address uh but hopefully it will be accessible
38:38
now okay so you can see that welcome to
38:41
now okay so you can see that welcome to
38:41
now okay so you can see that welcome to a z container instance this was a simple
38:44
a z container instance this was a simple
38:44
a z container instance this was a simple image uh which is uh basically running
38:49
image uh which is uh basically running
38:49
image uh which is uh basically running this so this is how you can run your uh
38:53
this so this is how you can run your uh
38:53
this so this is how you can run your uh container instances uh there is one
38:57
container instances uh there is one
38:57
container instances uh there is one option
38:58
option how you can containerize your net
39:01
how you can containerize your net
39:01
how you can containerize your net application uh that is not part of the
39:03
application uh that is not part of the
39:03
application uh that is not part of the topic but still I can show
39:07
you okay so let me create a new
39:11
you okay so let me create a new
39:11
you okay so let me create a new project inside V Studio I have V Studio
39:16
project inside V Studio I have V Studio
39:16
project inside V Studio I have V Studio 2029 click on create a new project and I
39:20
2029 click on create a new project and I
39:20
2029 click on create a new project and I will be using MVC
39:23
will be using MVC application I will name it web
39:25
application I will name it web
39:25
application I will name it web application to
39:28
application to net8 I don't need authentication and
39:31
net8 I don't need authentication and
39:31
net8 I don't need authentication and here you can also enable Docker sport or
39:35
here you can also enable Docker sport or
39:35
here you can also enable Docker sport or we can make this available
39:37
we can make this available
39:37
we can make this available later so I will click on this enable
39:40
later so I will click on this enable
39:40
later so I will click on this enable Docker click on
39:46
create okay so now you can see that
39:48
create okay so now you can see that
39:48
create okay so now you can see that simple uh application asp.net MVC web
39:52
simple uh application asp.net MVC web
39:52
simple uh application asp.net MVC web application have been created and this
39:55
application have been created and this
39:55
application have been created and this application contains a Docker file
39:57
application contains a Docker file
39:57
application contains a Docker file and inside Docker file we have uh the
40:01
and inside Docker file we have uh the
40:01
and inside Docker file we have uh the mechanism how to build our application
40:05
mechanism how to build our application
40:05
mechanism how to build our application and then how to uh how to run this
40:08
and then how to uh how to run this
40:08
and then how to uh how to run this application on container so this is the
40:13
application on container so this is the
40:13
application on container so this is the docker file that we can use for running
40:15
docker file that we can use for running
40:15
docker file that we can use for running for
40:18
application so if you want to publish
40:21
application so if you want to publish
40:21
application so if you want to publish this application on your container
40:23
this application on your container
40:23
this application on your container registry you just need to click on
40:26
registry you just need to click on
40:26
registry you just need to click on publish option V Studio provide us uh
40:29
publish option V Studio provide us uh
40:29
publish option V Studio provide us uh build-in publish options which you can
40:31
build-in publish options which you can
40:31
build-in publish options which you can use for uh pushing your images so in my
40:35
use for uh pushing your images so in my
40:35
use for uh pushing your images so in my case I will use Docker container
40:37
case I will use Docker container
40:37
case I will use Docker container registry click on next button and here
40:41
registry click on next button and here
40:41
registry click on next button and here there are three options you can use
40:42
there are three options you can use
40:42
there are three options you can use dockerhub other Docker container
40:44
dockerhub other Docker container
40:45
dockerhub other Docker container Registries but as I'm using a your ACR
40:48
Registries but as I'm using a your ACR
40:48
Registries but as I'm using a your ACR so I will select
40:50
so I will select this as I am already logged in with the
40:54
this as I am already logged in with the
40:54
this as I am already logged in with the same account inside my V Studio so it
40:58
same account inside my V Studio so it
40:58
same account inside my V Studio so it will work I just need to select my
41:00
will work I just need to select my
41:00
will work I just need to select my subscription name and inside
41:02
subscription name and inside
41:02
subscription name and inside subscription these are uh resource
41:04
subscription these are uh resource
41:04
subscription these are uh resource groups I have one Resource Group AES and
41:08
groups I have one Resource Group AES and
41:08
groups I have one Resource Group AES and here there are two uh container
41:10
here there are two uh container
41:10
here there are two uh container Registries I will be using this fin ship
41:13
Registries I will be using this fin ship
41:13
Registries I will be using this fin ship click on next button and now there are
41:16
click on next button and now there are
41:17
click on next button and now there are two options for build
41:19
two options for build
41:19
two options for build your uh Docker Hub image one is net SDK
41:24
your uh Docker Hub image one is net SDK
41:24
your uh Docker Hub image one is net SDK one is Docker desktop uh and you can see
41:27
one is Docker desktop uh and you can see
41:27
one is Docker desktop uh and you can see that no Docker file is required for net
41:30
that no Docker file is required for net
41:30
that no Docker file is required for net SDK and Docker file is required for
41:33
SDK and Docker file is required for
41:33
SDK and Docker file is required for Docker desktop so I'm interested to
41:35
Docker desktop so I'm interested to
41:35
Docker desktop so I'm interested to build this using Docker desktop so I
41:38
build this using Docker desktop so I
41:38
build this using Docker desktop so I will click this finish section so a new
41:42
will click this finish section so a new
41:42
will click this finish section so a new publish profile have been created and
41:45
publish profile have been created and
41:45
publish profile have been created and when I will click on publish button view
41:48
when I will click on publish button view
41:48
when I will click on publish button view Studio first of all uh will
41:51
Studio first of all uh will
41:51
Studio first of all uh will build my uh application using doer
41:54
build my uh application using doer
41:54
build my uh application using doer desktop and then it will publish that on
41:58
desktop and then it will publish that on
41:58
desktop and then it will publish that on Z container registry uh but this take a
42:01
Z container registry uh but this take a
42:02
Z container registry uh but this take a little bit time like it may take two or
42:05
little bit time like it may take two or
42:05
little bit time like it may take two or three minutes depending on the internet
42:08
three minutes depending on the internet
42:08
three minutes depending on the internet connection speed so let's see this how
42:11
connection speed so let's see this how
42:11
connection speed so let's see this how much time it takes maybe it deployed
42:15
much time it takes maybe it deployed
42:15
much time it takes maybe it deployed quickly but we have to wait so you can
42:18
quickly but we have to wait so you can
42:18
quickly but we have to wait so you can see that currently it is running the
42:20
see that currently it is running the
42:20
see that currently it is running the docker file to build the application
42:33
okay so it's it is showing me that
42:35
okay so it's it is showing me that
42:35
okay so it's it is showing me that Docker image have been created now it is
42:38
Docker image have been created now it is
42:38
Docker image have been created now it is pushing it toship
42:41
pushing it toship doc.io web application
42:44
doc.io web application
42:44
doc.io web application Mo it is preparing waiting and
42:49
post okay so currently it is showing me
42:52
post okay so currently it is showing me
42:52
post okay so currently it is showing me your application have been published
42:54
your application have been published
42:54
your application have been published successfully uh but I think currently
42:56
successfully uh but I think currently
42:56
successfully uh but I think currently it's not completed because the status is
43:00
it's not completed because the status is
43:00
it's not completed because the status is still
43:01
still pending wait for few more
43:12
seconds let's check this inside uh my
43:15
seconds let's check this inside uh my
43:15
seconds let's check this inside uh my Azure
43:21
portal so I can also find this using
43:24
portal so I can also find this using
43:24
portal so I can also find this using Resource Group this is my Resource Group
43:27
Resource Group this is my Resource Group
43:27
Resource Group this is my Resource Group and inside that I have all these
43:30
and inside that I have all these
43:30
and inside that I have all these resources I need to access pin ship
43:32
resources I need to access pin ship
43:32
resources I need to access pin ship container registry so I will click on
43:36
container registry so I will click on
43:36
container registry so I will click on this and go to
43:43
repositories okay currently uh my image
43:46
repositories okay currently uh my image
43:46
repositories okay currently uh my image is not showing here so it means
43:50
is not showing here so it means
43:50
is not showing here so it means currently it is still pushing the
43:54
currently it is still pushing the
43:54
currently it is still pushing the image so I have to wait for this
44:25
it it takes nine okay so it is showing me
44:27
nine okay so it is showing me
44:27
nine okay so it is showing me successfully push rocker image with bag
44:30
successfully push rocker image with bag
44:30
successfully push rocker image with bag latest uh let's check it
44:33
latest uh let's check it
44:33
latest uh let's check it again okay so now you can see that I
44:38
again okay so now you can see that I
44:38
again okay so now you can see that I just pushed my asp.net for MVC web
44:43
just pushed my asp.net for MVC web
44:43
just pushed my asp.net for MVC web application to my Azure container
44:46
application to my Azure container
44:46
application to my Azure container registry and the registry name and the
44:49
registry and the registry name and the
44:49
registry and the registry name and the image name is web application to so let
44:53
image name is web application to so let
44:53
image name is web application to so let me show you how we can uh run or our
44:57
me show you how we can uh run or our
44:57
me show you how we can uh run or our custom images using container instance
45:00
custom images using container instance
45:00
custom images using container instance so let's go to create another instance
45:03
so let's go to create another instance
45:04
so let's go to create another instance containers create an
45:09
instance so I will be selecting all the
45:11
instance so I will be selecting all the
45:12
instance so I will be selecting all the options quickly I will select web app
45:16
options quickly I will select web app
45:16
options quickly I will select web app to standard here I will select container
45:21
to standard here I will select container
45:21
to standard here I will select container registry then the image that is web
45:23
registry then the image that is web
45:23
registry then the image that is web application 2 and the latest one and
45:26
application 2 and the latest one and
45:27
application 2 and the latest one and networking section as you seen that
45:30
networking section as you seen that
45:30
networking section as you seen that inside our Docker
45:32
inside our Docker file the exposeed ports was 880 and 8081
45:37
file the exposeed ports was 880 and 8081
45:37
file the exposeed ports was 880 and 8081 so which means my application will be
45:39
so which means my application will be
45:39
so which means my application will be exposed to these ports so I have to make
45:43
exposed to these ports so I have to make
45:43
exposed to these ports so I have to make these ports public then I will be able
45:45
these ports public then I will be able
45:45
these ports public then I will be able to access my application so I will add
45:48
to access my application so I will add
45:48
to access my application so I will add these ports as
45:50
these ports as well and the protocol is TCP this port
45:53
well and the protocol is TCP this port
45:54
well and the protocol is TCP this port is for
45:55
is for https I don't have current be that but
45:58
https I don't have current be that but
45:58
https I don't have current be that but still I can try
46:01
still I can try that and all other options are
46:08
default click on create so Microsoft is initializing the
46:12
create so Microsoft is initializing the
46:12
create so Microsoft is initializing the deployment it will take few seconds or
46:15
deployment it will take few seconds or
46:15
deployment it will take few seconds or maybe minutes to deploy
46:21
this let's wait for this
46:41
still waiting alment status is in
46:48
progress I hope it will take few more
46:52
progress I hope it will take few more
46:52
progress I hope it will take few more seconds okay status is completed go to
46:56
seconds okay status is completed go to
46:56
seconds okay status is completed go to the
47:02
Source if I move to Containers so you can see that it P my
47:05
Containers so you can see that it P my
47:05
Containers so you can see that it P my container and then started that and the
47:08
container and then started that and the
47:08
container and then started that and the status of my app is
47:11
status of my app is running uh let's copy the IP address the
47:14
running uh let's copy the IP address the
47:14
running uh let's copy the IP address the public IP address and check
47:20
this here whether that is accessible or
47:24
this here whether that is accessible or
47:24
this here whether that is accessible or not
47:32
it will take a little moment before it's
47:35
it will take a little moment before it's
47:35
it will take a little moment before it's first line to
47:46
call it's not accessible on theault Port
47:49
call it's not accessible on theault Port
47:49
call it's not accessible on theault Port let's try this with 08 Z
48:01
okay so basically uh as I have not
48:05
okay so basically uh as I have not
48:05
okay so basically uh as I have not specified 80 Port inside my Docker file
48:08
specified 80 Port inside my Docker file
48:08
specified 80 Port inside my Docker file so that's why my app is running on 80 80
48:12
so that's why my app is running on 80 80
48:12
so that's why my app is running on 80 80 Port so this is how you see how we can
48:16
Port so this is how you see how we can
48:16
Port so this is how you see how we can uh build or a net application how we can
48:19
uh build or a net application how we can
48:19
uh build or a net application how we can containerize over asp.net for mlc
48:22
containerize over asp.net for mlc
48:22
containerize over asp.net for mlc application and publish uh the image to
48:26
application and publish uh the image to
48:26
application and publish uh the image to your container
48:30
registry uh let's move to the slide so
48:33
registry uh let's move to the slide so
48:33
registry uh let's move to the slide so now you have understand uh this
48:36
now you have understand uh this
48:36
now you have understand uh this flowchart this is my local PC so here
48:40
flowchart this is my local PC so here
48:40
flowchart this is my local PC so here was my asp.net core MVC application uh I
48:44
was my asp.net core MVC application uh I
48:44
was my asp.net core MVC application uh I published this application using V
48:46
published this application using V
48:47
published this application using V studio uh and V Studio pushed the docker
48:51
studio uh and V Studio pushed the docker
48:51
studio uh and V Studio pushed the docker image to aure container registry and
48:54
image to aure container registry and
48:54
image to aure container registry and then I created a new instance of of aure
48:57
then I created a new instance of of aure
48:57
then I created a new instance of of aure container instance using that Docker
49:00
container instance using that Docker
49:00
container instance using that Docker image so this was the complete flow of
49:03
image so this was the complete flow of
49:03
image so this was the complete flow of how to run doise uh applications on
49:08
how to run doise uh applications on
49:08
how to run doise uh applications on Azure or how to run custom images on
49:11
Azure or how to run custom images on
49:11
Azure or how to run custom images on Azure uh computer serverless Computing
49:15
Azure uh computer serverless Computing
49:15
Azure uh computer serverless Computing options uh so this was episode 6 we talk
49:19
options uh so this was episode 6 we talk
49:19
options uh so this was episode 6 we talk about aure container registry and aure
49:22
about aure container registry and aure
49:22
about aure container registry and aure container instances I hope you have
49:25
container instances I hope you have
49:25
container instances I hope you have enjoyed this episode
49:27
enjoyed this episode
49:27
enjoyed this episode and thank you for being the part of
49:29
and thank you for being the part of
49:29
and thank you for being the part of seashop corner Islamabad chapter
49:31
seashop corner Islamabad chapter
49:31
seashop corner Islamabad chapter hopefully see you in next episode and
49:34
hopefully see you in next episode and
49:34
hopefully see you in next episode and have a good day bye-bye
49:37
have a good day bye-bye
49:37
have a good day bye-bye [Music]