Azure容器实例无法访问密钥库

时间:2018-09-05 21:50:09

标签: azure-container-instances

Azure容器实例的行为与本地Docker容器不同。当通过密钥标识符从Azure Key Vault获得密钥时,我收到:

response = requests.request(...) data = response.json() for value in data['list'].values(): host = value['host'] port = value['port'] print host, port # OP uses Python 2 break else: # we didn't break, which means data['list'] was empty raise RuntimeError('Empty list') response2 = requests.request('POST', ...) # you can use host and port here

但是,在本地运行时不会发生这种情况,而是可以毫无问题地获取机密。

1 个答案:

答案 0 :(得分:0)

是Windows容器吗?有一个已知的问题,它需要几秒钟的时间才能使ACI Windows容器具有出站网络。建议为所有出站请求添加一些重试逻辑。