As mentioned earlier, Autopilot is not an imaging service. You cannot upgrade the base OS using Autopilot. For new devices, you can install Windows 11 manually, reset it and then provision it using Autopilot. A more effective way would be to work the OEM configuration out with your supplier to have Windows 11 loaded instead of Windows 10 before it is shipped.