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.