Hi,
Just try it in older PS version. It did not connect for me in PS 7.3 but worked in older version.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
Hi,
Just try it in older PS version. It did not connect for me in PS 7.3 but worked in older version.
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.
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.
Sincerely,
Olga Os
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.