Forum Discussion
Is there a way to imediatly install an application to an enroled VM through Intune?
Not completely sure what type of app you are creating. But if you are using Intune to deploy the apps it is in principle most convenient to use the Graph API and create a scrip that uses the Graph Api.
1. This one you can accomplish by assigning the app to a group, you do this by app id indeed, see here: https://learn.microsoft.com/en-us/graph/api/intune-shared-mobileapp-assign?view=graph-rest-beta and use the GroupAssignmentTarget: https://learn.microsoft.com/en-us/graph/api/resources/intune-shared-groupassignmenttarget?view=graph-rest-1.0
2. This is difficult if you like to get some actual installation conformation but it is possible to query the device and verify if the apps is indeed installed after step 1 is completed by using the MobileAppInstallStatusResource: https://learn.microsoft.com/en-us/graph/api/resources/intune-apps-mobileappinstallstatus?view=graph-rest-beta#properties
- Mihes1735Mar 21, 2024Copper ContributorThe app is already exported to Intune as an intuwin file. I'm not asking about how to export an application. I'm asking how to trigger the installation of a certain app, known by it's Id and get a notification when the app was installed. For us would be more convenient to do it like in case of winget: winget install <the_package_id>. If we can achive the command by a power shell script is even better.
- SebastiaanSmitsMar 21, 2024Iron Contributor
Hi I showed you that (at least a method) by assigning the app to a group (dynamic or static) see the first link and read it carefully, you can do this with Powershell, there are no direct cmdlets but use the Rest Api method as described in the link, you can further script assignment to groups also very easy..
- SebastiaanSmitsMar 21, 2024Iron ContributorAnd point 2 is for getting the installation confirmation, is limited but is no direct easy method, did you read my comment at all ? 🙂