Microsoft Intune Enterprise App Management lets you deploy apps from the Enterprise App Catalog and manage supersedence (new version replaces old) via the web portal. For many apps or repeatable update workflows, you can automate the process with Microsoft Graph PowerShell: list apps with available updates, get the latest catalog package, create the new app in Intune, set supersedence, and optionally manage assignments. This post walks through prerequisites, getting the update report, deploying the latest version, and configuring supersedence with Graph.
What Enterprise App Management gives you
Enterprise App Management uses Microsoft’s curated catalog of apps that are pre-packaged and ready to deploy. The catalog is updated over time; when a newer version is available, you can deploy it and use supersedence so the new app replaces the old one while keeping assignments. The portal wizard is fine for one-off updates; PowerShell is useful for bulk updates, scheduled runs, or integration with other automation.
Prerequisites
Install the Microsoft.Graph PowerShell module (e.g. Install-Module Microsoft.Graph -Scope CurrentUser). Connect with the DeviceManagementApps.ReadWrite.All scope so you can read and change managed apps:
Connect-MgGraph -Scopes DeviceManagementApps.ReadWrite.All
Sign in with an account that can consent (e.g. Global Administrator). Your tenant must have an Enterprise App Management or Intune Suite license for these features to be available.
Get the update report
Use the Win32 catalog app update report to see which apps have updates available. The report is returned as JSON; you parse it and build a table of app name, publisher, current/latest version, update availability, application ID, and related fields.
Get-MgBetaDeviceManagementReportWin32CatalogAppUpdateReport -OutFile C:\temp\AppUpdateRaw.json
$json = Get-Content "C:\temp\AppUpdateRaw.json" | ConvertFrom-Json
$Report = [System.Collections.Generic.List[Object]]::new()
forEach ($value in $json.values) {
$obj = [PSCustomObject][ordered]@{
"ApplicationName" = $value[1]
"Publisher" = $value[2]
"UpdateAvailable" = $value[8]
"UpdateEligible" = $value[9]
"CurrentAppVersion" = $value[3]
"LatestAvailableVersion" = $value[4]
"ApplicationId" = $value[0]
"IsSuperseded" = $value[5]
"CurrentRevisionId" = $value[6]
"LatestRevisionId" = $value[7]
}
$Report.Add($obj)
}
$Report | Format-Table
The report lists apps with available updates and gives you the ApplicationId (current app) and version info you need for the next steps.
Enterprise App Catalog update report with applications that have updates available.
Get the latest catalog package ID
To deploy the new version, you need the catalog package ID for the latest version. Filter the report for the app you want (e.g. by ApplicationName), then get the app with the latestUpgradeCatalogPackage property expanded:
$App = $Report | Where-Object { $_.ApplicationName -eq '7-Zip (x64)' }
$latestPackage = Get-MgBetaDeviceAppManagementMobileApp -MobileAppId $App.ApplicationId -ExpandProperty "microsoft.graph.win32CatalogApp/referencedCatalogPackage,microsoft.graph.win32CatalogApp/latestUpgradeCatalogPackage"
$latestPackageId = $latestPackage.AdditionalProperties.latestUpgradeCatalogPackage.id
Store $latestPackageId; you use it to convert the catalog package into a deployable app.
Latest package details and package ID.
Deploy the new app version
Call the Graph API to convert the catalog package into a mobile app object, strip properties that shouldn’t be sent on create (e.g. @odata.context, id, createdDateTime), then create the app:
$ConUri = "https://graph.microsoft.com/beta/deviceAppManagement/mobileApps/convertFromMobileAppCatalogPackage(mobileAppCatalogPackageId='$latestPackageId')"
$MobApp = (Invoke-MgGraphRequest -Uri $ConUri -Method GET -OutputType PSObject) | Select-Object * -ExcludeProperty "@odata.context", id, largeIcon, createdDateTime, lastModifiedDateTime, owner, notes, size, minimumSupportedOperatingSystem, minimumFreeDiskSpaceInMB, minimumMemoryInMB, minimumNumberOfProcessors, minimumCpuSpeedInMHz
$AppPayload = $MobApp | ConvertTo-Json
$Response = New-MgBetaDeviceAppManagementMobileApp -BodyParameter $AppPayload
$Response contains the new app (including its id). The app is created in Intune but has no assignments or supersedence yet; you add those next.
Set supersedence
Supersedence links the new app to the old one so Intune treats the new version as the replacement. Use the updateRelationships endpoint on the new app, with the old app’s ID as the target and supersedenceType update:
$relationships = @{
relationships = @(
@{
"@odata.type" = "#microsoft.graph.mobileAppSupersedence"
targetId = "$($App.ApplicationId)"
supersedenceType = "update"
}
)
}
Invoke-MgGraphRequest -Method POST -Uri "/beta/deviceAppManagement/mobileApps/$($Response.id)/updateRelationships" -Body $relationships
After this, the new app supersedes the old one. You can confirm in the Intune portal under the new app’s Supersedence section.
Supersedence in Intune showing the relationship between old and new versions.
Assignments
Assignments (who gets the app as Required or Available) can be done in PowerShell, but many teams prefer the Intune portal for visibility and phased rollout: assign the new version as Available to a pilot group, then expand or switch to Required after validation. If you automate assignments via Graph, use the same group logic you would in the portal so Required/Available and group membership stay consistent.
Automation tips
Wrap calls in try/catch and log errors. Validate that the update report and app IDs exist before calling convert or create. You can loop over $Report to process multiple apps in one run. Test against a single app in a dev or test tenant before running at scale.
Summary
To automate Enterprise App Catalog updates with Microsoft Graph PowerShell: connect with DeviceManagementApps.ReadWrite.All, run Get-MgBetaDeviceManagementReportWin32CatalogAppUpdateReport and parse the JSON into a report table. For each app to update, get the app with latestUpgradeCatalogPackage expanded and read the catalog package ID. Call convertFromMobileAppCatalogPackage to get the mobile app payload, then New-MgBetaDeviceAppManagementMobileApp to create the new version. Post to updateRelationships on the new app with the old app’s ID and supersedenceType update. Configure assignments in the portal or via Graph. Add error handling and logging for production automation.