Per KB4821, each organization should use a single backup application per Microsoft term's of use and product documentation. This script automates the steps mentioned in the KB article by identifying organizations that are using multiple backup applications and, if desired, will limit each organization to a single backup application.
https://github.com/VeeamHub/powershell/tree/master/VB365-KB4821
Please note that additional backup applications are not deleted from Entra ID. They are simply removed from Veeam.
The output of the script let’s you see all organizations affected including backup application info and backup applications removed (if any):

