20533C Module 2 Lab Answer Key

20533C Module 2 Lab Answer Key


Before you begin.

1.         Log in to the MIA-CL1 lab image as Student with the password of Pa$$w0rd.


2.         On the taskbar, right-click Windows PowerShell, and then click Run as administrator. In the User Account Control dialog, click Yes.


3.         Type the following command, and then press Enter:

Setup-Azure


4.         At the command prompt, type the module number, and then press Enter:


5.         Confirm your selection, and then press Enter.


6.         When prompted, sign in to your Azure subscription by using an account that is either its Service Administrator or a Co-administrator.


7.         When prompted, provide the number corresponding to the Central US Azure region and then press Enter.


8.         If the setup script appears to be stalled or takes longer than expected, click into the PowerShell window and press the <Enter> key to see if that will move the script along.


9.         When the script completes, close the PowerShell command prompt and Internet Explorer.


Lab A: Using a deployment template and Azure PowerShell to implement Azure Virtual Networks

Exercise 1: Creating an Azure virtual network by using a deployment template

Task 1: Access the template on GitHub

1.

Ensure that you are signed in to MIA-CL1 as Student with the password Pa$$w0rd. You should have already run the preparation script in the �Preparing the environment� demonstration 

at the beginning of the module. Setup time should be around 10 minutes. If the setup script appears

to be stalled or takes longer than expected, click into the PowerShell window and press the <Enter> key.

2.

On the desktop, on the taskbar, click the Internet Explorer icon.

3.

In the Microsoft Internet Explorer Address bar, type the following address, and then press Enter: 

http://aka.ms/Mt32e4

4.

Open a GitHub template that you can use to create a virtual network with two subnets (see steps below).

Task 2: Load the template into new deployment on the Azure portal

1.

In Internet Explorer, under Virtual Network with two Subnets, click Deploy to Azure.

2.

When prompted, sign in using the Microsoft account associated with your Azure subscription.

3.

In the Azure portal, in the Custom deployment blade, click the Edit Template link.

4.

Review the structure of the JavaScript Object Notation (JSON) file. Examine the placeholders for values that 

can be edited during the deployment. This template contains the following parameters that you can edit:

location, vnetName, vnetAddressPrefix, subnet1Name, subnet1Prefix, subnet2Name, subnet2Prefix. 

5.

Review the content under resources to identify type of the resource, its name, and properties.

6.

Click Discard to close the Edit Template blade.

Note: If the template fails to load into the Azure portal, navigate to the following URL: http://aka.ms/Fpqovq. Then, 

select and copy all the text. Paste the copied text into the Edit Template blade, and then perform steps 4 and 5 to 

review the template.

Task 3: Run the deployment from the Azure portal

1.

In the Custom deployment blade click Edit Parameters.

2.

Type the following information for the Parameters, and then click OK.

o

VNETNAME: HQ

o

VNETADDRESSPREFIX: 10.0.0.0/16

o

SUBNET1NAME: Subnet1

o

SUBNET1PREFIX: 10.0.0.0/24

o

SUBNET2NAME: Subnet2

o

SUBNET2PREFIX: 10.0.1.0/24


3.

In the Custom Deployment blade, under the Resource Group section, select New if necessary.

 In the New resource group name field type AdatumLabRG to create a new Resource group with that name.

4.

In the Custom Deployment blade under Resource group location drop-down list select your desired location.

5.

In the Custom Deployment blade, click Legal Terms link. Review the Terms of use, and then click Purchase.

6.

In the custom deployment blade, click Create to create the new virtual network.

7.

Verify that provisioning of the new virtual network with name HQ completed successfully.

Result: After completing this exercise, you should have created virtual networks for A. Datum HQ.

Exercise 2: Creating a virtual network by using PowerShell

Task 1: Create a virtual network by using PowerShell

1.

From the taskbar, start Windows PowerShell.

2.

Sign in to your subscription by typing the following command, and then pressing Enter:

Login-AzureRMAccount

3.

To select the subscription in which you are going to create a virtual network, type the following commands, 

and then press Enter after each (replace �Name of your subscription� with the actual name of your subscription 

and make sure to enclose the name ofyour subscription in single quotes):

Get-AzureRmSubscription

Set-AzureRmContext �SubscriptionName �Name of your subscription�

4.

To create a new resource group, type the following command, and then press Enter (replace �Location� with the 

actual name of the primary Azure region provided by the instructor and make sure to enclose the name of the 

region in single quotes):

New-AzureRMResourceGroup �Name AdatumTestRG �Location �Location1�

5.

To create a new virtual network named AdatumTestVnet with the address space 10.0.0.0/16 and store a reference 

to it in the $vnet variable, type the following command (on one line), and then press Enter (replace �Location� with 

the actual name of the primary Azure region provided by the instructor and make sure to enclose the name of the

region in single quotes):

$vnet = New-AzureRMVirtualNetwork �ResourceGroupName AdatumTestRG �Name

AdatumTestVnet �AddressPrefix 10.0.0.0/16 �Location �Location1�

6.

To add a subnet to the new virtual network, type the following command, and then press Enter (one line):

Add-AzureRmVirtualNetworkSubnetConfig -Name FrontEnd -VirtualNetwork

$vnet -AddressPrefix 10.0.0.0/24

7.

To update the configuration in the virtual network, type the following command, and then press Enter:

        

Comments

Popular posts from this blog

Shaun White Skateboarding Offline Fix SKIDROW MediaFire

2015 2016 Kwara State University KWASU Post UTME Result is out