Is Get-MgBetaDeviceManagementDeviceCompliancePolicyScheduledActionForRule broken

Daniel King 0 Reputation points
2025-01-09T16:27:31.7466667+00:00

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:
User's image

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"
        }
    }
}
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,784 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.