Issue Checking AipService Status

Jon Mercer 971 Reputation points
2022-10-06T20:03:24.857+00:00

When I try to run connect-AipService using a Global Admin, or an account set up in Azure Information Protection per https://learn.microsoft.com/en-us/powershell/module/aipservice/connect-aipservice?view=azureipps I get the following.

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 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
    2022-11-22T12:11:37.223+00:00

    Hi,

    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
    2023-12-21T05:54:29.8466667+00:00

    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 2.0.0.3

    Connect-AipService

    Get-AipService

    If result is Disabled

    Enable-AipService

    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
    2022-10-06T21:30:43.777+00:00

    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.

    248302-image.png
    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.

    248238-image.png

    --------------------------------------------------------

    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.

    Sincerely,
    Olga Os


  4. Jonathan 0 Reputation points
    2023-03-15T16:21:41.66+00:00

    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

    SerializationVersion 1.1.0.1

    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