{"id":27657,"date":"2020-12-22T05:24:27","date_gmt":"2020-12-22T05:24:27","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=27657"},"modified":"2020-12-22T05:24:28","modified_gmt":"2020-12-22T05:24:28","slug":"create-an-azure-network-watcher-instance","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/","title":{"rendered":"Create an Azure Network Watcher instance"},"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 we will learn about creating an Azure Network Watcher instance. However, Network Watcher is a regional service that enables you to monitor and diagnose conditions at a network scenario level in, to, and from Azure. Scenario level monitoring enables you to diagnose problems at an end to end network level view. Network diagnostic and visualization tools available with Network Watcher help you understand, diagnose, and gain insights to your network in Azure. However, Network Watcher is enabled through the creation of a Network Watcher resource. This resource allows you to utilize Network Watcher capabilities.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Network Watcher is automatically enabled<\/strong><\/h4>\n\n\n\n<p>Firstly, when you create or update a virtual network in your subscription, Network Watcher will be enabled automatically in your Virtual Network&#8217;s region. However, there is no impact to your resources or associated charge for automatically enabling Network Watcher.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Opt-out of Network Watcher automatic enablement<\/strong><\/h4>\n\n\n\n<p>If you would like to opt out of Network Watcher automatic enablement, you can do so by running the following commands:<\/p>\n\n\n\n<p><strong>Azure PowerShell<\/strong><br><em>Register-AzProviderFeature -FeatureName DisableNetworkWatcherAutocreation -ProviderNamespace Microsoft.Network<br>Register-AzResourceProvider -ProviderNamespace Microsoft.Network<\/em><\/p>\n\n\n\n<p><strong>Azure CLI<\/strong><br><em>az feature register &#8211;name DisableNetworkWatcherAutocreation &#8211;namespace Microsoft.Network<br>az provider register -n Microsoft.Network<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Create a Network Watcher in the portal<\/strong><\/h4>\n\n\n\n<p>Navigate to All Services > Networking > Network Watcher. You can select all the subscriptions you want to enable Network Watcher for. However, this action creates a Network Watcher in every region that is available.<\/p>\n\n\n\n<p>When you enable Network Watcher using the portal, the name of the Network Watcher instance is automatically set to NetworkWatcher_region_name where region_name corresponds to the Azure region where the instance is enabled. For example, a Network Watcher enabled in the West Central US region is named NetworkWatcher_westcentralus. However, the Network Watcher instance is automatically created in a resource group named NetworkWatcherRG. <\/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-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<h4 class=\"wp-block-heading\"><strong>Create a Network Watcher with PowerShell<\/strong><\/h4>\n\n\n\n<p>Firstly, to create an instance of Network Watcher, run the following example:<\/p>\n\n\n\n<p><strong>PowerShell<\/strong><br><em>New-AzNetworkWatcher -Name &#8220;NetworkWatcher_westcentralus&#8221; -ResourceGroupName &#8220;NetworkWatcherRG&#8221; -Location &#8220;West Central US&#8221;<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Create a Network Watcher with the Azure CLI<\/strong><\/h4>\n\n\n\n<p>Next, to create an instance of Network Watcher, run the following example:<\/p>\n\n\n\n<p><strong>Azure CLI<\/strong><br><em>az network watcher configure &#8211;resource-group NetworkWatcherRG &#8211;locations westcentralus &#8211;enabled<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Create a Network Watcher with the REST API<\/strong><\/h4>\n\n\n\n<p>The ARMclient calls the REST API using PowerShell. The ARMClient is found on chocolatey at ARMClient on Chocolatey<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Log in with ARMClient<\/strong><\/h5>\n\n\n\n<p><strong>powerShell<\/strong><br><em>armclient login<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Create the network watcher<\/strong><\/h4>\n\n\n\n<p><strong>PowerShell<\/strong><br><em>$subscriptionId = &#8221;<br>$networkWatcherName = &#8221;<br>$resourceGroupName = &#8221;<br>$apiversion = &#8220;2016-09-01&#8221;<br>$requestBody = @&#8221;<br>{<br>&#8216;location&#8217;: &#8216;West Central US&#8217;<br>}<br>&#8220;@<\/em> <\/p>\n\n\n\n<p><em>armclient put &#8220;https:\/\/management.azure.com\/subscriptions\/${subscriptionId}\/resourceGroups\/${resourceGroupName}\/providers\/Microsoft.Network\/networkWatchers\/${networkWatcherName}?api-version=${api-version}&#8221; $requestBody<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Delete a Network Watcher in the portal<\/strong><\/h4>\n\n\n\n<p>Navigate to All Services > Networking > Network Watcher.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, select the overview tab, if you&#8217;re not already there. <\/li><li>Then, use the dropdown to select the subscription you want to disable network watcher in.<\/li><li>After that, expand the list of regions for your chosen subscription by clicking on the arrow. <\/li><li>Next, for any given, use the 3 dots on the right to access the context menu. Then, click on &#8220;Disable network watcher&#8221; to start disabling. <\/li><li>After that, click Yes to continue and On the portal, you will have to do this individually for every region in every subscription.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Delete a Network Watcher with PowerShell<\/strong><\/h4>\n\n\n\n<p>To delete an instance of Network Watcher, run the following example:<\/p>\n\n\n\n<p><strong>PowerShell<\/strong><br><em>New-AzResourceGroup -Name NetworkWatcherRG -Location westcentralus<br>New-AzNetworkWatcher -Name NetworkWatcher_westcentralus -ResourceGroup NetworkWatcherRG -Location westcentralus<br>Remove-AzNetworkWatcher -Name NetworkWatcher_westcentralus -ResourceGroup NetworkWatcherRG<\/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=\"Create an Azure Network Watcher instance 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\/network-watcher\/network-watcher-create\" 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 we will learn about creating an Azure Network Watcher instance. However, Network Watcher is a regional service that enables you to monitor and diagnose conditions at a network scenario level in, to, and from Azure. Scenario level monitoring enables you to diagnose problems at an end to end network&#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-27657","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 Azure Network Watcher instance - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Increase your skills by learning about Create an Azure Network Watcher instance 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\/create-an-azure-network-watcher-instance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create an Azure Network Watcher instance - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Increase your skills by learning about Create an Azure Network Watcher instance using Microsoft Azure AZ-104 online course Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-22T05:24:28+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=\"3 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-azure-network-watcher-instance\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/\",\"name\":\"Create an Azure Network Watcher instance - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-12-22T05:24:27+00:00\",\"dateModified\":\"2020-12-22T05:24:28+00:00\",\"description\":\"Increase your skills by learning about Create an Azure Network Watcher instance using Microsoft Azure AZ-104 online course Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create an Azure Network Watcher instance\"}]},{\"@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 Azure Network Watcher instance - Testprep Training Tutorials","description":"Increase your skills by learning about Create an Azure Network Watcher instance 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\/create-an-azure-network-watcher-instance\/","og_locale":"en_US","og_type":"article","og_title":"Create an Azure Network Watcher instance - Testprep Training Tutorials","og_description":"Increase your skills by learning about Create an Azure Network Watcher instance using Microsoft Azure AZ-104 online course Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-12-22T05:24:28+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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/","name":"Create an Azure Network Watcher instance - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-12-22T05:24:27+00:00","dateModified":"2020-12-22T05:24:28+00:00","description":"Increase your skills by learning about Create an Azure Network Watcher instance using Microsoft Azure AZ-104 online course Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-an-azure-network-watcher-instance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Create an Azure Network Watcher instance"}]},{"@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\/27657","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=27657"}],"version-history":[{"count":7,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/27657\/revisions"}],"predecessor-version":[{"id":27804,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/27657\/revisions\/27804"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=27657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=27657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=27657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}