Forum Discussion
kileri _
Oct 13, 2017Copper Contributor
Upgrading the workspace for improved query cause ps to stop working
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 :
- You can find preview of cmdlets for the new language here: https://dev.loganalytics.io/documentation/Tools/PowerShell-Cmdlets
- kileri _Copper Contributor
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.
- You can find preview of cmdlets for the new language here: https://dev.loganalytics.io/documentation/Tools/PowerShell-Cmdlets
- Ketan Ghelani
Microsoft
Thanks for pointing it out. We'll update the release notes as well.