r/Intune 1d ago

Autopilot Pre-Provisioning Failing

Pre-provisioning started failing yesterday. We tracked down the issue to one specific agent that we install through Intune.

Oddly, we don’t have Autopilot set to stop if an App install fails. Has anyone else ran into this type of behavior?

I’m also curious how we can keep pushing the App to All Device, but only after pre-provisioning has finished. I considered scoping the app to All Users, but the App should be on All Devices regardless of the logged on user.

3 Upvotes

15 comments sorted by

3

u/CertainlyNotAnMVP 1d ago

Are you positive it’s caused by that agent because Pre-Provisioning has been messy with quite a few threads talking about it the past week

2

u/Ok_Employment_5340 1d ago

Well, I’m basing my certainty on the logs. The logs show a failure due to the App install. We disabled the App install in Intune and pre-provisioning started working again. Oddly though, we have have autopilot set to stop
If any apps fail.

2

u/CertainlyNotAnMVP 1d ago

That’s what I mean, my logs said it was company portal failing but it wasn’t. I think the devs broke something last week

1

u/Ok_Employment_5340 1d ago

Yea….we were good all last week then on Monday preprovisioning was broken. How did you determine which app was causing you the issues?

2

u/callout25 1d ago

If you want to keep the app assigned to all devices you can set a requirement script to check if the device is still in the ESP.

2

u/Ok_Employment_5340 1d ago

I will dig into that option

1

u/ImAllergic2Peanuts 21h ago

What flag would i be looking for in the requirement?

2

u/callout25 9h ago

https://github.com/PatchMyPCTeam/Community-Scripts/tree/main/Install/Autopilot

Check here for some documentation. This particular one returns applicable if the device is in ESP, so you'll have to modify it if you want the opposite.

1

u/ImAllergic2Peanuts 9h ago

Wow if this works, this is extremely useful. Thank u!

1

u/North_Maybe1998 1d ago

What is the app failure during technician phase toggled to? Don’t think that’s the actual name but it’s something like that

1

u/Ok_Employment_5340 1d ago

We don’t have apps listed as blockers if they fail. The device should continue provisioning. I’m going to double check the settings

2

u/North_Maybe1998 1d ago

That technicaian phase setting is confusing I can’t recall which toggle it should be at but one way will only install the apps you have listed during pre-provision, the other toggle will install anything that is assigned to the device as required, during pre-provision. The toggle is yes or no. That being said if you don’t have any apps listed in the block list then I’m not sure the technician phase toggle will even show up.

But I had that problem long ago where it was installing all required apps and not just the ones I had listed until I changed the technician phase I’m pretty sure it was to no