Is Get-MgBetaDeviceManagementDeviceCompliancePolicyScheduledActionForRule broken
Daniel King
0
Reputation points
I am trying to retrieve compliance policy actions for a Microsoft 365 DSC resource module.
I seem to have the same issue as reported here:
https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2177
Running cmdlet I get this error:
I think the cmdlet is using URI documented here https://learn.microsoft.com/en-gb/graph/api/intune-deviceconfig-devicecompliancescheduledactionforrule-list?view=graph-rest-1.0&tabs=http
but that doesn't appear to be correct?
Using graph explorer to check the URI
"error": {
"code": "No method match route template",
"message": "No OData route exists that match template ~/singleton/navigation/key/navigation with http verb GET for request /DeviceConfiguration_2412/StatelessDeviceConfigurationFEService/deviceManagement/deviceCompliancePolicies('16400cd3-0bb7-4ad0-a086-6d667e054755')/scheduledActionsForRule.",
"innerError": {
"date": "2025-01-09T16:13:13",
"request-id": "9fdbfdf0-a410-46df-b8fb-fc6e20032eb4",
"client-request-id": "5a89e92b-a6af-5e37-91e8-e0a3b20b0413"
}
}
}
Sign in to answer