Open arkady69 opened 2 years ago
$query = 'AzureDiagnostics | where action_s == "Blocked" | count'
$w = 'valid--id'
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?
monitor
$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?