大网数据广告活动
域与目录服务

Fail to connect to Microsoft Azure Information Protection using Windows PowerShell

· 52CE 我爱测

Describes an issue in which you can't connect to the Azure Information Protection service by using Windows PowerShell in Office 365. Provides a resolution.

Note: Microsoft Azure Information Protection was previously known as Microsoft Azure Rights Management.

Summary

This article resolves an issue where you can't connect to the Azure Information Protection Service using Windows PowerShell in Office 365.

Original product version:   Microsoft Entra ID, Azure Information Protection
Original KB number:   2797755

Symptoms

When you try to connect to Microsoft Azure Information Protection using Windows PowerShell in Microsoft Office 365, you get an error message that resembles the following:

PS C:\> Connect-AipService

Connect-AipService : The attempt to connect to the Azure Information Protection service failed. Verify that the user name and password 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 aaaa0000-bb11-2222-33cc-444444dddddd. 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.ConnectAipServiceCommand

You may also see the following error message:

Object reference not set to an instance of an object.

Cause

This issue occurs if one or more of the following conditions are true:

  • You entered the wrong user name or password.
  • You aren't a company administrator.
  • You don't have a subscription that includes Azure Information Protection.
  • The network is preventing you from connecting to Azure Information Protection.
  • You're using Windows PowerShell 7. Using PowerShell 7 will result in the "Object reference not set to an instance of an object" error. For more information, see Known issues - Azure Information Protection.

Resolution

Note: If Azure Information Protection isn't enabled for your company, you use the Microsoft 365 admin center to enable it. For more info about how to do this, read Azure Information Protection deployment road map.

To resolve this issue, make sure that the following are true:

  • Make sure that you enter the correct user name and password. To check that you entered them correctly, sign in to the Office 365 portal.
  • You must be a global administrator to connect to Azure Information Protection.
  • To use Azure Information Protection, you must have a subscription that includes Azure Information Protection.
  • Work with the network administrator to make sure that the network meets the requirements for connecting to Azure Information Protection. The requirements are as follows:
    • Incoming and outgoing connections to *.aadrm.com are enabled.
    • Incoming and outgoing connections to *.cloudapp.net (rmsoprod*-b-rms*.cloudapp.net) are enabled.
    • Port 443 is open.
  • Use Windows PowerShell 5. You can check the PowerShell version by using the $PSVersionTable.PSVersion command.

More information

For more information on Azure Information Protection, visit AIPService.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 10/25/2023
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。