azure - 使用 az cli 在 azure 中创建文件共享
问题描述
我想使用命令行在 azure 存储帐户中创建文件共享。
我正在使用命令az storage share create --name myfile --account-name $NAME --account-key $key
。但它显示错误。
我也尝试了 azcopy make "url for file share?accountkey" 但它也不起作用。我使用的是 azcopy 7.3 版
这是我得到的错误。
该命令因意外错误而失败。这是回溯:
HTTPSConnectionPool(host='redboxtfstatebedtqgliqc.file.core.windows.net', port=443): 最大重试次数超过 url: /myfile?restype=share (由 SSLError(SSLError("bad handshake: Error([('SSL例程', 'tls_process_server_certificate', '证书验证失败')],)",),))
解决方案
我和帖子的作者有同样的问题。可以通过 George Chen 发布的链接解决:
https://github.com/Azure/azure-cli/blob/dev/doc/use_cli_effectively.md#working-behind-a-proxy
- 您需要编辑文件:“C:\path_to_your_cli_installation\CLI2\Lib\site-packages\certifi\cacert.pem”并添加代理服务器的证书
- 您需要将环境变量 REQUESTS_CA_BUNDLE 设置为“C:\path_to_your_cli_installation\CLI2\Lib\site-packages\certifi\cacert.pem”
推荐阅读
- regex - XQuery MarkLogic 中的模式或格式匹配
- asp.net - Web.config/app.config 元素 configSections 在 DotNet4.5 中是否已弃用?
- haskell - 我如何证明会推断出这种类型?
- php - 如果返回值是混合的,使用什么类型的提示?
- highcharts - 官方网站上的 Highcharts 大型热图无法在 Chrome 上运行
- php - mysql删除查询条件
- r - 使用 RColorBrewer 将颜色居中在 0 附近
- python - 在使用 for 循环遍历列表时从 csv 文件中提取值
- android - (Xamarin - Android)从另一个类调用 Activity 类中的公共方法?
- php - 在datalist中显示数据Mysql