Ethan
Ethan

Reputation: 1

PowerShell Invoke-AzOperationalInsightsQuery Error

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

Answers (1)

user459872
user459872

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

Related Questions