Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Ensure that you are logged on to 20533B-MIA-CL1 as Student with the password Pa$$w0rd.
On the task bar, right-click Microsoft Azure PowerShell and click Run ISE as
Administrator. Click Yes when prompted.
2. In the Windows PowerShell ISE, in the command prompt pane, enter the following command
and then press Enter to add an Azure account to the local PowerShell environment:
Add-AzureAccount
When prompted, sign in using the Microsoft account associated with your Azure subscription.
3. In the Windows PowerShell ISE, click File and then click Open.
4. In the Open dialog, browse to D:\Labfiles\Lab02\Starter\.
5. Click ExampleCommands.ps1 and then click Open.
6. If the Script pane is not visible, on the View menu, click Show Script Pane.
7. In the Windows PowerShell ISE, in the command prompt pane, enter the following command
and press Enter:
Get-AzureSubscription
8. In the Windows PowerShell ISE, in the command prompt pane, select the subscription name,
then right-click, and click Copy.
In the Windows PowerShell ISE, in the Script pane, paste the subscription name.
9. In the Windows PowerShell ISE, in the command prompt pane, enter the following command
and press Enter:
Update-help
10. In the Windows PowerShell ISE, in the command prompt pane, enter the following command
to clear the screen and press Enter:
cls
Note: For Location 1 and Location 2 use two Azure regions close to your physical
location. Your instructor will provide this information.
Task 2: Create Virtual Networks in the Management Portal and in PowerShell
1.
9. In the Virtual Network Address Spaces page, in the SUBNETS section, ensure that the
STARTING IP is 10.0.1.0, and under CIDR (ADDRESS COUNT) select /25 (128); if you cannot
view the CIDR list, delete the 10.0.1.0 under STARTING IP, then type 10.0.1.0 again.
10. Note the Usable address range.
11. Click the check mark on the bottom right of the dialog box.
12. You have now set up a virtual network in Microsoft Azure.
13. On the bottom of the networks page, click the EXPORT button.
14. In the Export network configuration dialog box, ensure your subscription is selected, and
click the checkmark.
15. On the pop-up box, click Save, then click Save as.
16. Save the NetworkConfig.xml file to the desktop on your computer.
17. On the Windows Taskbar, click File Explorer and navigate to the desktop.
18. Right-click NetworkConfig.xml and click Edit.
19. Copy everything between <VirtualNetworkSites> and </VirtualNetworkSites>.
20. Paste the copied text just before </VirtualNetworkSites>; you should now have two identical
VirtualNetworkSite sections in the XML file.
21. Make the following changes to the second VirtualNetworkSite section in the XML file file:
a. <VirtualNetworkSite name="ADATUM-BRANCH-VNET" Location="Your Location 2">
b. Under <AddressSpace>, <AddressPrefix>10.0.2.0/24
c. Under <Subnet name=Subnet-1>, <AddressPrefix>10.0.2.0/25
d. Do not change any other text
22. On the File menu, click Save.
Close Notepad
Set-AzureVNetConfig C:\path\NetworkConfig.xml
Replace path with the path to your desktop.
25.
26.
27.
28.
29.
3. In the Windows PowerShell ISE, in the command prompt pane, enter the following command
and press Enter:
.\CreateVirtualMachines1.ps1
9. In the Windows PowerShell ISE, in the command prompt pane, enter the following command
and press Enter:
.\CreateVirtualMachines2.ps1
_______________________________________
5. Repeat steps 2 to 4 above, and note the GATEWAY IP ADDRESS for ADATUM-BRANCHVNET:
_______________________________________
17. At the Windows PowerShell ISE prompt, type the following command, and press Enter:
18.
19.
20.
21.
22.
Ping 10.0.2.4
Ping 10.0.1.4
Test-NetConnection AdatumEastSvr1.adatum.msft
4. Verify that AdatumEastSvr1 responds to ICMP messages, and note the IP address that
responds:
_______________________________________
5.
6.
7.
8.
9.
Test-NetConnection AdatumWestSvr1.adatum.msft
10. Verify that AdatumWestSvr1 responds to ICMP messages, and note the IP address that
responds:
_______________________________________
12. At the Command Prompt, type the following command, and press Enter:
8.
9.
10.
11.
12.
13.
ipconfig /all
14. In the results, verify that there is a PPP adapter ADATUM-HQ-VNET section, and that you
have an assigned IP address and that the DNS server is set to 10.0.1.4 (AdatumWestSvr1).
15. Switch to File Explorer.
16. In File Explorer, in the Address box, type the following, and then press Enter:
\\adatumwestsvr1.adatum.msft\c$
17. In the Windows Security dialog box, type the following credentials, and click OK:
User name: Student
Password: Pa$$w0rd123
18. Verify that you can browse files on AdatumWestSvr1 over the point-to-site VPN.
19. Switch to the Network Connections window.
20. Right-click ADATUM-HQ-VNET, and then click Connect/Disconnect.
21. In the Networks page, click the ADATUM-HQ-VNET VPN connection, and then click
Disconnect.
4. When prompted, sign in using the Microsoft account associated with your Azure subscription.
Note: This script may remove Azure services in your subscription. It is therefore recommended
that you use an Azure trial pass that was provisioned specifically for this course, and not your
own Azure account.
The script will take 5-10 minutes to reset your Microsoft Azure environment, ready for the next
lab.
The script removes all storage, VMs, virtual networks and gateways, cloud services, and resource
groups.
Important: The script may not be able to get exclusive access to a storage account to delete it
(you will see an error, if this occurs). If you find objects remaining after the reset script is
complete, you can re-run Reset-Azure script, or use the full Azure Management Portal to
manually delete all the objects in your Azure subscription, with the exception of the default
directory.
[DC1]Path may change depending on version
[DC2]Path may change depending on version
[DC3]Check we are using a 64-bit client.
of VS we use
of VS we use