Issue Checking AipService Status

Jon Mercer 971 Reputation points

When I try to run connect-AipService using a Global Admin, or an account set up in Azure Information Protection per I get the following.

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
The correlation ID is 8f63c63b-373f-40f7-ab93-ccee15428e57. Please note and provide this value if asked by support for it.
Connect-AipService: Object reference not set to an instance of an object.

Not sure why, since the account has the correct permissions. I am running this on PowerShell 7.2

The AIP server should be active, but I just want to make sure

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.
521 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Krisztián Major 6 Reputation points


    Just try it in older PS version. It did not connect for me in PS 7.3 but worked in older version.

    1 person found this answer helpful.
    0 comments No comments

  2. Mason 5 Reputation points

    I had the same issue running Powershell 5.1

    My issue turned out to be when installing AipService module, it installs v3.0.0 which doesn't work...

    Run these commands:

    Get-Module -ListAvailable -Name aipservice

    If it's v3.0.0

    Uninstall-Module AIPService

    Install-Module -Name AIPService -RequiredVersion



    If result is Disabled


    My goal was Message encryption and I needed to populate the LicenseLocation field with information obtained from the AipService.

    1 person found this answer helpful.

  3. Olga Os - MSFT 5,836 Reputation points Microsoft Employee

    Hello @Jon Mercer ,

    Welcome to the MS Q&A Forum.

    I just ran the quick test and was able to connect under the Global Admin Role without any issue.

    One scenario in my mind, double check under which Tenant do you try to connect and set the correct one:

    Set-AzContext -Tenant "xxxx-xxxx-xxxx-xxxx"  

    As example, I set another Tenant where I don't have required role and got the same failure.



    Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.

    Olga Os

  4. Jonathan 0 Reputation points

    I had the same issue, and I was using PowerShell Version 7.3.2, I switched to the installed version that comes with Windows 10. I am on version

    PS C:\WINDOWS\system32> $psversionTable

    Name Value

    PSVersion 5.1.19041.2673

    PSEdition Desktop

    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}

    BuildVersion 10.0.19041.2673

    CLRVersion 4.0.30319.42000

    WSManStackVersion 3.0

    PSRemotingProtocolVersion 2.3


    After installing, updating, and importing the module I was able to connect to AIPservice successfully.

    PS C:\WINDOWS\system32> connect-aipservice

    A connection to the Azure Information Protection service was opened.

    0 comments No comments