This error may cause due to deactivation of rights management service. So below I have put forward step by step guide to how to activate or confirm the status of Azure rights management service.
Steps:
- Install the AIPService module, to configure and manage the protection service
- Install-Module -Name AIPService
- From a PowerShell session, run Connect-AipService, and when prompted, provide the Global Administrator account details for your Azure Information Protection tenant.
- Run Get-AipService to confirm whether the protection service is activated. A status of Enabled confirms activation; Disabled indicates that the service is deactivated.
- To activate the service, run,
- Enable-AipService
Reference: