Reputation: 1
When trying to use Invoke-AzOperationalInsightsQuery I get the following error
Invoke-AzOperationalInsightsQuery: The term 'Invoke-AzOperationalInsightsQuery' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I am not too sure on how to fix this issue, any help is welcome, thanks.
Upvotes: 0
Views: 1121
Reputation: 24602
Invoke-AzOperationalInsightsQuery
Cmdlet is part of Az
PowerShell module and not part of default PowerShell environment. You can install it via Install-Module
Cmdlet. Or using MSI package installer.
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
Upvotes: 1