Error: The access token is from the wrong issuer 'https://sts.windows.net/***/'

Error: The access token is from the wrong issuer 'https://sts.windows.net/***/'

最近更改了 azure 订阅,我需要在 Azure DevOps 中添加相同的服务连接。尝试为更改后的订阅创建新的服务连接时出现以下错误 -

查询服务连接失败API: 'https://management.azure.com/subscriptions/{id}/resourcegroups?api-

version=2016-02-01'. Status Code: 'Unauthorized', Response from server: '{"error":{"code":"InvalidAuthenticationTokenTenant","message":"The access token is from the wrong issuer 'https://sts.windows.net/{id}/'. It must match the tenant 'https://sts.windows.net/{id}/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/{id}' to get the token. Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later."}}'

随着订阅 - Azure 活动目录也发生了变化。我需要在 AzureDevops 中更改 AD 吗?或如何解决此错误?

谢谢。

如果您的订阅在另一个租户中,您可能需要更改它。

参见:https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/change-azure-ad-connection?view=azure-devops