Upload LOB mobile app to Intune programmatically

Dmytro V 26 Reputation points
2021-01-20T11:48:29.367+00:00

We are integrating Intune with our service.
We need a way to deploy in house applications to Hololens 2 devices programmatically. I'm able to create Line-of-business app, upload application files and assign it to group from portal(https://endpoint.microsoft.com) .
In microsoft graph java sdk I've found only the way to create application metadata but no way to upload package and dependency.

After creating app metadata, portal makes post requests to
https://graph.microsoft.com/beta/deviceAppManagement/mobileApps/101ca946-b9ae-4a92-99ad-8c6f258bd4e8/microsoft.graph.windowsUniversalAppX/contentVersions

https://graph.microsoft.com/beta/deviceAppManagement/mobileApps/101ca946-b9ae-4a92-99ad-8c6f258bd4e8/microsoft.graph.windowsUniversalAppX/contentVersions/1/files

and then upload file to
https://mmcswda01.blob.core.windows.net/24cff54f-eda7-4fd2-b89f-0f03d9fe4d6a/98d0dfca-6b53-4375-ad35-9638e94ecc09/68cb2848-74f0-4da4-a90d-177d73979038.appx.bin?sv=2016-05-31&sr=b&si=1695758018&sig=Hk5%2FcMH0aG%2BoADClF0Ymehuw7zXcUXG9ae0EfogUz2M%3D&comp=block&blockid=YmxvY2stMDAwMDAwMDE=

Is there a way to do the same flow from graph api or microsoft graph java sdk? Is there any code samples of how to create LOB application programmatically?

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

1 answer

Sort by: Most helpful
  1. Jason Sandys 31,406 Reputation points Microsoft Employee Moderator
    2021-01-20T17:45:47.767+00:00
    1 person found this answer helpful.

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.