Skip to content

Commit 2545758

Browse files
Merge pull request #270149 from halkazwini/vm-agent
Update json block
2 parents 9cd2bfe + 2a49fb3 commit 2545758

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

articles/virtual-machines/extensions/network-watcher-windows.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Network Watcher Agent VM extension - Windows
3-
description: Deploy the Network Watcher Agent virtual machine extension on Windows virtual machines.
4-
ms.topic: conceptual
3+
description: Learn about the Network Watcher Agent virtual machine extension on Windows virtual machines and how to deploy it.
4+
author: halkazwini
5+
ms.author: halkazwini
56
ms.service: virtual-machines
67
ms.subservice: extensions
7-
ms.author: halkazwini
8-
author: halkazwini
8+
ms.topic: concept-article
9+
ms.date: 03/25/2024
910
ms.collection: windows
10-
ms.date: 02/19/2024
1111
---
1212

1313
# Network Watcher Agent virtual machine extension for Windows
@@ -30,29 +30,31 @@ Some of the Network Watcher Agent functionality requires that the virtual machin
3030

3131
The following JSON shows the schema for the Network Watcher Agent extension. The extension doesn't require, or support, any user-supplied settings, and relies on its default configuration.
3232

33+
3334
```json
3435
{
35-
"type": "extensions",
36-
"name": "Microsoft.Azure.NetworkWatcher",
36+
"type": "Microsoft.Compute/virtualMachines/extensions",
3737
"apiVersion": "[variables('apiVersion')]",
38+
"name": "[concat(parameters('vmName'), '/AzureNetworkWatcherExtension')]",
3839
"location": "[resourceGroup().location]",
3940
"dependsOn": [
40-
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
41+
"[resourceId('Microsoft.Compute/virtualMachines', parameters('vmName'))]"
4142
],
4243
"properties": {
44+
"autoUpgradeMinorVersion": true,
4345
"publisher": "Microsoft.Azure.NetworkWatcher",
4446
"type": "NetworkWatcherAgentWindows",
45-
"typeHandlerVersion": "1.4",
46-
"autoUpgradeMinorVersion": true
47+
"typeHandlerVersion": "1.4"
4748
}
4849
}
50+
4951
```
5052

5153
### Property values
5254

5355
| Name | Value / Example |
5456
| ---- | ---- |
55-
| apiVersion | 2022-11-01 |
57+
| apiVersion | 2023-03-01 |
5658
| publisher | Microsoft.Azure.NetworkWatcher |
5759
| type | NetworkWatcherAgentWindows |
5860
| typeHandlerVersion | 1.4 |
@@ -68,9 +70,9 @@ Use the `Set-AzVMExtension` command to deploy the Network Watcher Agent virtual
6870

6971
```powershell
7072
Set-AzVMExtension `
71-
-ResourceGroupName "myResourceGroup1" `
73+
-ResourceGroupName "myResourceGroup" `
7274
-Location "WestUS" `
73-
-VMName "myVM1" `
75+
-VMName "myVM" `
7476
-Name "networkWatcherAgent" `
7577
-Publisher "Microsoft.Azure.NetworkWatcher" `
7678
-Type "NetworkWatcherAgentWindows" `
@@ -94,4 +96,4 @@ C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentW
9496
## Related content
9597

9698
- [Network Watcher documentation](../../network-watcher/index.yml).
97-
- [Microsoft Q&A - Network Watcher](/answers/topics/azure-network-watcher.html).
99+
- [Microsoft Q&A - Network Watcher](/answers/topics/azure-network-watcher.html).

0 commit comments

Comments
 (0)