We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65138bd commit 5d32509Copy full SHA for 5d32509
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecAppInsightsQuery.ps1
@@ -24,14 +24,16 @@ function Invoke-ExecAppInsightsQuery {
24
try {
25
$LogData = Get-ApplicationInsightsQuery -Query $Query
26
27
+ $Body = @{
28
+ Results = @($LogData)
29
+ Metadata = @{
30
+ Query = $Query
31
+ }
32
+ } | ConvertTo-Json -Depth 10 -Compress
33
+
34
return [HttpResponseContext]@{
35
StatusCode = [HttpStatusCode]::OK
- Body = @{
- Results = @($LogData)
- Metadata = @{
- Query = $Query
- }
36
+ Body = $Body
37
}
38
39
} catch {
0 commit comments