You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/network-watcher/network-watcher-create.md
+21-20Lines changed: 21 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,14 @@
1
1
---
2
2
title: Enable or disable Azure Network Watcher
3
-
description: Learn how to enable or disable Azure Network Watcher in your region by creating a Network Watcher instance using the Azure portal, PowerShell, the Azure CLI or REST API.
4
-
services: network-watcher
3
+
description: Learn how to enable or disable Azure Network Watcher in your region by creating a Network Watcher instance using the Azure portal, PowerShell, the Azure CLI, REST API, or ARM template.
#CustomerIntent: As an Azure administrator, I want to manage Network Watcher instance in Azure regions based on my team's needs to Network Watcher capabilities in those regions.
11
12
---
12
13
13
14
# Enable or disable Azure Network Watcher
@@ -19,6 +20,7 @@ Network Watcher is enabled in an Azure region through the creation of a Network
19
20
> [!NOTE]
20
21
> - By default, Network Watcher is automatically enabled. When you create or update a virtual network in your subscription, Network Watcher will be automatically enabled in your Virtual Network's region.
21
22
> - Automatically enabling Network Watcher doesn't affect your resources or associated charge.
23
+
> - If you previously chose to [opt out of Network Watcher automatic enablement](#opt-out-of-network-watcher-automatic-enablement), you must manually [enable Network Watcher](#enable-network-watcher-for-your-region) in each region where you want to use Network Watcher capabilities.
22
24
> - Network Watcher can be enabled for these [Azure regions](https://azure.microsoft.com/explore/global-infrastructure/products-by-region/?products=network-watcher®ions=all).
23
25
24
26
## Prerequisites
@@ -37,7 +39,7 @@ Network Watcher is enabled in an Azure region through the creation of a Network
37
39
38
40
The steps in this article run the Azure PowerShell cmdlets interactively in [Azure Cloud Shell](/azure/cloud-shell/overview). To run the commands in the Cloud Shell, select **Open Cloud Shell** at the upper-right corner of a code block. Select **Copy** to copy the code and then paste it into Cloud Shell to run it. You can also run the Cloud Shell from within the Azure portal.
39
41
40
-
You can also install Azure PowerShell locally to run the cmdlets. This article requires the Az PowerShell module. For more information, see [How to install Azure PowerShell](/powershell/azure/install-azure-powershell). To find the installed version, run `Get-InstalledModule -Name Az`. If you run PowerShell locally, sign in to Azure using the [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) cmdlet.
42
+
You can also [install PowerShell locally](/powershell/scripting/install/installing-powershell) to run the cmdlets. This article requires the Az PowerShell module. For more information, see [How to install Azure PowerShell](/powershell/azure/install-azure-powershell). To find the installed version, run [Get-Module -ListAvailable Az](/powershell/module/microsoft.powershell.core/get-module) cmdlet. If you run PowerShell locally, sign in to Azure using the [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) cmdlet.
41
43
42
44
# [**Azure CLI**](#tab/cli)
43
45
@@ -47,25 +49,24 @@ Network Watcher is enabled in an Azure region through the creation of a Network
47
49
48
50
The steps in this article run the Azure CLI commands interactively in [Azure Cloud Shell](/azure/cloud-shell/overview). To run the commands in the Cloud Shell, select **Open Cloud Shell** at the upper-right corner of a code block. Select **Copy** to copy the code, and paste it into Cloud Shell to run it. You can also run the Cloud Shell from within the Azure portal.
49
51
50
-
You can also [install Azure CLI locally](/cli/azure/install-azure-cli) to run the commands. If you run Azure CLI locally, sign in to Azure using the [az login](/cli/azure/reference-index#az-login) command.
52
+
You can also [install Azure CLI locally](/cli/azure/install-azure-cli) to run the commands. To find the installed version, run [az version](/cli/azure/reference-index#az-version) command. If you run Azure CLI locally, sign in to Azure using the [az login](/cli/azure/reference-index#az-login) command.
51
53
52
54
---
53
55
54
56
## Enable Network Watcher for your region
55
57
56
-
If you choose to [opt out of Network Watcher automatic enablement](#opt-out-of-network-watcher-automatic-enablement), you must manually enable Network Watcher in each region where you want to use Network Watcher capabilities. To enable Network Watcher in a region, create a Network Watcher instance in that region using the [Azure portal](?tabs=portal#enable-network-watcher-for-your-region), [PowerShell](?tabs=powershell#enable-network-watcher-for-your-region), the [Azure CLI](?tabs=cli#enable-network-watcher-for-your-region), [REST API](/rest/api/network-watcher/network-watchers/create-or-update), or an Azure Resource Manager (ARM) template.
57
-
58
+
If you choose to [opt out of Network Watcher automatic enablement](#opt-out-of-network-watcher-automatic-enablement), you must manually enable Network Watcher in each region where you want to use Network Watcher capabilities. To enable Network Watcher in a region, create a Network Watcher instance in that region using the [Azure portal](?tabs=portal#enable-network-watcher-for-your-region), [PowerShell](?tabs=powershell#enable-network-watcher-for-your-region), the [Azure CLI](?tabs=cli#enable-network-watcher-for-your-region), [REST API](/rest/api/network-watcher/network-watchers/create-or-update), or an [Azure Resource Manager template (ARM template)](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.network/networkwatcher-create).
58
59
59
60
60
61
# [**Portal**](#tab/portal)
61
62
62
-
1. In the search box at the top of the portal, enter *network watcher*. Select **Network Watcher**in the search results.
63
+
1. In the search box at the top of the portal, enter *network watcher*. Select **Network Watcher**from the search results.
63
64
64
65
:::image type="content" source="./media/network-watcher-create/portal-search.png" alt-text="Screenshot shows how to search for Network Watcher in the Azure portal." lightbox="./media/network-watcher-create/portal-search.png":::
65
66
66
-
1.In the **Overview** page, select **+ Add**.
67
+
1.On the **Overview** page, select **+ Create**.
67
68
68
-
1.In**Add network watcher**, select your Azure subscription, then select the region that you want to enable Azure Network Watcher for.
69
+
1.On**Add network watcher**, select your Azure subscription, then select the region that you want to enable Azure Network Watcher for.
69
70
70
71
1. Select **Add**.
71
72
@@ -123,9 +124,9 @@ You can disable Network Watcher for a region by deleting the Network Watcher ins
123
124
124
125
# [**Portal**](#tab/portal)
125
126
126
-
1. In the search box at the top of the portal, enter *network watcher*. Select **Network Watcher**in the search results.
127
+
1. In the search box at the top of the portal, enter *network watcher*. Select **Network Watcher**from the search results.
127
128
128
-
1.In the **Overview** page, select the Network Watcher instances that you want to delete, then select **Disable**.
129
+
1.On the **Overview** page, select the Network Watcher instances that you want to delete, then select **Disable**.
129
130
130
131
:::image type="content" source="./media/network-watcher-create/delete-network-watcher.png" alt-text="Screenshot shows how to delete a Network Watcher instance in the Azure portal." lightbox="./media/network-watcher-create/delete-network-watcher.png":::
131
132
@@ -195,13 +196,13 @@ az provider register --name 'Microsoft.Network'
195
196
196
197
## List Network Watcher instances
197
198
198
-
You can view all regions where Network Watcher is enabled in your subscription by listing available Network Watcher instances in your subscription. Use the [Azure portal](?tabs=portal#list-network-watcher-instances), [PowerShell](?tabs=powershell#list-network-watcher-instances), the [Azure CLI](?tabs=cli#list-network-watcher-instances) or [REST API](/rest/api/network-watcher/network-watchers/list-all) to list Network Watcher instances in your subscription.
199
+
You can view all regions where Network Watcher is enabled in your subscription by listing available Network Watcher instances in your subscription. Use the [Azure portal](?tabs=portal#list-network-watcher-instances), [PowerShell](?tabs=powershell#list-network-watcher-instances), the [Azure CLI](?tabs=cli#list-network-watcher-instances), or [REST API](/rest/api/network-watcher/network-watchers/list-all) to list Network Watcher instances in your subscription.
199
200
200
201
# [**Portal**](#tab/portal)
201
202
202
-
1. In the search box at the top of the portal, enter *network watcher*. Select **Network Watcher**in the search results.
203
+
1. In the search box at the top of the portal, enter *network watcher*. Select **Network Watcher**from the search results.
203
204
204
-
1.In the **Overview** page, you can see all Network Watcher instances in your subscription.
205
+
1.On the **Overview** page, you can see all Network Watcher instances in your subscription.
205
206
206
207
:::image type="content" source="./media/network-watcher-create/list-network-watcher.png" alt-text="Screenshot shows how to list all Network Watcher instances in your subscription in the Azure portal." lightbox="./media/network-watcher-create/list-network-watcher.png":::
207
208
@@ -225,10 +226,10 @@ az network watcher list --out table
225
226
226
227
---
227
228
228
-
## Next steps
229
+
## Related content
229
230
230
-
To learn more about Network Watcher features, see:
0 commit comments