{"id":16684,"date":"2020-08-17T12:38:44","date_gmt":"2020-08-17T12:38:44","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=16684"},"modified":"2020-08-26T11:00:31","modified_gmt":"2020-08-26T11:00:31","slug":"configure-network-security-groups-nsgs","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/","title":{"rendered":"Configure Network Security Groups (NSGs)"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-500-microsoft-azure-security-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to AZ-500 Tutorials<\/a><\/p>\n\n\n\n<p>In this tutorial, we will learn about network security groups, see Network security group overview. But, before we begin, if you don&#8217;t have one, set up an Azure account with an active subscription. Create an account for free. Complete one of these tasks before starting the remainder of this tutorial:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Portal users:<\/strong> This means to sign in to the Azure portal using Azure account.<\/li><li><strong>PowerShell users:<\/strong> This states either run the commands in the Azure Cloud Shell, or run PowerShell from your computer.<\/li><li><strong>Azure Command-line interface (CLI) users:<\/strong> This means to either run the commands in the Azure Cloud Shell, or run the CLI from your computer.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Working with network security groups<\/strong><\/h4>\n\n\n\n<p>You can create, view all, view details of, change, and delete a network security group. Moreover, you can also associate or dissociate a network security group from a network interface or subnet.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Creating a network security group<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, on the Azure portal menu or from the Home page, select Create a resource.<\/li><li>Secondly, select Networking, then select Network security group.<\/li><li>Then, in the Create network security group page, under the Basics tab, set values for the following settings:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"891\" height=\"234\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-17.png\" alt=\"Network Security Groups (NSGs) \" class=\"wp-image-16706\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-17.png 891w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-17-750x197.png 750w\" sizes=\"auto, (max-width: 891px) 100vw, 891px\" \/><figcaption><strong>Image Source: Microsoft<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>After that, select Review + create.<\/li><li>Lastly, after validating the passed message, select Create.<\/li><\/ul>\n\n\n\n<p><strong>Commands<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"765\" height=\"155\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-18.png\" alt=\"creating NSG\" class=\"wp-image-16707\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-18.png 765w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-18-750x152.png 750w\" sizes=\"auto, (max-width: 765px) 100vw, 765px\" \/><figcaption><strong>Image Source: Microsoft<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Changing a network security group<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, go to the Azure portal to view your network security groups. Search for and select Network security groups.<\/li><li>Then, select the name of the network security group you want to change.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-security-technologies-az-500-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ_500-practice-tests-8.png\" alt=\"AZ-500 practice tests\"\/><\/a><\/figure><\/div>\n\n\n\n<p>However, in this the most common changes are to add a security rule, remove a rule, and associate or dissociate a network security group to or from a subnet or network interface.<\/p>\n\n\n\n<p><strong>Commands<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"754\" height=\"147\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-19.png\" alt=\"changing  Network Security Groups (NSGs) \" class=\"wp-image-16708\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-19.png 754w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-19-750x146.png 750w\" sizes=\"auto, (max-width: 754px) 100vw, 754px\" \/><figcaption><strong>Image Source: Microsoft<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Deleting a network security group<\/strong><\/h4>\n\n\n\n<p>If a network security group is associated with any subnets or network interfaces, then it can&#8217;t be deleted. So, before deleting first, dissociate a network security group from all subnets and network interfaces.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>For deleting, firstly, go to the Azure portal to view your network security groups. Search for and select Network security groups.<\/li><li>Then, select the name of the network security group you want to delete.<\/li><li>Lastly, in the network security group&#8217;s toolbar, select Delete. Then select Yes in the confirmation dialog box.<\/li><\/ul>\n\n\n\n<p><strong>Commands<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"834\" height=\"142\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-20.png\" alt=\"deleting Network Security Groups (NSGs) \" class=\"wp-image-16709\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-20.png 834w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-20-750x128.png 750w\" sizes=\"auto, (max-width: 834px) 100vw, 834px\" \/><figcaption><strong>Image Source: Microsoft<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-security-technologies-az-500-practice-exam\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ-500-online-course-7.png\" alt=\"Az-304 Online course\" class=\"wp-image-16690\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ-500-online-course-7.png 961w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/AZ-500-online-course-7-750x117.png 750w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/a><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference: <\/strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-network\/manage-network-security-group\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Documentation<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-500-microsoft-azure-security-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\"><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-500-microsoft-azure-security-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to AZ-500 Tutorials<\/a><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go back to AZ-500 Tutorials In this tutorial, we will learn about network security groups, see Network security group overview. But, before we begin, if you don&#8217;t have one, set up an Azure account with an active subscription. Create an account for free. Complete one of these tasks before starting the remainder of this tutorial:&#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-16684","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>Configure Network Security Groups (NSGs) | Microsoft AZ-500 Tutorials<\/title>\n<meta name=\"description\" content=\"Increase your skills by learning to Configure Network Security Groups (NSGs) using Microsoft Azure AZ-500 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\/configure-network-security-groups-nsgs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configure Network Security Groups (NSGs) | Microsoft AZ-500 Tutorials\" \/>\n<meta property=\"og:description\" content=\"Increase your skills by learning to Configure Network Security Groups (NSGs) using Microsoft Azure AZ-500 online course Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-26T11:00:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-17.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/\",\"name\":\"Configure Network Security Groups (NSGs) | Microsoft AZ-500 Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-08-17T12:38:44+00:00\",\"dateModified\":\"2020-08-26T11:00:31+00:00\",\"description\":\"Increase your skills by learning to Configure Network Security Groups (NSGs) using Microsoft Azure AZ-500 online course Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configure Network Security Groups (NSGs)\"}]},{\"@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":"Configure Network Security Groups (NSGs) | Microsoft AZ-500 Tutorials","description":"Increase your skills by learning to Configure Network Security Groups (NSGs) using Microsoft Azure AZ-500 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\/configure-network-security-groups-nsgs\/","og_locale":"en_US","og_type":"article","og_title":"Configure Network Security Groups (NSGs) | Microsoft AZ-500 Tutorials","og_description":"Increase your skills by learning to Configure Network Security Groups (NSGs) using Microsoft Azure AZ-500 online course Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-08-26T11:00:31+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/08\/az500-docs-17.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/","name":"Configure Network Security Groups (NSGs) | Microsoft AZ-500 Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-08-17T12:38:44+00:00","dateModified":"2020-08-26T11:00:31+00:00","description":"Increase your skills by learning to Configure Network Security Groups (NSGs) using Microsoft Azure AZ-500 online course Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/configure-network-security-groups-nsgs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Configure Network Security Groups (NSGs)"}]},{"@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\/16684","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=16684"}],"version-history":[{"count":3,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/16684\/revisions"}],"predecessor-version":[{"id":17913,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/16684\/revisions\/17913"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=16684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=16684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=16684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}