Share via

Problem activating the protection service from Azure - failing to connect to AIP Service

Anonymous
2024-01-20T22:09:05.6066667+00:00
Hi Support Team,

I have just registered for a 30 day trial license for MS 365 Business Premium which has the Azur Information Protection - Plan 1 (Integration with Microsoft Purview Message Encryption)

When trying to create the first transport rule, the list of RMS templates is empty.

I believe the solution could be in activating the protection service from Azure Information Protection (AIP).

https://learn.microsoft.com/en-us/azure/information-protection/activate-service#supported-activation-methods

To try to resolve this, I have run the following scriptlets based on the information I gathered on your site:

1) PS C:\Windows\system32> Get-IRMConfiguration

InternalLicensingEnabled                   : False
ExternalLicensingEnabled                   : True
AzureRMSLicensingEnabled                   : True
TransportDecryptionSetting                 : Optional
JournalReportDecryptionEnabled             : True
SimplifiedClientAccessEnabled              : False
ClientAccessServerEnabled                  : True
SearchEnabled                              : True
EDiscoverySuperUserEnabled                 : True
DecryptAttachmentFromPortal                : False
DecryptAttachmentForEncryptOnly            : False
SystemCleanupPeriod                        : 0
SimplifiedClientAccessEncryptOnlyDisabled  : False
SimplifiedClientAccessDoNotForwardDisabled : False
EnablePdfEncryption                        : False
AutomaticServiceUpdateEnabled              : True
RMSOnlineKeySharingLocation                :
RMSOnlineVersion                           :
ServiceLocation                            :
PublishingLocation                         :
LicensingLocation                          : {}
RejectIfRecipientHasNoRights               : False
EnablePortalTrackingLogs                   : False

2) PS C:\Windows\system32> (Get-Module AIPService -ListAvailable).Version

Major  Minor  Build  Revision
-----  -----  -----  --------
3      0      0      1

When I try to connect to AIP, I get the following error:

PS C:\Windows\system32> Connect-AipService
Connect-AipService : The attempt to connect to the Azure Information Protection service failed. Verify that the
credentials you are using are correct and try again. If you have continued problems, see
http://go.microsoft.com/fwlink/?LinkId=251909.
The correlation ID is 2ac96ee9-db5e-4f75-a8a0-7b06803b37d3. Please note and provide this value if asked by support for
it.
At line:1 char:1
+ Connect-AipService
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Connect-AipService], ApplicationFailedException
    + FullyQualifiedErrorId : NotSpecified,Microsoft.RightsManagementServices.Online.Admin.PowerShell.ConnectAipServic
   eCommand

Can you please tell me how to resolve this activation issue?

Marc
Azure Information Protection
Azure Information Protection

An Azure service that is used to control and help secure email, documents, and sensitive data that are shared outside the company.


Answer accepted by question author

  1. Givary-MSFT 35,786 Reputation points Microsoft Employee Moderator
    2024-02-01T12:49:04.3466667+00:00

    @Marc Forget Apologies for the long delay to fix this issue.

    Offline update: As per the last communication which I received from my team, RMS team found the cause and deployed the fix for this issue (connect-aipservice failing due to rms), as soon I received the update and communicated over the email to test the connection.

    As per the last communication which I got from you, you were able to connect to AIP Service and able to receive the encrypted emails to my id as well.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. AlexKor 5 Reputation points
    2025-09-13T08:15:30.23+00:00

    Dear @Givary-MSFT our tenant also facing the same issue, and we are not able to resolve that.

    User have assigned Global ADM, Compliance, etc., also with disabled 2FA.

    for v2 we are receiving success loging in signs-in in Entra

    Looking for any assistance here, and did not succeed to sent email as mentioned above. Seems like white list there now.

    AIP module v3 does not throw auth window

    v2 module seems not working

    v3

    Connect-AipService -Verbose 
    Connect-AipService : The attempt to connect to the Azure Information Protection service failed. Verify that the credentials you are using are correct and try again. If you have continued problems, see http://go.microsoft.com/fwlink/?LinkId=251909. The correlation ID is c6b5835e-0d05-4dbb-a66e-45f36ca1af99. Please note and provide this value if asked by support for it. At line:1 char:1 + Connect-AipService -Verbose + ~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [Connect-AipService], ApplicationFailedException     + FullyQualifiedErrorId : NotSpecified,Microsoft.RightsManagementServices.Online.Admin.PowerShell.ConnectAipServic    eCommand  VERBOSE: Microsoft.RightsManagementServices.Online.Admin.PowerShell.AdminClientException: The Azure Information Protection service failed to authenticate the user. Verify that the credentials you are using are correct and then try again. If you have continued problems, see http://go.microsoft.com/fwlink/?LinkId=251909. ---> System.Net.WebException:
    
    
    

    v2

    C:\Windows\system32> Connect-AipService -Verbose
    
    Connect-AipService : The attempt to connect to the Azure Information Protection service failed. Verify that the credentials you are using are correct and try again. If
    you have continued problems, see http://go.microsoft.com/fwlink/?LinkId=251909.
    The correlation ID is e7a9c4f2-ec0d-4519-9717-3151b736c8b9. Please note and provide this value if asked by support for it.
    At line:1 char:1
    + Connect-AipService -Verbose
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        
        
     
    VERBOSE: Microsoft.RightsManagementServices.Online.Admin.PowerShell.AdminClientException: The attempt to discover the location of the administration service and organizat
    ion failed. You can retry this action. If you have continued problems, see http://go.microsoft.com/fwlink/?LinkId=251909.
       
       
    

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Ryan Brackenrig 0 Reputation points
    2025-10-02T20:49:17.7333333+00:00

    Just had this issue happen to me. It seems Connect-AIPService ONLY worked for me in a PS Version 5.1.26100.6725 regular terminal

    NO ISE

    NO PSHELL 7

    Was this answer helpful?

    0 comments No comments

  3. Panagiotis Baxevanidis 0 Reputation points
    2025-09-29T08:34:20.05+00:00

    Same issue here with our tenant. The permissions are correctly set, and the connect-aipservice fails.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.