New-AzsStorageQuota
In diesem Artikel
Syntax
New-AzsStorageQuota
-Name <String>
[-Location <String>]
[-SubscriptionId <String>]
[-CapacityInGb <Int32>]
[-NumberOfStorageAccounts <Int32>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
New-AzsStorageQuota
-Name <String>
-QUOTAOBJECT \<IStorageQuota>
[-Location <String>]
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Beispiele
Beispiel 1:
PS C:\> New-AzsStorageQuota -Name TestQuota -CapacityInGb 123 -NumberOfStorageAccounts 456
Erstellen Sie ein neues Speicherkontingent mit angegebenen Werten.
Parameter
-CapacityInGb
Type: Int32
Position: Named
Default value: 500
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Hiermit werden Sie vor der Ausführung des Cmdlets zur Bestätigung aufgefordert.
Type: SwitchParameter
Aliases: cf
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DefaultProfile
Type: PSObject
Aliases: AzureRMContext, AzureCredential
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Location
Type: String
Position: Named
Default value: (Get-AzLocation)[0].Location
Accept pipeline input: False
Accept wildcard characters: False
-Name
Type: String
Aliases: QuotaName
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-NumberOfStorageAccounts
Type: Int32
Position: Named
Default value: 20
Accept pipeline input: False
Accept wildcard characters: False
-QuotaObject
Informationen zum Erstellen finden Sie im Abschnitt "NOTES" für "QUOTAOBJECT"-Eigenschaften und erstellen Sie eine Hashtabelle.
Type: Microsoft.Azure.PowerShell.Cmdlets.StorageAdmin.Models.Api201908Preview.IStorageQuota
Position: Named
Default value: None
Accept pipeline input: True
Accept wildcard characters: False
-SubscriptionId
Type: String
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird.
Das Cmdlet wird nicht ausgeführt.
Type: SwitchParameter
Aliases: wi
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Microsoft.Azure.PowerShell.Cmdlets.StorageAdmin.Models.Api201908Preview.IStorageQuota
Ausgaben
Microsoft.Azure.PowerShell.Cmdlets.StorageAdmin.Models.Api201908Preview.IStorageQuota
Hinweise
KOMPLEXE PARAMETEREIGENSCHAFTEN Zum Erstellen der unten beschriebenen Parameter erstellen Sie eine Hashtabelle mit den entsprechenden Eigenschaften. Führen Sie Get-Help about_Hash_Tables aus, um Informationen zu Hashtabellen zu erstellen.
QUOTAOBJECT <IStorageQuota>:
[CapacityInGb <Int32?>]: Maximale Kapazität (GB).
[NumberOfStorageAccounts <Int32?>]: Gesamtzahl der Speicherkonten.