For Apple devices logged in with the Managed Apple ID, you can not install any app from the Apple Store:
If this is a desired effect (eg. for shared devices), here are the steps to turn the feature on:
Create a managed Apple ID from the Apple business manager
Log in to iCloud via the managed Apple ID on the device
Check if you can install apps from the Apple App Store
To enable App Installation on those devices, one has to use the Apple VPP program. You can find more details here.