Share via

how to set Intune App Dependencies via Intune Graph API (via PowerShell)

Damian Tuszynski 0 Reputation points
2026-03-02T11:54:47.79+00:00

Hello!

I want to set app dependency (based on an existing dependency in a differnt tenant) in intune using the example of this following guideline:

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

I do have the correct permissions.

I am using these commands:

$body = @{

"@odata.type"                    = "#microsoft.graph.mobileAppDependency"

targetId                         = $notepad.value.targetid

targetDisplayName                = $notepad.value.targetdisplayname

targetDisplayVersion             = $notepad.value.targetdisplayversion

targetPublisher                  = $notepad.value.targetpublisher

targetPublisherDisplayName       = $notepad.value.targetpublisherdisplayname

sourceId                         = $notepad.value.sourceid

sourceDisplayName                = $notepad.value.sourcedisplayname

sourceDisplayVersion             = $notepad.value.sourcedisplayversion

sourcePublisherDisplayName       = $notepad.value.publisherdisplayname

targetType                       = "parent"

dependencyType                   = "autoInstall"

dependentAppCount                = 1

dependsOnAppCount                = 1
```} | ConvertTo-Json -Depth 10

  
Invoke-MgGraphRequest `

```dockerfile
-Method POST `

-Uri "https://graph.microsoft.com/beta/deviceAppManagement/mobileAppRelationships" `

-Body $body `

-ContentType "application/json"
```>>>>>And I am getting following error code:

"No method match route template","message":"No OData route exists that match template ~/singleton/navigation with http verb POST for request 

/AppLifecycle_2602/StatelessAppMetadataFEService/deviceAppManagement/mobileAppRelationships."

Seems like the URI is not accepting POST. Please help.

Microsoft Security | Intune | Application management
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prathista Ilango 830 Reputation points Microsoft Employee
    2026-03-11T19:16:00.3866667+00:00

    Hello Damian,

    Thanks for reaching out to us and sorry that you are facing this. I am able to reproduce the same and we are checking this internally. I will get back to you when I have more information on this.

    Thank you for your patience!

    0 comments No comments

Your answer

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