New-AzNetAppFilesVolumeQuotaRule
Skapar en ny volymkvotregel för Azure NetApp Files (ANF).
Syntax
New-AzNetAppFilesVolumeQuotaRule
-ResourceGroupName <String>
-Location <String>
-AccountName <String>
-PoolName <String>
-VolumeName <String>
-Name <String>
[-Tag <Hashtable>]
-QuotaSize <Int32>
-QuotaType <String>
[-QuotaTarget <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzNetAppFilesVolumeQuotaRule
-Name <String>
[-Tag <Hashtable>]
-QuotaSize <Int32>
-QuotaType <String>
[-QuotaTarget <String>]
-VolumeObject <PSNetAppFilesVolume>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Cmdleten New-AzNetAppFilesVolumeQuotaRule skapar en ANF-volymkvotregel.
Exempel
Exempel 1
New-AzNetAppFilesVolumeQuotaRule -ResourceGroupName "MyRG" -Location "westus2" -AccountName "MyAnfAccount" -PoolName "MyAnfPool" -VolumeName "MyAnfVolume" -Name "MyAnfVolumeQuotaRule" -QuotaType "DefaultGroupQuota" -QuotaSize 100006
Det här kommandot skapar den nya ANF VolumeQuotaRule "MyAnfVolumeQuotaRule" av typen DefaultGroupQuota för volymen "MyAnfVolume" med hjälp av QuotaSize 100006
Parametrar
-AccountName
Namnet på ANF-kontot
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Typ: | SwitchParameter |
Alias: | cf |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Location
Platsen för resursen
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Name
Namnet på ANF QuotaRule
Typ: | String |
Alias: | VolumeQuotaRuleName |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-PoolName
Namnet på ANF-poolen
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-QuotaSize
Storlek på kvot i kibs
Typ: | Int32 |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-QuotaTarget
UserID/GroupID/SID baserat på kvotmåltypen. UserID och groupID kan hittas genom att köra kommandot "id" eller "getent" för användaren eller gruppen och SID kan hittas genom att köra <wmic useraccount där name='user-name' get sid>
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-QuotaType
Typ av kvot
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ResourceGroupName
Resursgruppen för ANF-kontot
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Tag
En hashtable som representerar resurstaggar
Typ: | Hashtable |
Alias: | Tags |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-VolumeName
Namnet på ANF-volymen
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-VolumeObject
Volymen för det nya VolumeQuotaRule-objektet
Typ: | PSNetAppFilesVolume |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-WhatIf
Visar vad som skulle hända om cmdleten körs. Cmdleten körs inte.
Typ: | SwitchParameter |
Alias: | wi |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
Indata
Utdata
Azure PowerShell