Open
Description
openedon Jul 22, 2022
$query = 'AzureDiagnostics | where action_s == "Blocked" | count'
$w = 'valid--id'
Invoke-AzOperationalInsightsQuery -WorkspaceId $w -Query $query -ErrorAction Stop -Timespan (New-TimeSpan -Hours 2)| Select-Object -ExpandProperty Results --> produces
Count
123
'az monitor log-analytics query -w $w --analytics-query $query -t PT3H ' produces -> BadArgumentError: The request had some invalid properties
its a valid kusto query. the powershell cmdlet produces a result. az cli breaks.
Why?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment