To test Microsoft Purview Advanced Message Encryption (which relies on Azure Information Rights Management), you use the Test-IRMConfiguration cmdlet. It verifies configuration, template availability, and encryption/decryption status. Test-OAuthConnectivity # tests OAuth authentication. Test-ClientAccessRule # tests client access rules. Test-Mailflow # tests mail routing. Reference: Test-IRMConfiguration cmdlet