SOLVED

Upgrading the workspace for improved query cause ps to stop working

Copper Contributor

Hello all,

 

Previous to workspace upgrade, I was able to issue a query with Get-AzureRmOperationalInsightsSearchResults and get proper results back. After upgrade this is what I am getting back. Any advise on how to troubleshoot the issue?

 

$OmsQuery='AzureDiagnostics | where Category !contains "Output" '

Get-AzureRmOperationalInsightsSearchResults -ResourceGroupName $resourceGroupName -WorkspaceName $workspaceName -Query $OmsQuery


Id :
Metadata : Microsoft.Azure.Commands.OperationalInsights.Models.PSSearchMetadata
Error : Microsoft.Azure.Commands.OperationalInsights.Models.PSSearchError
Value :

3 Replies

Never mind. The release notes state that cmdlet is not yet upgraded.

 

PowerShell cmdlets Question: Does the Log Search PowerShell cmdlet get updated after I upgrade?

The Get-AzureRmOperationalInsightsSearchResults has not yet been upgraded to the new search language. Continue to use the legacy query language with this cmdlet, even after you upgrade your workspace. Updated documentation will become available for the cmdlet when it's updated.

best response confirmed by Stanislav Zhelyazkov (MVP)
Solution
You can find preview of cmdlets for the new language here: https://dev.loganalytics.io/documentation/Tools/PowerShell-Cmdlets

Thanks for pointing it out.  We'll update the release notes as well.

 

1 best response

Accepted Solutions
best response confirmed by Stanislav Zhelyazkov (MVP)