Skip to content

Commit 34376ae

Browse files
Merge pull request #219754 from v-ksreedevan/29Nov-Fixformat
Fix format of Powershell
2 parents 6601000 + dbca7bd commit 34376ae

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,22 @@ The latest version of the Network Watcher extension is currently `1.4.2423.1`.
2929

3030
# [Linux](#tab/linux)
3131

32-
``` az vm extension image list-versions --publisher Microsoft.Azure.NetworkWatcher --location westeurope --name NetworkWatcherAgentLinux -o table ```
32+
```powershell
33+
az vm extension image list-versions --publisher Microsoft.Azure.NetworkWatcher --location westeurope --name NetworkWatcherAgentLinux -o table
34+
35+
```
3336

3437
# [Windows](#tab/windows)
3538

36-
``` az vm extension image list-versions --publisher Microsoft.Azure.NetworkWatcher --location westeurope --name NetworkWatcherAgentWindows -o table ```
39+
```powershell
40+
az vm extension image list-versions --publisher Microsoft.Azure.NetworkWatcher --location westeurope --name NetworkWatcherAgentWindows -o table
41+
42+
```
3743

3844
---
3945

4046
## Update your extension using a PowerShell script
41-
Customers with large deployments who need to update multiple VMs at once. For updating select VMs manually, please see the next section
47+
Customers with large deployments who need to update multiple VMs at once. For updating select VMs manually, see the next section.
4248

4349
```powershell
4450
<#
@@ -155,7 +161,8 @@ Run the following command from an Azure CLI prompt:
155161
az vm get-instance-view --resource-group "SampleRG" --name "Sample-VM"
156162
```
157163
Locate **"AzureNetworkWatcherExtension"** in the output and identify the version number from the *“TypeHandlerVersion”* field in the output. 
158-
Please note: Information about the extension appears multiple times in the JSON output. Please look under the "extensions" block and you should see the full version number of the extension.
164+
165+
Information about the extension appears multiple times in the JSON output. The full version number of the extension is available under the Extensions block.
159166

160167
You should see something like the below:
161168
![Azure CLI Screenshot](./media/network-watcher/azure-cli-screenshot.png)

0 commit comments

Comments
 (0)