When enabling Azure RMS for Exchange online using the below command,
Set-IRMConfiguration -internallicensingenabled $true
It ends with below error,
since there us no RMS Trusted Publishing domains, it is not allowing us to Set.
If you’re using RMS Online, Run the below command
Import-RMSTrustedPublishingDomain –RMSOnline –Name “RMS Online”
Now let’s again execute the command and definitely it will gets enabled if there is no other issues.
Set-IRMConfiguration -internallicensingenabled $true