{"id":27651,"date":"2020-12-21T11:54:55","date_gmt":"2020-12-21T11:54:55","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=27651"},"modified":"2022-03-15T09:41:15","modified_gmt":"2022-03-15T09:41:15","slug":"direct-web-traffic-with-azure-application-gateway","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/","title":{"rendered":"Direct web traffic with Azure Application Gateway"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-104-microsoft-azure-administrator-associate\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Go back to Tutorial<\/strong><\/a><\/p>\n\n\n\n<p>In this tutorial, we will learn about Azure PowerShell to create an application gateway. However, the application gateway directs application web traffic to specific resources in a backend pool. You assign listeners to ports, create rules, and add resources to a backend pool. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Create a resource group<\/strong><\/h4>\n\n\n\n<p>Use the New-AzResourceGroup cmdlet to establish a new resource group:<\/p>\n\n\n\n<p><strong>Azure PowerShell<\/strong><br><em>New-AzResourceGroup -Name myResourceGroupAG -Location eastus<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Create network resources<\/strong><\/h4>\n\n\n\n<p>A virtual network is required for Azure to interact between the resources you construct. Only application gateways are allowed in the application gateway subnet. Other resources are not permitted. You can utilize an existing subnet or build a new one for Application Gateway. In this example, two subnets are created: one for the application gateway and the other for the backend servers. Depending on your needs, you may make the Application Gateway&#8217;s Frontend IP Public or Private. You&#8217;ll use a Public Frontend IP in this example.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, Create the subnet configurations using New-AzVirtualNetworkSubnetConfig.<\/li><li>Secondly, Create the virtual network with the subnet configurations using New-AzVirtualNetwork.<\/li><li>Lastly, Create the public IP address using New-AzPublicIpAddress.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-administrator-associate-az-104-free-practice-test\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"117\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/z104-prac-tests-1-750x117.png\" alt=\"AZ-104  practice tests\" class=\"wp-image-27611\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/z104-prac-tests-1-750x117.png 750w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/z104-prac-tests-1.png 961w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-an-application-gateway\"><strong>Create an application gateway<\/strong><\/h3>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"create-the-ip-configurations-and-frontend-port\"><strong>Create the IP configurations and frontend port<\/strong><\/h5>\n\n\n\n<ol class=\"wp-block-list\"><li>Firstly, Use&nbsp;<code>New-AzApplicationGatewayIPConfiguration<\/code>&nbsp;to create the configuration that associates the subnet you created with the application gateway.<\/li><li>Secondly, Use&nbsp;<code>New-AzApplicationGatewayFrontendIPConfig<\/code>&nbsp;to create the configuration that assigns the public IP address that you previously created to the application gateway.<\/li><li>Lastly, Use&nbsp;<code>New-AzApplicationGatewayFrontendPort<\/code>&nbsp;to assign port 80 to access the application gateway.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"268\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/source-6-750x268.png\" alt=\"Direct web traffic with Azure Application Gateway\" class=\"wp-image-27682\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/source-6-750x268.png 750w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/source-6.png 998w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"create-the-backend-pool\"><strong>Create the backend pool<\/strong><\/h5>\n\n\n\n<ol class=\"wp-block-list\"><li>Firstly, Use&nbsp;<code>New-AzApplicationGatewayBackendAddressPool<\/code>&nbsp;to create the backend pool for the application gateway. The backend pool will be empty for now. When you create the backend server NICs in the next section, you will add them to the backend pool.<\/li><li>Then, Configure the settings for the backend pool with&nbsp;<code>New-AzApplicationGatewayBackendHttpSetting<\/code>.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"198\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/source-7-750x198.png\" alt=\"Direct web traffic with Azure Application Gateway\" class=\"wp-image-27683\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/source-7-750x198.png 750w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/source-7.png 994w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"create-the-application-gateway\"><strong>Create the application gateway<\/strong><\/h5>\n\n\n\n<p>Now that you&#8217;ve created the necessary supporting resources, create the application gateway:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Firstly, Use&nbsp;<code>New-AzApplicationGatewaySku<\/code>&nbsp;to specify parameters for the application gateway.<\/li><li>Then, Use&nbsp;<code>New-AzApplicationGateway<\/code>&nbsp;to create the application gateway.<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"342\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/source-8-750x342.png\" alt=\"create application gateway\" class=\"wp-image-27684\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/source-8-750x342.png 750w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/source-8.png 999w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"backend-servers\"><strong>Backend servers<\/strong><\/h4>\n\n\n\n<p>Create the backend virtual machines that will host the websites now that you&#8217;ve finished with the Application Gateway. NICs, virtual machine scale sets, public IPs, internal IPs, fully qualified domain names (FQDN), and multi-tenant backends like Azure App Service may all be found in the backend. In this example, you&#8217;ll utilise Azure to establish two virtual machines that will function as the application gateway&#8217;s backend servers. You must also install IIS on the virtual machines to ensure that Azure generated the application gateway correctly.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"create-two-virtual-machines\"><strong>Create two virtual machines<\/strong><\/h5>\n\n\n\n<ol class=\"wp-block-list\"><li>Firstly, Get the recently created Application Gateway backend pool configuration with&nbsp;<code>Get-AzApplicationGatewayBackendAddressPool<\/code>.<\/li><li>Secondly, Create a network interface with&nbsp;<code>New-AzNetworkInterface<\/code>.<\/li><li>Thirdly, Create a virtual machine configuration with&nbsp;<code>New-AzVMConfig<\/code>.<\/li><li>Lastly, Create the virtual machine with&nbsp;<code>New-AzVM<\/code>.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Test the application gateway<\/strong><\/h4>\n\n\n\n<p>Despite the fact that IIS isn&#8217;t necessary to establish the application gateway, you installed it in this quickstart to ensure that Azure created it successfully. To test the application gateway, use IIS:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, Run Get-AzPublicIPAddress to get the public IP address of the application gateway.<\/li><li>Secondly, Copy and paste the public IP address into the address bar of your browser. When you refresh the browser, you should see the name of the virtual machine. <\/li><\/ul>\n\n\n\n<p><strong>Azure PowerShell<\/strong><br><em>Get-AzPublicIPAddress -ResourceGroupName myResourceGroupAG -Name myAGPublicIPAddress<\/em><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-administrator-associate-az-104-online-course\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"117\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/az104-online-course-750x117.png\" alt=\"Direct web traffic with Azure Application Gateway AZ-104 online course\" class=\"wp-image-27612\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/az104-online-course-750x117.png 750w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/az104-online-course.png 961w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><strong>Reference:<\/strong> <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/application-gateway\/quick-create-powershell\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Documentation<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-104-microsoft-azure-administrator-associate\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Go back to Tutorial<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go back to Tutorial In this tutorial, we will learn about Azure PowerShell to create an application gateway. However, the application gateway directs application web traffic to specific resources in a backend pool. You assign listeners to ports, create rules, and add resources to a backend pool. Create a resource group Use the New-AzResourceGroup cmdlet&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-27651","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Direct web traffic with Azure Application Gateway : Testprep Tutorials<\/title>\n<meta name=\"description\" content=\"Increase your skills by learning about Direct web traffic with Azure Application Gateway using Microsoft Azure AZ-104 online course Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Direct web traffic with Azure Application Gateway : Testprep Tutorials\" \/>\n<meta property=\"og:description\" content=\"Increase your skills by learning about Direct web traffic with Azure Application Gateway using Microsoft Azure AZ-104 online course Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-15T09:41:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/z104-prac-tests-1-750x117.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/\",\"name\":\"Direct web traffic with Azure Application Gateway : Testprep Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-12-21T11:54:55+00:00\",\"dateModified\":\"2022-03-15T09:41:15+00:00\",\"description\":\"Increase your skills by learning about Direct web traffic with Azure Application Gateway using Microsoft Azure AZ-104 online course Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Direct web traffic with Azure Application Gateway\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Direct web traffic with Azure Application Gateway : Testprep Tutorials","description":"Increase your skills by learning about Direct web traffic with Azure Application Gateway using Microsoft Azure AZ-104 online course Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/","og_locale":"en_US","og_type":"article","og_title":"Direct web traffic with Azure Application Gateway : Testprep Tutorials","og_description":"Increase your skills by learning about Direct web traffic with Azure Application Gateway using Microsoft Azure AZ-104 online course Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-03-15T09:41:15+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/12\/z104-prac-tests-1-750x117.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/","name":"Direct web traffic with Azure Application Gateway : Testprep Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-12-21T11:54:55+00:00","dateModified":"2022-03-15T09:41:15+00:00","description":"Increase your skills by learning about Direct web traffic with Azure Application Gateway using Microsoft Azure AZ-104 online course Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/direct-web-traffic-with-azure-application-gateway\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Direct web traffic with Azure Application Gateway"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/27651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=27651"}],"version-history":[{"count":9,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/27651\/revisions"}],"predecessor-version":[{"id":52886,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/27651\/revisions\/52886"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=27651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=27651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=27651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}