diff --git a/scripts/AzureMonitor.ps1 b/scripts/AzureMonitor.ps1 index 013e287..530a7fe 100644 --- a/scripts/AzureMonitor.ps1 +++ b/scripts/AzureMonitor.ps1 @@ -626,7 +626,8 @@ function Get-DiagnosticsSettingsForResource() Write-Debug -Debug:$true -Message "query = $query" # Main resource diagnostic settings - $settings = "$(az monitor diagnostic-settings list --subscription $SubscriptionId --resource $ResourceId --query "$query" 2>nul)" | ConvertFrom-Json + #$settings = "$(az monitor diagnostic-settings list --subscription $SubscriptionId --resource $ResourceId --query "$query" 2>nul)" | ConvertFrom-Json + $settings = "$(az monitor diagnostic-settings list --subscription $SubscriptionId --resource $ResourceId --query "$query")" | ConvertFrom-Json if ($settings) { $result.Add($settings) | Out-Null }