Azure 服务总线 System.UnauthorizedAccessException

Azure service bus System.UnauthorizedAccessException

我们的 azure 服务总线连接字符串开始出现问题,04:57am 消息不再 sent/collected 来自服务总线。

System.UnauthorizedAccessException: The token provider was unable to provide a security token while accessing 'https://biztechsoftware-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'The remote name could not be resolved: 'biztechsoftware-sb.accesscontrol.windows.net''. ---> System.IdentityModel.Tokens.SecurityTokenException: The token provider was unable to provide a security token while accessing 'https://biztechsoftware-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'The remote name could not be resolved: 'biztechsoftware-sb.accesscontrol.windows.net''. ---> System.Net.WebException: The remote name could not be resolved: 'biztechsoftware-sb.accesscontrol.windows.net'

如果我使用根连接字符串,它工作正常。问题在于我们使用的旧连接字符串端点是很久以前创建的。这个旧端点是否可能已过期?

https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-acs-migration

November 7, 2018: All Access Control components are permanently shut down. This includes the Access Control management portal, the management service, STS, and the token transformation rule engine. At this point, any requests sent to Access Control (located at .accesscontrol.windows.net) fail. You should have migrated all existing apps and services to other technologies well before this time.

访问控制服务已于昨天停用。 您必须使用具有共享访问密钥的共享访问策略连接字符串,或使用预览版中的 Azure AD 身份验证。

还有一个迁移指南:https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-migrate-acs-sas