microsoftgraph / microsoftgraph/msgraph-metadata
MgDeviceManagementDeviceCompliancePolicy Many "No OData route exists that match template" error
Nobody has claimed this yet.
- Dominant language
- XSLT
- Stars
- 166
- Forks
- 55
- Avg merge
- 16h 12m
- Merged PRs (30d)
- 14
Description
If I try
Get-MgDeviceManagementDeviceCompliancePolicy -DeviceCompliancePolicyId $deviceCompliancePolicyId
work well, but if I launch
Get-MgDeviceManagementDeviceCompliancePolicyScheduledActionForRule -DeviceCompliancePolicyId $deviceCompliancePolicyId
or
New-MgDeviceManagementDeviceCompliancePolicyScheduledActionForRule -DeviceCompliancePolicyId $deviceCompliancePolicyId -RuleName "Test"
or
Update-MgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration
I always get the same error
No OData route exists that match template

Update-MgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration error:

NB To retrieve the correct IDs above I use the graph API in this way:

The same problem there is if Run in Microsoft Graph the same function:

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the failing Get-, New-, and Update-MgDeviceManagementDeviceCompliancePolicyScheduledActionForRule commands and compare their routes with the successful Get-MgDeviceManagementDeviceCompliancePolicy call. Inspect the corresponding Microsoft Graph requests and repository metadata to identify the route mismatch; done means the affected operations no longer return “No OData route exists that match template.”
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100