1 hour 19 minutes
Now, if you're on a mark or ah Lenox machine, you don't have power showing stop.
However, all the virtual machines that are created the national half the actual cli in start on them. Let's see how we can do the same things that we did with Power Shell with azure sea ally.
The first thing we need to do is to off course signing with Asher will do that by using a Z Logan
Seymour to the power show approach will get a browser window
and will be locked in automatically in the browser and window.
This will be closed in about 10 seconds.
Here we have a list off all our subscriptions that we have access to.
Next. Let's create a resource group using astral ***. CLI a C group
could be eight.
We need to put a name for the
resource group for call it cyber very
cli test our G
and of course, location which will be west. Us too.
So our resource group will be created. The next thing we can do is to start our deployment.
Toto, the department we need to use the ese group deployment,
and we need to specify some information like the name of the deployment them played CLI deployment
the Resource Group
which will be the cyberbullying,
cli best research group.
And of course, the template file,
which will be our template. Jason,
Once we started the command,
the C l. I will ask us for the input will use the usual one cyber very for the app name and
uppercase death for our environment.
After a minute, the deployment will be complete and we can see the output from it.
Here is the output from our deployment using azure cli.
Now let's try to use the parameters files to deport the development in the production environment. However, one thing I will do here is East it creating a new resource group for the development environment. I will use the existing cyber very CLI Test resource group that we just used.
So we will do Pacey Group deployment
will specify name for the deployment arm Template
Seelye. Their deployment
We'll specify the resource group
which will be the same
then we'll specify more complete toe. Make sure whatever it is existing in this resource group is
deleted before we do our deployment.
Then we'll specify the template file,
which will be our template, Jason and the last thing will specify will be the parameters.
So they're fun. A few ways to specify the perimeters.
You can use a Jason four month. You can use key value pairs, or you can use the parameters found. The parameters file needs to be preceded by the art symbol.
So where's the party mentors there? Jason. File
for our deployment.
If you have three sources that are included in the template in your resource group and use complete malt, the department can be very fast. However, if you have different resource is that needs to be deleted before the deployment is done that the appointment can take a little bit longer.
Our deployment was very fast because we have the exactly same resource is in the resource group
else we have in the template.
Now let's go and do the production deployment So Social group create will create the
research group for the production.
We'll call it Cyber Larry
out of G
West us too
and we'll do the way we use the same template. I'm template. However we different
parameters file to do our deployment and I will actually
modify the previous command.
So use the parameters brought J Song and we will use the
Brought our Jeanne
and we'll just name our deployment. I'm template cli probe deployment.
We'll start this deployment. It will take a minute or two to deport. The resource is and we'll get the output from it.
Our deployment is done. Let's reach to the portal and see what we have there.
As you can see, we have to resource groups. One is the cyber very cli test resource group.
We can click on it
and see that we have the resource is let's look at the deployments. So the 1st 1 that we did manually without the parameters files is still here. But we also have the seal I deaf deployment in the resource group, which is the second deployment that we did
for these resource group.
In the production one, we have just a single deployment, which is the production deployment that we have done.
Now you have learned how you can use the usher cli tow dough arm template deployments
in case you don't have power. Shelby point on your machine
Deploy Hybrid-Cloud Azure Solutions using ARM Templates
This IT Pro Challenge hands-on lab helps learners understand how to use the Azure Resource ...
Learn On Demand
Deploy Scalable Azure Solutions using ARM Templates
This IT Pro Challenge helps learners understand how to use Azure Resource Manager (ARM) templates ...
Learn On Demand