VPP Apps on DEP iPadOS Devices Do Not Automatically Update Error code: 0x87D13B9F

%3CLINGO-SUB%20id%3D%22lingo-sub-2799836%22%20slang%3D%22en-US%22%3EVPP%20Apps%20on%20DEP%20iPadOS%20Devices%20Do%20Not%20Automatically%20Update%20Error%20code%3A%200x87D13B9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2799836%22%20slang%3D%22en-US%22%3E%3CP%3EWe're%20in%20the%20process%20of%20migrating%20to%20Intune%20and%20we're%20starting%20with%20DEP%20devices.%26nbsp%3B%20However%20we've%20noticed%20that%20as%20applications%20are%20updated%20in%20the%20App%20Store%2C%20the%20device%20itself%20is%20not%20updating%20the%20applications%20automatically%20but%20requires%20human%20intervention.%26nbsp%3B%20Today%20we%20checked%20one%20of%20the%20devices%20and%20saw%20that%20the%20update%20failed%20with%20error%26nbsp%3B0x87D13B9F%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EApplication%20attempted%20to%20install%0A9%2F30%2F2021%206%3A43%3A12%20AM%0AApp%20installation%20failed%0A9%2F30%2F2021%204%3A13%3A53%20AM%0AHide%20details%0AError%20code%3A%200x87D13B9F%0AAn%20app%20update%20is%20available.%20Available%20apps%20can%20be%20updated%20using%20Company%20Portal%20and%20required%20apps%20will%20auto-update%20on%20device%20sync.%0ASuggested%20remediation%0AThis%20code%20is%20returned%20when%20a%20VPP%20app%20is%20installed%20but%20there%20is%20a%20newer%20version%20available.%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20Apple%20VPP%20token%20is%20configured%20for%20automatic%20updates%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JuliusPerkins_1-1633011542941.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F313967i31F28F5113FA1CA1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JuliusPerkins_1-1633011542941.png%22%20alt%3D%22JuliusPerkins_1-1633011542941.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20Microsoft%20documentation%20confirms%20that%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E%3CSTRONG%3EAutomatic%20app%20updates%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-%20Choose%20from%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EYes%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eor%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ENo%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20enable%20automatic%20updates.%20When%20enabled%2C%20Intune%20detects%20the%20VPP%20app%20updates%20inside%20the%20app%20store%20and%20automatically%20pushes%20them%20to%20the%20device%20when%20the%20device%20checks%20in.%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%3CP%20class%3D%22%22%3ENote%3A%26nbsp%3BAutomatic%20app%20updates%20for%20Apple%20VPP%20apps%20will%20automatically%20update%20for%20both%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ERequired%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAvailable%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Einstall%20intents.%20For%20apps%20deployed%20with%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAvailable%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Einstall%20intent%2C%20the%20automatic%20update%20generates%20a%20status%20message%20for%20the%20IT%20admin%20informing%20that%20a%20new%20version%20of%20the%20app%20is%20available.%20This%20status%20message%20is%20viewable%20by%20selecting%20the%20app%2C%20selecting%20Device%20Install%20Status%2C%20and%20checking%20the%20Status%20Details.%3C%2FP%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20this%20to%20say%20that%20this%20configuration%20should%20be%20working%20as%20the%20application%20in%20question%20is%20required%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JuliusPerkins_5-1633017194649.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F313987i04BBA424572ABCD1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JuliusPerkins_5-1633017194649.png%22%20alt%3D%22JuliusPerkins_5-1633017194649.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20it's%20not%20happening%20automatically%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JuliusPerkins_4-1633017190433.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F313986iBE3549C041C16BA9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JuliusPerkins_4-1633017190433.png%22%20alt%3D%22JuliusPerkins_4-1633017190433.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20we%20miss%20something%20somewhere%3F%3C%2FP%3E%3CP%3EAny%20advice%20is%20greatly%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EReferences%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Ftroubleshoot%2Fmem%2Fintune%2Ftroubleshoot-app-install%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETroubleshoot%20app%20installation%20issues%20-%20Intune%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Ftroubleshoot%2Fmem%2Fintune%2Fapp-install-error-codes%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EApp%20installation%20error%20codes%20-%20Intune%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fintune%2Fapps%2Fvpp-apps-ios%23upload-an-apple-vpp-or-apple-business-manager-location-token%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EManage%20Apple%20volume-purchased%20apps%20-%20Microsoft%20Intune%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-intune%2F0x87d13b9f-app-install-error%2Fm-p%2F1181843%22%20target%3D%22_blank%22%3E0x87D13B9F%20App%20Install%20Error%20-%20Microsoft%20Tech%20Community%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2799836%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eapple%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDEP%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EiPad%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EiPadOS%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2802159%22%20slang%3D%22en-US%22%3ERe%3A%20VPP%20Apps%20on%20DEP%20iPadOS%20Devices%20Do%20Not%20Automatically%20Update%20Error%20code%3A%200x87D13B9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2802159%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20been%20reading%20the%20docs..%20and%20it%20looks%20like%20a%20lot%20of%20people%20are%20experiencing%20this%20issue...%20and%20most%20of%20them%20also%20made%20the%20app%20available%20so%20users%20could%20update%20them%20manually..%20but%20that's%20indeed%20not%20what%20you%20want.%20Just%20wondering...%20but%20what%20happens%20when%20you%20don't%20specify%20a%20filter%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2802528%22%20slang%3D%22en-US%22%3ERe%3A%20VPP%20Apps%20on%20DEP%20iPadOS%20Devices%20Do%20Not%20Automatically%20Update%20Error%20code%3A%200x87D13B9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2802528%22%20slang%3D%22en-US%22%3EHi%2C%20Please%20share%20the%20outcome%20as%20I%20am%20really%20curious%20if%20filtering%20could%20conflict%20with%20it%3C%2FLINGO-BODY%3E
Occasional Contributor

