Connect-AipService is failing

JoeLAP 30 Reputation points
2024-01-12T11:28:24.58+00:00

I need to do Enable-AipService via PowerShell as it is not possible through any of the GUI:s. I get an error on command Connect-AipService before even login prompt comes up.

Error: 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. I have even tried disabling Firewall and also tried on multiple PC:s and from multiple networks. Help please!

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,884 questions
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.
538 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,506 questions
{count} votes

Accepted answer
  1. James Hamil 24,581 Reputation points Microsoft Employee
    2024-01-12T20:18:18.3966667+00:00

    Hi @JoeLAP , try following these steps to hopefully recalibrate this and see if it fixes the issue:

    1. Open PowerShell as an administrator. Install the Azure Information Protection client by running the following command:
    Install-Module -Name AzureInformationProtection
    

    After the installation is complete, run the following command to connect to the Azure Information Protection service:

    Connect-AipService
    

    This command will prompt you to enter your Azure Information Protection credentials. Please enter your credentials and try again.

    If you have already followed these steps and are still facing issues, please ensure that you have the latest version of the Azure Information Protection client installed. If this doesn't work please send me an email at "azcommunity@microsoft.com" with subject "ATTN: James Hamil" and your subscription ID.I can open a free support ticket for you. Please let me know if you have any questions and I can help you further. If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Donb_21 0 Reputation points
    2024-04-12T08:58:19.39+00:00

    Facing the exactly same issue, tried on different server but getting consistent errorTried as suggested but no luck.PS C:\Users\zhuwy5> Install-Module AzureInformationProtectionPackageManagement\Install-Package : No match was found for the specified search criteria and module name 'AzureInformationProtection'. Try Get-PSRepository to see all available registered module repositories.

    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34

    • ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
    •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      • CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
      • FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

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