Skip to content

Commit 614949f

Browse files
committed
Update payload for log collection endpoint
1 parent 7fa8c1d commit 614949f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/Endpoint/MEM/Invoke-ExecDeviceAction.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ function Invoke-ExecDeviceAction {
3838
Write-Host "ActionBody: $ActionBody"
3939
break
4040
}
41+
'createDeviceLogCollectionRequest' {
42+
$ActionBody = @{
43+
templateType = @{
44+
'@odata.type' = '#microsoft.graph.deviceLogCollectionRequest'
45+
templateType = 'predefined'
46+
}
47+
} | ConvertTo-Json -Compress -Depth 5
48+
break
49+
}
4150
default { $ActionBody = $Request.Body | ConvertTo-Json -Compress }
4251
}
4352

0 commit comments

Comments
 (0)