【发布时间】:2019-12-08 01:39:22
【问题描述】:
所以我正在尝试在 Azure 存储中创建一个新容器。我想将 csv 文件存储为可用于生成 Power BI 报告的 blob。
第一步本身给了我一个错误。奇怪的是,相同的代码过去如何工作,但现在无法工作。
你们能找出其中的任何错误吗?
from azure.storage.blob import BlockBlobService, PublicAccess
block_blob_service = BlockBlobService(account_name='myaccount', account_key='mykey')
container_name ='decipher'
block_blob_service.create_container(container_name)
AzureException: HTTPSConnectionPool(host='myaccount%20.blob.core.windows.net', port=443): Max retries exceeded with url: /decipher?restype=container (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000002D24D433CC0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
【问题讨论】:
标签: python python-3.x azure-storage azure-blob-storage