We're in the process of migrating to Intune and we're starting with DEP devices.  However we've noticed that as applications are updated in the App Store, the device itself is not updating the applications automatically but requires human intervention.  Today we checked one of the devices and saw that the update failed with error 0x87D13B9F:

 

 

Application attempted to install
9/30/2021 6:43:12 AM
App installation failed
9/30/2021 4:13:53 AM
Hide details
Error code: 0x87D13B9F
An app update is available. Available apps can be updated using Company Portal and required apps will auto-update on device sync.
Suggested remediation
This code is returned when a VPP app is installed but there is a newer version available.

 

 

Our Apple VPP token is configured for automatic updates:

JuliusPerkins_1-1633011542941.png

 

The Microsoft documentation confirms that:

 

  • Automatic app updates - Choose from Yes or No to enable automatic updates. When enabled, Intune detects the VPP app updates inside the app store and automatically pushes them to the device when the device checks in.

    Note: Automatic app updates for Apple VPP apps will automatically update for both Required and Available install intents. For apps deployed with Available install intent, the automatic update generates a status message for the IT admin informing that a new version of the app is available. This status message is viewable by selecting the app, selecting Device Install Status, and checking the Status Details.

 

All this to say that this configuration should be working as the application in question is required

JuliusPerkins_5-1633017194649.png

 

But it's not happening automatically

JuliusPerkins_4-1633017190433.png

 

Did we miss something somewhere?

Any advice is greatly appreciated.

 

References:

Troubleshoot app installation issues - Intune | Microsoft Docs

App installation error codes - Intune | Microsoft Docs

Manage Apple volume-purchased apps - Microsoft Intune | Microsoft Docs

0x87D13B9F App Install Error - Microsoft Tech Community

 

 

 

11 Replies
Hi,

I have been reading the docs.. and it looks like a lot of people are experiencing this issue... and most of them also made the app available so users could update them manually.. but that's indeed not what you want. Just wondering... but what happens when you don't specify a filter?
Thanks for taking the time to read and reply. The reason for the filter is to ensure we're targeting the right devices for the required deployment. Taking it off would mean that too many devices/the incorrect devices would receive the deployment which would not be good. But I hear you. We have other devices with required app deployments so I'll have to take a look to see if any of those apps have been updated recently and what the disposition is.
Hi, Please share the outcome as I am really curious if filtering could conflict with it
I definitely can't remove that filter for those devices as it would then incorrectly apply the software to devices that should not receive it. I'm thinking I'm going to have to open a case with Microsoft for this one as it's not really jumping out at any of us.
What if you create another required assignment and target an AzureAD group with just a few devices in it? If those get updated automatically, then it's probably the filter.
We're seeing a similar thing. Been working fine for months. Now all of a sudden, Apps, that would usually update automatically, are not.

These are pushed as required apps, with no filters on the assignments.

Only happening on a handful of apps, not all. All apps are deployed via VPP and Devices enrolled via DEP.

We only noticed this a couple of days ago.

Interested to see if you get any success.

@GaryHerbstman Check your Apple VPP Token in Endpoint manager.

 

Even though ours was showing as active, when we drilled in to it, the token state was showing as 'Inactive' 

 

Turns out our issue was that for some reason, we were using the same VPP token in 2 MDM Solutions, so had to create a secondary token so we had one for each MDM.


As soon as we did that, the apps started to update.

 

Might not be the same for you, but this solved our issue.

@Julius Perkins 

Hi,


I came across that same issue last week. Somebody already mentioned it here, but it really was the case that the token (under Home > Tenant admin > Connectors and tokens) would show as active, but when you would click on it (Home > Tenant admin > Connectors and tokens > "TokenName")  the state of the token would say invalid even though the expiration date was not due yet. The only thing that helped was logging in to ABM downloading the VPP token and uploading it again. After a few minutes it would show the state as valid again and the apps would update on the devices affected by this.

 

Hope this helps.

@MattisJanos Thanks for following up on this and I appeciate the super hot tip.  I did a quick check and everything seems to check out:

JuliusPerkins_0-1639082755334.png

 

Although this it is a pretty standard operation, I'm going to submit a request for change (RFC) to re-import the token & see how that goes.  

 

Question: We're transitioning from one MDM solution to Intune and I'm wondering if, since some apps were delivered using the other MDM solution, do need to set 'Take control of token from another MDM' to yes?

@Julius Perkins, your token looks fine, so that shouldn't be the issue here, you're right.

 

Regarding your question; This is what MS Documentation says;


"Take control of token from another MDM - Setting this option to yes allows the token to be reassigned to Intune from another MDM solution."

 

Not sure if I'd set this to yes, since you'll have to create a new MDM Server for Intune as a new solution in ABM anyways, so you'd also get a new token different from the one being used so far. I probably would leave it to no, since that what I also did when we had a migration project. It was from Intune to Intune, but the ABM tenant were two different ones and the users unenrolled their devices from the old Intune tenant before. Not sure if this information helps.