{"id":14960,"date":"2020-08-04T07:21:35","date_gmt":"2020-08-04T07:21:35","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=14960"},"modified":"2020-08-07T03:16:01","modified_gmt":"2020-08-07T03:16:01","slug":"create-an-application-gateway","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/","title":{"rendered":"Create an application gateway"},"content":{"rendered":"\n<p>This tutorial shows you how to use the Azure portal to create an Application Gateway with a Web Application Firewall (WAF). The WAF uses&nbsp;OWASP&nbsp;rules to protect your application. These rules include protection against attacks such as SQL injection, cross-site scripting attacks, and session hijacks. After creating the application gateway, you test it to make sure it&#8217;s working correctly.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/scenario-waf.png\" alt=\" Create an application gateway\" class=\"wp-image-14961\" width=\"580\" height=\"218\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/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<p>For Azure to communicate between resources, it needs a virtual network. You can either create a new virtual network or use an existing one. You can create a virtual network at the same time that you create the application gateway. Application Gateway instances are created in separate subnets. You create two subnets in this example: one for the application gateway, and another for the backend servers.<\/p>\n\n\n\n<p>Select&nbsp;<strong>Create a resource<\/strong>&nbsp;on the left menu of the Azure portal. The&nbsp;<strong>New<\/strong>&nbsp;window appears.<\/p>\n\n\n\n<p>Select&nbsp;<strong>Networking<\/strong>&nbsp;and then select&nbsp;<strong>Application Gateway<\/strong>&nbsp;in the&nbsp;<strong>Featured<\/strong>&nbsp;list.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-backend-targets\"><strong>Add backend targets<\/strong><\/h3>\n\n\n\n<p>In this example, you&#8217;ll use virtual machines as the target backend. You can either use existing virtual machines or create new ones. You&#8217;ll create two virtual machines that Azure uses as backend servers for the application gateway.<\/p>\n\n\n\n<p>To do this, you&#8217;ll:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Create two new VMs,&nbsp;<em>myVM<\/em>&nbsp;and&nbsp;<em>myVM2<\/em>, to be used as backend servers.<\/li><li>Install IIS on the virtual machines to verify that the application gateway was created successfully.<\/li><li>Add the backend servers to the backend pool.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-a-storage-account-and-configure-diagnostics\"><strong>Create a storage account and configure diagnostics<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"create-a-storage-account\"><strong>Create a storage account<\/strong><\/h4>\n\n\n\n<p>For this article, the application gateway uses a storage account to store data for detection and prevention purposes. You could also use Azure Monitor logs or Event Hub to record data.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Select&nbsp;<strong>Create a resource<\/strong>&nbsp;on the upper left-hand corner of the Azure portal.<\/li><li>Select&nbsp;<strong>Storage<\/strong>, and then select&nbsp;<strong>Storage account<\/strong>.<\/li><li>For&nbsp;<em>Resource group<\/em>, select&nbsp;<strong>myResourceGroupAG<\/strong>&nbsp;for the resource group.<\/li><li>Type&nbsp;<em>myagstore1<\/em>&nbsp;for the name of the storage account.<\/li><li>Accept the default values for the other settings and then select&nbsp;<strong>Review + Create<\/strong>.<\/li><li>Review the settings, and then select&nbsp;<strong>Create<\/strong>.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"configure-diagnostics\"><strong>Configure diagnostics<\/strong><\/h4>\n\n\n\n<p>Configure diagnostics to record data into the ApplicationGatewayAccessLog, ApplicationGatewayPerformanceLog, and ApplicationGatewayFirewallLog logs.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>In the left-hand menu, select&nbsp;<strong>All resources<\/strong>, and then select&nbsp;<em>myAppGateway<\/em>.<\/li><li>Under Monitoring, select&nbsp;<strong>Diagnostics settings<\/strong>.<\/li><li>select&nbsp;<strong>Add diagnostics setting<\/strong>.<\/li><li>Enter&nbsp;<em>myDiagnosticsSettings<\/em>&nbsp;as the name for the diagnostics settings.<\/li><li>Select&nbsp;<strong>Archive to a storage account<\/strong>, and then select&nbsp;<strong>Configure<\/strong>&nbsp;to select the&nbsp;<em>myagstore1<\/em>&nbsp;storage account that you previously created, and then select&nbsp;<strong>OK<\/strong>.<\/li><li>Subsequently, Select the application gateway logs to collect and keep.<\/li><li>Select&nbsp;<strong>Save<\/strong>.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-and-link-a-web-application-firewall-policy\"><strong>Create and link a Web Application Firewall policy<\/strong><\/h2>\n\n\n\n<p>All of the WAF customizations and settings are in a separate object, called a WAF Policy. The policy must be associated with your Application Gateway. To create a WAF Policy. Once it&#8217;s been created, you can then associate the policy to your WAF (or an individual listener) from the WAF Policy in the&nbsp;<strong>Associated Application Gateways<\/strong>&nbsp;tab.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"test-the-application-gateway\"><strong>Test the application gateway<\/strong><\/h2>\n\n\n\n<p>Although IIS isn&#8217;t required to create the application gateway, you installed it to verify whether Azure successfully created the application gateway.&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Find the public IP address for the application gateway on its&nbsp;<strong>Overview<\/strong>&nbsp;page.Or, you can select&nbsp;<strong>All resources<\/strong>, enter&nbsp;<em>myAGPublicIPAddress<\/em>&nbsp;in the search box, and then select it in the search results. Azure displays the public IP address on the&nbsp;<strong>Overview<\/strong>&nbsp;page.<\/li><li>Copy the public IP address, and then paste it into the address bar of your browser.<\/li><li>Check the response. A valid response verifies that the application gateway was successfully created and it can successfully connect with the backend.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"clean-up-resources\"><strong>Clean up resources<\/strong><\/h3>\n\n\n\n<p>When you no longer need the resources that you created with the application gateway, remove the resource group. By removing the resource group, you also remove the application gateway and all its related resources.<\/p>\n\n\n\n<p>To remove the resource group:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>On the left menu of the Azure portal, select&nbsp;<strong>Resource groups<\/strong>.<\/li><li>Then, On the&nbsp;<strong>Resource groups<\/strong>&nbsp;page, search for&nbsp;<strong>myResourceGroupAG<\/strong>&nbsp;in the list, then select it.<\/li><li>On the&nbsp;<strong>Resource group page<\/strong>, select&nbsp;<strong>Delete resource group<\/strong>.<\/li><li>Enter&nbsp;<em>myResourceGroupAG<\/em>&nbsp;for&nbsp;<strong>TYPE THE RESOURCE GROUP NAME<\/strong>&nbsp;and then select&nbsp;<strong>Delete<\/strong><\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-architect-technologies-az-303-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png\" alt=\"free practice test for AZ- 303\" class=\"wp-image-13928\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png 960w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5-750x117.png 750w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-303-microsoft-azure-architect-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Go back to home page <\/strong><\/a><\/p>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference documentation &#8211;  <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/web-application-firewall\/ag\/application-gateway-web-application-firewall-portal#create-an-application-gateway\" target=\"_blank\">Tutorial: Create an application gateway with a Web Application Firewall using the Azure portal<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial shows you how to use the Azure portal to create an Application Gateway with a Web Application Firewall (WAF). The WAF uses&nbsp;OWASP&nbsp;rules to protect your application. These rules include protection against attacks such as SQL injection, cross-site scripting attacks, and session hijacks. After creating the application gateway, you test it to make sure&#8230;<\/p>\n","protected":false},"author":1,"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-14960","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>Create an application gateway - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create an application gateway, Crack the exam 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\/create-an-application-gateway\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create an application gateway - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create an application gateway, Crack the exam now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-07T03:16:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/scenario-waf.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\/create-an-application-gateway\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/\",\"name\":\"Create an application gateway - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-08-04T07:21:35+00:00\",\"dateModified\":\"2020-08-07T03:16:01+00:00\",\"description\":\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create an application gateway, Crack the exam now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create an 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":"Create an application gateway - Testprep Training Tutorials","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create an application gateway, Crack the exam 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\/create-an-application-gateway\/","og_locale":"en_US","og_type":"article","og_title":"Create an application gateway - Testprep Training Tutorials","og_description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create an application gateway, Crack the exam now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-08-07T03:16:01+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/scenario-waf.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\/create-an-application-gateway\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/","name":"Create an application gateway - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-08-04T07:21:35+00:00","dateModified":"2020-08-07T03:16:01+00:00","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Create an application gateway, Crack the exam now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-application-gateway\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Create an 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\/14960","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=14960"}],"version-history":[{"count":2,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14960\/revisions"}],"predecessor-version":[{"id":15614,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14960\/revisions\/15614"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=14960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=14960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=14960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}