Locate the version number in the Version field.Select the AzureNetworkWatcher extension to see the details pane.Go to the Extensions pane of your VM in the Azure portal.You can check your extension version by using the Azure portal, the Azure CLI, or PowerShell. To update your extension, you need to know your extension version. Write-Host "All AzureNetworkWatcherExtensions up to date" $type = if ($isitWindows) ) out of date AzureNetworkWatcherExtension on VMs" Remove-AzVMExtension -ResourceGroupName $vm.ResourceGroupName -VMName $vm.Name -Name "AzureNetworkWatcherExtension" -Force Write-Host "Found VM that needs to be updated: subscriptions/$($SubID)/resourceGroups/$($vm.ResourceGroupName)/providers/Microsoft.Compute/virtualMachines/$($vm.Name) -> Updating " -NoNewline If (NeedsUpdate($extension.TypeHandlerVersion)) If ($extension.Name -eq "AzureNetworkWatcherExtension") $isitWindows = $vm.OsName -like "*Windows*" $vm = Get-AzVM -ResourceGroupName $vmName.ResourceGroupName -Name $vmName.name -Status Write-Host "Starting VM search, this may take a while" Write-Host "Scanning all VMs in the subscription: $($SubID)" The following PowerShell script updates Network Watcher extension of all Windows VMs in a subscription: If you have large deployments, use a PowerShell script to update multiple VMs at once. Update your extension using a PowerShell script # Identify latest version of Network Watcher extension for Windows.Īz vm extension image list -name 'NetworkWatcherAgentWindows' -publisher '' -latest -location 'eastus' # Identify latest version of Network Watcher extension for Linux.Īz vm extension image list -name 'NetworkWatcherAgentLinux' -publisher '' -latest -location 'eastus'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |