排查在 Azure Active Directory 中添加或删除应用程序时遇到的常见问题Troubleshoot common problem adding or removing an application to Azure Active Directory

本文帮助你了解用户在 Azure Active Directory 中添加或删除应用时遇到的常见问题。This article helps you understand the common problems people face when adding or removing an app to Azure Active Directory.

单击“添加”按钮后,应用程序要很长时间才显示I clicked the “add” button and my application took a long time to appear

某些情况下,将应用程序添加到目录后,可能需要 1-2 分钟(有时更久)才会显示该应用程序。Under some circumstances, it can take 1-2 minutes (and sometimes longer) for an application to appear after adding it to your directory. 尽管这不是正常的预期结果,但通过单击 Azure 门户右上角的“通知”图标(铃铛),并查找标签为“添加应用程序”的“正在进行中”或“已完成”通知,可以看到应用程序添加正在进行中。While this is not the normal expected performance, you can see the application addition is in progress by clicking on the Notifications icon (the bell) in the upper right of the Azure portal and looking for an In Progress or Completed notification labeled Adding application.

如果应用程序未成功添加,或在单击“添加” 按钮时遇到错误,将看到一个处于“错误” 状态的通知If your application is never added, or you encounter an error when clicking the Add button, you’ll see a Notification in an Error state. 如果想要了解有关错误的详细信息或将其与支持工程师共享,请按照如何查看门户通知的详细信息部分中的步骤进行操作。If you want more details about the error to learn more to or share with a support engineer, you can see more information about the error by following the steps in the How to see the details of a portal notification section.

单击"添加"按钮后,应用程序未显示I clicked the “add” button and my application didn’t appear

有时,由于暂时性问题、网络问题或 bug,添加应用程序会失败。Sometimes, due to transient issues, networking problems, or a bug, adding an application fails. 如果单击 Azure 门户右上角的“通知”图标(铃铛)后,看到“添加应用程序”通知旁边有一个红色的 (!) 图标,则说明添加失败。You can tell this happens when you click the Notifications icon (the bell) in the upper right of the Azure portal and you see a red (!) icon next to your Adding application notification. 这表明创建应用程序时出现了错误。This indicates there was an error when creating the application.

如果单击“添加” 按钮时遇到错误,将看到一个处于“错误” 状态的通知If you encounter an error when clicking the Add button, you’ll see a Notification in an Error state. 如果想要了解有关错误的详细信息或将其与支持工程师共享,请按照如何查看门户通知的详细信息部分中的步骤进行操作。If you want more details about the error to learn more to or share with a support engineer, you can see more information about the error by following the steps in the How to see the details of a portal notification section.

我要删除应用程序,但“删除”按钮已禁用I want to delete an application but the delete button is disabled

在以下情况下,“删除”按钮会被禁用:The delete button will be disabled in the following scenarios:

  • 对于“企业应用程序”下的应用程序,如果你未具有以下角色之一:全局管理员、云应用程序管理员、应用程序管理员或服务主体的所有者。For applications under Enterprise application, if you don't have one of the following roles: Global Administrator, Cloud Application Administrator, Application Administrator, or owner of the service principal.

  • 对于 Microsoft 应用程序,无论你具有什么角色,都无法从 UI 中删除这些应用。For Microsoft application, you won't be able to delete them from the UI regardless of your role.

  • 对于与托管标识对应的服务主体,For servicePrincipals that correspond to a managed identity. 无法在“企业应用”边栏选项卡中删除托管标识服务主体。Managed identities service principals can't be deleted in the Enterprise apps blade. 你需要转到 Azure 资源来管理它。You need to go to the Azure resource to manage it. 详细了解托管标识Lear more about Managed Identity

如何查看门户通知的详细信息How to see the details of a portal notification

可以通过遵循以下步骤来查看任何门户通知的详细信息:You can see the details of any portal notification by following the steps below:

  1. 选择 Azure 门户右上角的“通知”图标(铃铛)Select the Notifications icon (the bell) in the upper right of the Azure portal
  2. 选择状态为“错误” 的任何通知(旁边有红色的 (!))。Select any notification in an Error state (those with a red (!) next to them).

    备注

    不能单击状态为“成功” 或“正在进行中” 的通知。You cannot click notifications in a Successful or In Progress state.

  3. 使用“通知详细信息”下的信息了解有关问题的详细信息。Use the information under Notification Details to understand more details about the problem.
  4. 如果仍需要帮助,还可以与支持工程师或产品组共享此信息以获取有关问题的帮助。If you still need help, you can also share this information with a support engineer or the product group to get help with your problem.
  5. 选择“复制错误”文本框右侧的“复制”图标,复制所有通知详细信息,以便将其与支持或产品组工程师共享。Select the copy icon to the right of the Copy error textbox to copy all the notification details to share with a support or product group engineer.

如何通过向支持工程师发送通知详细信息来获取帮助How to get help by sending notification details to a support engineer

如果你需要帮助,则与支持工程师共享下面列出的所有详细信息非常重要,这有助于他们迅速提供帮助。It is important that you share all the details listed below with a support engineer if you need help, so that they can help you quickly. 捕获屏幕截图或选择“复制错误”图标(位于“复制错误”文本框右侧)。Take a screenshot or select the Copy error icon, found to the right of the Copy error textbox.

