Entra join fails with 0xCAA2000C when using a provisioning package
Fix the Conditional Access block that stops the bulk enrollment token's package account from joining devices to Entra ID
Applies to
This article applies when you join devices to Entra ID with a provisioning package, which is set in the runbook under Device State: e.g. Entra ID Join Type: Use Bulk Enrollment Token via Provisioning Package.
Symptoms
The Migration Agent logs an error like this when it applies the Entra join package:
Error adding EntraJoinPackage.ppkg Package: Provisioning failed: 0__Accounts_Azure.provxml Category:DeviceAADJoin LastResult:Error -895352820 (0xCAA2000C) Message:Provisioning failed NumberOfFailures:1 (0x1)
The device does not join Entra ID. The Migration Agent keeps retrying the join, and each attempt logs the same error until the cause is fixed.
Cause
0xCAA2000C means "the request requires user interaction." The provisioning package joins the device with the bulk enrollment token held on the target directory. That token signs in as a package_<GUID> account in the target tenant. This sign-in happens without anyone at the device, so it can't complete MFA or any other interactive prompt.
When a Conditional Access policy requires MFA for that account, the token request fails and the join is blocked. The policy can target all users, all cloud apps, or the "Register or join devices" user action.
Confirm the cause
- In PowerSyncPro, go to Directories, select the target Entra ID directory, and click Edit. Note the BPRT UPN under Bulk Enrollment Token. This is the UPN of the package account.
- In the target tenant's Entra admin center, go to Monitoring & health > Sign-in logs.
- Open the User sign-ins (non-interactive) tab and filter on the BPRT UPN.
- Open the failed sign-in. The Conditional Access tab shows which policy blocked it.
Resolution
-
Create a security group for provisioning package accounts, for example CA Exclusion - Provisioning Packages. If you use an assigned group, add the account shown in BPRT UPN to it. We recommend a dynamic group instead, so new package accounts are added automatically. Use this membership rule:
(user.userPrincipalName -startsWith "package_") -
Exclude the group from each blocking Conditional Access policy.
-
In the Entra admin center, go to Entra ID > Devices > Device settings. Under Microsoft Entra join and registration settings, make sure Require Multifactor Authentication to register or join devices with Microsoft Entra is set to No. Use Conditional Access to control device registration MFA instead.
-
No further action is needed on the device. The Migration Agent retries the join automatically, and the migration continues once the policy change takes effect.
Note: Conditional Access changes can take a few minutes to apply. One or two retries may still fail right after you save the exclusion. This is expected.
Note: The bulk enrollment token is regenerated every 90 days, and each regeneration creates a new package account. A dynamic group picks up the new account automatically. With an assigned group, check BPRT UPN on the directory after each regeneration and add the new account, or the join will start failing again.