我是,使用Azure 创建blob级别的用户委托的SAS,使用来自文章的步骤。
为了写这篇文章,我已经把我的存储账户的名字藏起来了。
PowerShell az storage blob generate-sas cmdlet正在返回;
//storeageAccountName.blob.core.windows.net?restype=service&comp=userdelegationkey (HTTPSConnectionPool=‘https’,port=443):最大重试超过url: port=443(由NewConnectionError(':未能建立新连接: Errno -2名称或服务未知“)引起)
我注意到URL = //storeageAccountName.blob.core.windows.net,而不是https://storeageaccountname.blob.core.windows.net/。
PowerShell代码:
$sasToken = az storage blob generate-sas `
--account-name $storageAccount `
--container-name $container `
--name $blob `
--permissions acdrw `
--expiry "2020-04-10T14:50Z" `
--auth-mode login `
--as-user `
--full-uri发布于 2020-04-03 15:41:40
Azure模式被设置为经典,而不是设置为ARM。
azure config mode arm.az storage blob generate-sas,并返回SAS。https://stackoverflow.com/questions/61015489
复制相似问题