AzViz icon indicating copy to clipboard operation
AzViz copied to clipboard

'Get-AzNetworkWatcher' is not recognized as the name of a cmdlet,

Open fjosouza opened this issue 1 year ago • 1 comments

Hi... I am running the command below and I getting the error below.

==> Export-AzViz -ResourceGroup NAME_OF_RESOURCE_GROUP -Theme light -OutputFormat png -Show

ConvertFrom-Network : The term 'Get-AzNetworkWatcher' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\azureuser\Documents\WindowsPowerShell\Modules\AzViz\1.2.1\src\private\ConvertTo-DOTLangauge.ps1:29 char:27

  • ... rkObjects = ConvertFrom-Network -TargetType $TargetType -Targets $Tar ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Get-AzNetworkWatcher:String) [ConvertFrom-Network], CommandNotFoundExce ption
    • FullyQualifiedErrorId : CommandNotFoundException,ConvertFrom-Network

fjosouza avatar May 15 '23 13:05 fjosouza

You will need to install the Az.Network Module.

Install-Module Az.Network

DavidHoenisch avatar Jun 08 '23 22:06 DavidHoenisch