{"id":800,"date":"2022-02-01T15:37:57","date_gmt":"2022-02-01T15:37:57","guid":{"rendered":"http:\/\/192.168.8.123\/?p=800"},"modified":"2022-02-11T11:08:53","modified_gmt":"2022-02-11T11:08:53","slug":"connecting-two-azure-virtual-networks-using-global-virtual-network-peering","status":"publish","type":"post","link":"https:\/\/exceedthecloud.com\/?p=800","title":{"rendered":"Connecting two Azure Virtual Networks using global virtual network peering"},"content":{"rendered":"\n<p><strong>Lab scenario<\/strong><\/p>\n\n\n\n<p>In this lab, you will configure connectivity between the CoreServicesVnet and the ManufacturingVnet by adding peerings to allow traffic flow.<\/p>\n\n\n\n<p>In this unit, you will:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Task 1: Create a Virtual Machine to test the configuration<\/li><li>Task 2: Connect to the Test VMs using RDP<\/li><li>Task 3: Test the connection between the VMs<\/li><li>Task 4: Create VNet peerings between CoreServicesVnet and ManufacturingVnet<\/li><li>Task 5: Test the connection between the VMs<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>Prerequisites for this labs :&nbsp;<a href=\"https:\/\/azure.microsoft.com\/en-us\/free\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Account<\/a>&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Task 1: Create a Virtual Machine to test the configuration<\/strong><\/p>\n\n\n\n<p>In this section, you will create a test VM on the Manufacturing VNet to test if you can access resources inside another Azure virtual network from your ManufacturingVnet.<\/p>\n\n\n\n<p><strong>Create ManufacturingVM<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the Azure home page, using the global search type <strong>Virtual Machines<\/strong> and select virtual machines under services.<\/li><li>In Virtual Machines, select <strong>+ Create; + Virtual machine<\/strong>.<\/li><li>Use the information in the following table to create your VM.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Tab<\/strong><\/td><td><strong>Option<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Basics<\/td><td>Resource group<\/td><td>ExceedlabsResourceGroup<\/td><\/tr><tr><td>&nbsp;<\/td><td>Virtual machine name<\/td><td>ManufacturingVM<\/td><\/tr><tr><td>&nbsp;<\/td><td>Region<\/td><td>West Europe<\/td><\/tr><tr><td>&nbsp;<\/td><td>Availability options<\/td><td>No infrastructure redundancy required<\/td><\/tr><tr><td>&nbsp;<\/td><td>Image<\/td><td>Windows Server 2022 Datacenter- Gen1<\/td><\/tr><tr><td>&nbsp;<\/td><td>Azure Spot instance<\/td><td>Not selected<\/td><\/tr><tr><td>&nbsp;<\/td><td>Size<\/td><td>Standard_D2s_v3 &#8211; 2vcpus, 8GiB memory<\/td><\/tr><tr><td>&nbsp;<\/td><td>Username<\/td><td>TestUser<\/td><\/tr><tr><td>&nbsp;<\/td><td>Password<\/td><td>TestPa$$w0rd!<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public inbound ports<\/td><td>Allow selected ports<\/td><\/tr><tr><td>&nbsp;<\/td><td>Select inbound ports<\/td><td>RDP (3389)<\/td><\/tr><tr><td>Disks<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Networking<\/td><td>Virtual network<\/td><td>ManufacturingVnet<\/td><\/tr><tr><td>&nbsp;<\/td><td>Subnet<\/td><td>ManufacturingSystemSubnet (10.30.10.0\/24)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public IP<\/td><td>(new) ManufacturingVM-ip<\/td><\/tr><tr><td>&nbsp;<\/td><td>NIC network security group<\/td><td>Basic<\/td><\/tr><tr><td>&nbsp;<\/td><td>Public inbound ports<\/td><td>Allow selected ports<\/td><\/tr><tr><td>&nbsp;<\/td><td>Select inbound ports<\/td><td>RDP (3389)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Load balancing<\/td><td>Not selected<\/td><\/tr><tr><td>Management<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Advanced<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Tags<\/td><td>No changes required<\/td><td>&nbsp;<\/td><\/tr><tr><td>Review + create<\/td><td>Review your settings and select Create<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture1-3.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture1-3.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>When the deployment is complete, select <strong>Go to resource<\/strong>.<\/li><\/ul>\n\n\n\n<p><strong>Task 2: Connect to the Test VMs using RDP<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the Azure Portal home page, select <strong>Virtual Machines<\/strong>.<\/li><li>Select <strong>ManufacturingVM<\/strong>.<\/li><li>In ManufacturingVM, select <strong>Connect &gt; RDP<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>In ManufacturingVM<\/td><td>Connect, select <strong>Download RDP file<\/strong>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"5\"><li>Save the RDP file to your desktop.<\/li><li>Connect to ManufacturingVM using the RDP file, and the username <strong>TestUser<\/strong> and the password <strong>TestPa$$w0rd!<\/strong>.<\/li><li>On the Azure Portal home page, select <strong>Virtual Machines<\/strong>.<\/li><li>Select <strong>TestVM1<\/strong>.<\/li><li>In TestVM1, select <strong>Connect &gt; RDP<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>In TestVM1<\/td><td>Connect, select <strong>Download RDP file<\/strong>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"11\"><li>Save the RDP file to your desktop.<\/li><li>Connect to TestVM1 using the RDP file, and the username <strong>TestUser<\/strong> and the password <strong>TestPa$$w0rd!<\/strong>.<\/li><li>On both VMs, in <strong>Choose privacy settings for your device<\/strong>, select <strong>Accept<\/strong>.<\/li><li>On both VMs, in <strong>Networks<\/strong>, select <strong>Yes<\/strong>.<\/li><li>On TestVM1, open a PowerShell prompt, and run the following command: ipconfig<\/li><li>Note the IPv4 address.<\/li><\/ul>\n\n\n\n<p><strong>Task 3: Test the connection between the VMs<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the ManufacturingVM, open a PowerShell prompt.<\/li><li>Use the following command to verify that there is no connection to TestVM1 on CoreServicesVnet. Be sure to use the IPv4 address for TestVM1.<\/li><\/ul>\n\n\n\n<p>code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Test-NetConnection 10.20.20.4 -port 3389<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"3\"><li>The test connection should fail, and you will see a result similar to the following:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture2-3.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture2-3.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Task 4: Create VNet peerings between CoreServicesVnet and ManufacturingVnet<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the Azure home page, select <strong>Virtual Networks<\/strong>, and then select <strong>CoreServicesVnet<\/strong>.<\/li><li>In CoreServicesVnet, under <strong>Settings<\/strong>, select <strong>Peerings<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture3-3.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture3-3.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>On CoreServicesVnet<\/td><td>Peerings, select <strong>+ Add<\/strong>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Use the information in the following table to create the peering.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Section<\/strong><\/td><td><strong>Option<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>This virtual network<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&nbsp;<\/td><td>Peering link name<\/td><td>CoreServicesVnet-to-ManufacturingVnet<\/td><\/tr><tr><td>&nbsp;<\/td><td>Traffic to remote virtual network<\/td><td>Allow (default)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Traffic forwarded from remote virtual network<\/td><td>Allow (default)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Virtual network gateway or Route Server<\/td><td>None (default)<\/td><\/tr><tr><td>Remote virtual network<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><tr><td>&nbsp;<\/td><td>Peering link name<\/td><td>ManufacturingVnet-to-CoreServicesVnet<\/td><\/tr><tr><td>&nbsp;<\/td><td>Virtual network deployment model<\/td><td>Resource manager<\/td><\/tr><tr><td>&nbsp;<\/td><td>I know my resource ID<\/td><td>Not selected<\/td><\/tr><tr><td>&nbsp;<\/td><td>Subscription<\/td><td>Your Subscription-xxxxxxxx<\/td><\/tr><tr><td>&nbsp;<\/td><td>Virtual network<\/td><td>ManufacturingVnet<\/td><\/tr><tr><td>&nbsp;<\/td><td>Traffic to remote virtual network<\/td><td>Allow (default)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Traffic forwarded from remote virtual network<\/td><td>Allow (default)<\/td><\/tr><tr><td>&nbsp;<\/td><td>Virtual network gateway or Route Server<\/td><td>None (default)<\/td><\/tr><tr><td>Review your settings and select Add.<\/td><td>&nbsp;<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture4-3.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture4-3.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>In CoreServicesVnet<\/td><td>Peerings, verify that the <strong>CoreServicesVnet-to-ManufacturingVnet<\/strong> peering is listed.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture5-3.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture5-3.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>Under Virtual networks, select <strong>ManufacturingVnet<\/strong>, and verify the <strong>ManufacturingVnet-to-CoreServicesVnet<\/strong> peering is listed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture6-2.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture6-2.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p><strong>Task 5: Test the connection between the VMs<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the ManufacturingVM, open a PowerShell prompt.<\/li><li>Use the following command to verify that there is now a connection to TestVM1 on CoreServicesVnet.<\/li><\/ul>\n\n\n\n<p>code<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Test-NetConnection 10.20.20.4 -port 3389<\/code><\/pre>\n\n\n\n<p>The test connection should succeed, and you will see a result similar to the following:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/192.168.8.123\/wp-content\/uploads\/2022\/02\/Picture7-2.png\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/Picture7-2.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>Congratulations! You have successful configured connectivity between VNets by adding peerings.<\/p>\n\n\n\n<p><mark class=\"kt-highlight\"><strong>Reminder<\/strong>: Don\u2019t forget to delete or shutdown all unused Azure resources after your labs for cost saving<\/mark><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lab scenario In this lab, you will configure connectivity between the CoreServicesVnet and the ManufacturingVnet by adding peerings to allow traffic flow. In this unit, you will: Task 1: Create a Virtual Machine to test the configuration Task 2: Connect &hellip; <a href=\"https:\/\/exceedthecloud.com\/?p=800\">Continued<\/a><\/p>\n","protected":false},"author":1,"featured_media":850,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"kt_blocks_editor_width":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,4,19],"tags":[38,36,35,31,37],"class_list":["post-800","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking","category-practical-labs-series","category-virtual-machines","tag-peering","tag-rdp","tag-virtual-machines","tag-virtual-network","tag-vnet-peerings"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/istockphoto-109350684-612x612-1.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=800"}],"version-history":[{"count":5,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":2326,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions\/2326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/media\/850"}],"wp:attachment":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}