Azure 容器实例的行为与本地 Docker 容器不同。通过秘密标识符从 Azure Key Vault 获取秘密时,我收到:
Unhandled Exception: System.AggregateException: One or more errors occurred. (An error occurred while sending the request.) ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: The server name or address could not be resolved
但是,当在本地运行时,这不会发生,而是能够毫无问题地获取秘密。