'Get-AzNetworkWatcher' is not recognized as the name of a cmdlet,
fjosouza opened this issue · 1 comments
fjosouza commented
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
- CategoryInfo : ObjectNotFound: (Get-AzNetworkWatcher:String) [ConvertFrom-Network], CommandNotFoundExce
DavidHoenisch commented
You will need to install the Az.Network Module.
Install-Module Az.Network