編集

次の方法で共有


Update-AzNetAppFilesVolumeQuotaRule

Updates an Azure NetApp Files (ANF) volume quota rule according to the optional modifiers provided.

Syntax

Update-AzNetAppFilesVolumeQuotaRule
      -ResourceGroupName <String>
      -AccountName <String>
      -PoolName <String>
      -VolumeName <String>
      -Name <String>
      [-Tag <Hashtable>]
      [-QuotaSize <Int32>]
      [-QuotaType <String>]
      [-QuotaTarget <String>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzNetAppFilesVolumeQuotaRule
      -Name <String>
      [-Tag <Hashtable>]
      [-QuotaSize <Int32>]
      [-QuotaType <String>]
      [-QuotaTarget <String>]
      -ResourceId <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzNetAppFilesVolumeQuotaRule
      -Name <String>
      [-Tag <Hashtable>]
      [-QuotaSize <Int32>]
      [-QuotaType <String>]
      [-QuotaTarget <String>]
      -VolumeObject <PSNetAppFilesVolume>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzNetAppFilesVolumeQuotaRule
      -Name <String>
      [-Tag <Hashtable>]
      [-QuotaSize <Int32>]
      [-QuotaType <String>]
      [-QuotaTarget <String>]
      -InputObject <PSNetAppFilesBackup>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Update-AzNetAppFilesVolumeQuotaRule cmdlet updates an ANF volume quota rule.

Examples

Example 1

Update-AzNetAppFilesVolumeQuotaRule -ResourceGroupName "MyRG" -AccountName "MyAnfAccount" -VolumeName "MyAnfVolume" -Name "MyVolumeQuotaRuleName" -QuotaSize 100006

This command updates the ANF volume quota rule "MyVolumeQuotaRuleName" with the new quota size.

Parameters

-AccountName

The name of the ANF account

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

The VolumeQuotaRule object to update

Type:PSNetAppFilesBackup
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

The name of the ANF Subvolume

Type:String
Aliases:SubvolumeName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PoolName

The name of the ANF pool

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-QuotaSize

Size of quota in KiBs

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-QuotaTarget

UserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running 'id' or 'getent' command for the user or group and SID can be found by running <wmic useraccount where name='user-name' get sid>

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-QuotaType

Type of quota

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

The resource group of the ANF account

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

The resource id of the ANF VolumeQuotaRule

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Tag

A hashtable which represents resource tags

Type:Hashtable
Aliases:Tags
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VolumeName

The name of the ANF volume

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VolumeObject

The volume object containing the subvolume to return

Type:PSNetAppFilesVolume
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

PSNetAppFilesVolume

PSNetAppFilesBackup

Outputs

PSNetAppFilesBackup