Microsoft AZ-700: Exercise – Connect Two Azure Virtual Networks Using Global Virtual Network Peering

Reading Time: 2 minutes

Notes from MS Learn AZ-700 Module 1: Introduction to Azure Virtual Networks – Unit 8: Exercise – Connect Two Azure Virtual Networks Using Global Virtual Network Peering

Tasks (taken from MS Learn: Items without “Task” in front of them are personal additions)

  • Task 1: Deploy the infrastructure.
    • Create VMs
      • Open Azure Cloud Powershell (button next to search bar in Azure Portal)
      • Upload template and parameters files (Upload/Download button in Powershell bar)
      • View account/subscription information and set variable
        • az account show –output table
        • az account set –subscription “AZ subscription name”
      • Set Resource Group Name variable
        • $RGName = “ResourceGroupName”
      • Deploy ARM template to create VM
        • New-AzResourceGroupDeployment -ResourceGroupName $RGName -TemplateFile TemplateFileName.json -TemplateParameterFile TemplateParamFileName.json
      • Close PowerShell
    • Verify VM creation
      • Search and Select Virtual Machines in Azure Portal
      • Verify VMs exist
  • Task 2: Use RDP to connect to the test virtual machines.
    • Select the Testvm and note Private IP address – close page
    • Select another VM and connect via RDP
      • Select connect in VM menu bar
      • Select RDP
        • Select Download RDP File on RDP page
        • In the right panel select Open File
        • Select connect
        • Enter Username and Password and select OK
  • Task 3: Test the connection between the virtual machines.
    • Open PowerShell
      • Search Button > PowerShell Select PowerShell
      • Verify lack of connectivity between VMs as no VNet peering exists yet
        • Test-NetConnection X.X.X.X -port 3389 (where x.x.x.x is note IP earlier)
        • Note failure with TimedOut
    • Minimize RDP session
  • Task 4: Create VNet peerings.
    • In Azure search Virtual Networks
    • Select Virtual Networks
    • Select the VNet
      • In left pane select Peerings
        • Select Add on Peerings menu
          • Add Peering link name
          • Add Peer link name under Remote virtual network
          • Select remote VNet from Virtual Network dropdown
          • Select Add
        • Select Refresh in Peerings menu
          • Peering status should say “Connected”
        • Close Peerings page
    • Select the peered to VNet
      • Select Peerings
        • Note the new peering listed
  • Task 5: Retest the connection between the virtual machines.
    • Navigate to the resource
      • On VMs page select Connect from the menu
      • Verify connectivity in PowerShell you left open
        • Test-NetConnection X.X.X.X -port 3389 (where x.x.x.x is note IP earlier)
        • Not connection Succeeded in output
          • TcpTestSucceeded : True
Share this article:

Permanent link to this article: https://www.packetpilot.com/microsoft-az-700-exercise-connect-two-azure-virtual-networks-using-global-virtual-network-peering/

Leave a Reply

Your email address will not be published.