介绍通知详细信息Notification Details Explained

有关通知的更多详细信息,请参阅以下说明。See the following descriptions for more details about the notifications.

基本通知项Essential Notification Items

  • 标题 - 通知的描述性标题Title - the descriptive title of the notification
    • 示例 - 应用程序代理设置Example - Application proxy settings
  • 说明 - 操作后发生的情况的说明Description - the description of what occurred as a result of the operation
    • 示例 - 输入的内部 URL 已被其他应用程序使用Example - Internal url entered is already being used by another application
  • 通知 ID - 通知的唯一 IDNotification ID - the unique ID of the notification
    • 示例 - clientNotification-2adbfc06-2073-4678-a69f-7eb78d96b068Example - clientNotification-2adbfc06-2073-4678-a69f-7eb78d96b068
  • 客户端请求 ID - 由浏览器发出的特定请求 IDClient Request ID - the specific request ID made by your browser
    • 示例 - 302fd775-3329-4670-a9f3-bea37004f0bcExample - 302fd775-3329-4670-a9f3-bea37004f0bc
  • 时间戳 UTC - 在通知发生期间的时间戳 (UTC)Time Stamp UTC - the timestamp during which the notification occurred, in UTC
    • 示例 - 2017-03-23T19:50:43.7583681ZExample - 2017-03-23T19:50:43.7583681Z
  • 内部事务 ID - 可用于在我们系统中查找错误的内部 IDInternal Transaction ID - the internal ID we can use to look up the error in our systems
    • 示例 - 71a2f329-ca29-402f-aa72-bc00a7aca603Example - 71a2f329-ca29-402f-aa72-bc00a7aca603
  • UPN - 执行操作的用户UPN - the user who performed the operation
    • 示例 - tperkins@f128.infoExample - tperkins@f128.info
  • 租户 ID - 执行操作的用户所属的租户的唯一 IDTenant ID - the unique ID of the tenant that the user who performed the operation was a member of
    • 示例 - 7918d4b5-0442-4a97-be2d-36f9f9962eceExample - 7918d4b5-0442-4a97-be2d-36f9f9962ece
  • 用户对象 ID - 执行操作的用户的唯一 IDUser object ID - the unique ID of the user who performed the operation
    • 示例 - 17f84be4-51f8-483a-b533-383791227a99Example - 17f84be4-51f8-483a-b533-383791227a99

详细通知项Detailed Notification Items

  • 显示名称 - (可以为空) 错误的更详细的显示名称Display Name - (can be empty) a more detailed display name for the error
    • 示例 - 应用程序代理设置Example - Application proxy settings
  • 状态 - 通知的特定状态Status - the specific status of the notification
    • 示例 - 失败Example - Failed
  • 对象 ID - (可能为空) 对其执行了操作的对象 IDObject ID - (can be empty) the object ID against which the operation was performed
    • 示例 - 8e08161d-f2fd-40ad-a34a-a9632d6bb599Example - 8e08161d-f2fd-40ad-a34a-a9632d6bb599
  • 详细信息 - 由操作导致的情况的详细说明Details - the detailed description of what occurred as a result of the operation
    • 示例 - 内部 URL“https://bing.com/”无效,因为它已在使用中Example - Internal url https://bing.com/ is invalid since it is already in use
  • 复制错误 - 选择“复制错误”文本框右侧的复制图标 ,可复制所有通知详细信息,以便将其与支持小组或产品小组共享Copy error - Select the copy icon to the right of the Copy error textbox to copy all the notification details to share with a support or product group
  • 工程师engineer
    • 示例 {"errorCode":"InternalUrl\_Duplicate","localizedErrorDetails":{"errorDetail":"Internal url 'https://google.com/' is invalid since it is already in use"},"operationResults":\[{"objectId":null,"displayName":null,"status":0,"details":"Internal url 'https://bing.com/' is invalid since it is already in use"}\],"timeStampUtc":"2017-03-23T19:50:26.465743Z","clientRequestId":"302fd775-3329-4670-a9f3-bea37004f0bb","internalTransactionId":"ea5b5475-03b9-4f08-8e95-bbb11289ab65","upn":"tperkins@f128.info","tenantId":"7918d4b5-0442-4a97-be2d-36f9f9962ece","userObjectId":"17f84be4-51f8-483a-b533-383791227a99"}Example {"errorCode":"InternalUrl\_Duplicate","localizedErrorDetails":{"errorDetail":"Internal url 'https://google.com/' is invalid since it is already in use"},"operationResults":\[{"objectId":null,"displayName":null,"status":0,"details":"Internal url 'https://bing.com/' is invalid since it is already in use"}\],"timeStampUtc":"2017-03-23T19:50:26.465743Z","clientRequestId":"302fd775-3329-4670-a9f3-bea37004f0bb","internalTransactionId":"ea5b5475-03b9-4f08-8e95-bbb11289ab65","upn":"tperkins@f128.info","tenantId":"7918d4b5-0442-4a97-be2d-36f9f9962ece","userObjectId":"17f84be4-51f8-483a-b533-383791227a99"}