Forum Discussion

DamianIntune's avatar
DamianIntune
Occasional Reader
Mar 03, 2026

How to create a dependency using Graph API in PowerShell

hi,

I used following documentations to create a dependency via Graph API in Powershell:

https://learn.microsoft.com/en-us/graph/api/intune-apps-mobileappdependency-list?view=graph-rest-beta

https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.beta.devices.corporatemanagement/new-mgbetadeviceappmanagementmobileapprelationship?view=graph-powershell-beta

Both ways give me the same error:

New-MgBetaDeviceAppMgtMobileAppRelationship : No OData route exists that match template ~/singleton/navigation with http verb POST for request /AppLifecycle_2602/StatelessAppMetadataFEService/deviceAppManagement/mobileAppRelationships.
Status: 400 (BadRequest)
ErrorCode: No method match route template

 

Seems like these Endpoints do not support POST/PATCH requests at all. Is there any other way to create a dependency using Graph API in PowerShell?