你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Set-AzStorageShareQuota

设置共享的存储容量。

语法

Set-AzStorageShareQuota
   [-ShareName] <String>
   [-Quota] <Int32>
   [-Context <IStorageContext>]
   [-ServerTimeoutPerRequest <Int32>]
   [-ClientTimeoutPerRequest <Int32>]
   [-DefaultProfile <IAzureContextContainer>]
   [-ConcurrentTaskCount <Int32>]
   [<CommonParameters>]
Set-AzStorageShareQuota
   [-Share] <CloudFileShare>
   [-Quota] <Int32>
   [-Context <IStorageContext>]
   [-ServerTimeoutPerRequest <Int32>]
   [-ClientTimeoutPerRequest <Int32>]
   [-DefaultProfile <IAzureContextContainer>]
   [-ConcurrentTaskCount <Int32>]
   [<CommonParameters>]

说明

Set-Az存储ShareQuota cmdlet 设置指定共享的存储容量。

示例

示例 1:设置共享的存储容量

Set-AzStorageShareQuota -ShareName "ContosoShare01" -Quota 1024

此命令将名为 ContosoShare01 的共享的存储容量设置为 1024 GB。

参数

-ClientTimeoutPerRequest

指定一个服务请求的客户端超时间隔(以秒为单位)。 如果上一次调用在指定的时间间隔内失败,则此 cmdlet 将重试请求。 如果此 cmdlet 在间隔过前未收到成功的响应,则此 cmdlet 将返回错误。

类型:Nullable<T>[Int32]
别名:ClientTimeoutPerRequestInSeconds
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-ConcurrentTaskCount

指定最大并发网络调用数。 可以使用此参数通过指定并发网络调用的最大数目来限制本地 CPU 和带宽使用量的并发性。 指定的值是绝对计数,不乘以核心计数。 此参数可帮助减少低带宽环境中的网络连接问题,例如每秒 100 千比特。 默认值为 10。

类型:Nullable<T>[Int32]
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-Context

指定 Azure 存储上下文。 若要获取存储上下文,请使用 New-Az存储Context cmdlet。

类型:IStorageContext
Position:Named
默认值:None
必需:False
接受管道输入:True
接受通配符:False

-DefaultProfile

用于与 Azure 通信的凭据、帐户、租户和订阅。

类型:IAzureContextContainer
别名:AzureRmContext, AzureCredential
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-Quota

指定千兆字节(GB)的配额值。 请参阅配额限制。https://learn.microsoft.com/azure/azure-subscription-service-limits#azure-files-limits

类型:Int32
别名:QuotaGiB
Position:1
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-ServerTimeoutPerRequest

指定请求的服务器部分超时期限的长度。

类型:Nullable<T>[Int32]
别名:ServerTimeoutPerRequestInSeconds
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-Share

指定一个 CloudFileShare 对象来表示此 cmdlet 为其设置配额的共享。 若要获取 CloudFileShare 对象,请使用 Get-Az存储Share cmdlet。

类型:CloudFileShare
别名:CloudFileShare
Position:0
默认值:None
必需:True
接受管道输入:True
接受通配符:False

-ShareName

指定要为其设置配额的文件共享的名称。

类型:String
别名:N, Name
Position:0
默认值:None
必需:True
接受管道输入:True
接受通配符:False

输入

String

CloudFileShare

IStorageContext

输出

AzureStorageFileShare