Issue Description
Seeing the following error when attempting to deploy VPP applications - "All licenses are in use or the license is not assigned yet" however there were a sufficient number of licenses.
Troubleshooting
Check the VPP server logs.
The log below indicates the VPP token is expired which is causing issues with VPP deployment:
2024-08-07T21:07:32,098 [ERROR] [duledPool-8] [VppParallelRequestComm ] - [JPROVPP-027] [Vpp-Parallel-Request] encountered error Optional[9621], Optional[The token has expired. You need to generate a new token online using your organization's account at either school.apple.com or business.apple.com.] 2024-08-07T21:07:32,098 [ERROR] [duledPool-8] [VppCommService ] - [JPROVPP-014] Failed to download VPP license data for account Iconiq Capital, LLC com.jamfsoftware.vpp.comm.VppServiceException: Failed to download data for admin account at com.jamfsoftware.vpp.comm.VppParallelRequestComm.doRequest(VppParallelRequestComm.java:170) ~[vpp-impl-11.6.0-t1717010119.jar:?] at com.jamfsoftware.vpp.comm.VppParallelRequestComm.getAllLicensesSinceLastSync(VppParallelRequestComm.java:71) ~[vpp-impl-11.6.0-t1717010119.jar:?] at com.jamfsoftware.vpp.comm.VppLicenseUpdater.updateAllLicensesSinceLastSync
Renew the Volume Purchasing token following Renewing or Replacing a Service Token from Apple Business Manager.