Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure Set AzureStorageBlobContent更改大小块_Azure_Powershell_Azure Rm - Fatal编程技术网

Azure Set AzureStorageBlobContent更改大小块

Azure Set AzureStorageBlobContent更改大小块,azure,powershell,azure-rm,Azure,Powershell,Azure Rm,我想知道如何使用命令{Set AzureStorageBlobContent}上传blob大小,将其块大小更改为100 MB,因为我遇到了一个问题,即我超过了blob存储中允许的50.000个块。AFAIK,您似乎无法做到这一点。默认情况下,Set-AzureStorageBlobContent命令基本上调用rest api,如果要将块大小更改为100 MB,则需要将请求头中的内容长度指定为104857600字节(即100MB) 根据我的测试,如果捕获powershell命令的请求,我们可以发现

我想知道如何使用命令{Set AzureStorageBlobContent}上传blob大小,将其块大小更改为100 MB,因为我遇到了一个问题,即我超过了blob存储中允许的50.000个块。

AFAIK,您似乎无法做到这一点。默认情况下,
Set-AzureStorageBlobContent
命令基本上调用rest api,如果要将块大小更改为
100 MB
,则需要将请求头中的
内容长度指定为
104857600
字节(即100MB)

根据我的测试,如果捕获powershell命令的请求,我们可以发现
内容长度默认为
4194304
字节

集合AzureStorageBlobContent
中,您会发现一个名为
-Properties
的参数,它允许我们传递
缓存控件、ContentDisposition、ContentEncoding、ContentLanguage、ContentMD5、ContentType
属性,如果支持
内容长度
,它们都是请求头,我想它会在那里

此外,如果你想改进它,你可以把你的想法张贴在网站上


我认为内容长度不受支持,我没有找到任何与内容长度对应的参数。无论如何,非常感谢你!因为这是正确的方式,但不是解决方案,所以该命令不允许修改内容长度header@xavier我认为被接受就足够了,我回答了很多问题,有些问题问的是是否可能做到……如果答案不可能,他们将永远不会被接受?:-)也许这是不合理的。