New-​AC​SQuota

Creates a storage quota resource.

Syntax

New-ACSQuota
   [[-SubscriptionId] <String>]
   [[-Token] <String>]
   [[-AdminUri] <Uri>]
   [-Location] <String>
   [-Name] <String>
   -CapacityInGB <Int32>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -NumberOfStorageAccounts <Int32>
   [-SkipCertificateValidation]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The New-ACSQuota cmdlet creates a storage quota resource.

Examples

Example 1: Create a quota resource

PS C:\> $ResourceGroup = "System"

PS C:\> New-ACSQuota -Location "Redmond" -QuotaName "BasicStorage_Quota" -NumberOfStorageAccounts 20  -CapacityInGB 500

The first command stores the value named System in the variable named $ResourceGroup.

The second command command creates a quota resource named BasicStorage_Quota from the geolocation named Redmond.

Required Parameters

-CapacityInGB

Specifies the value for maximum capacity that a tenant can use who subscribes to this quota resource.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Location

Specifies the geolocation of the quota resource.

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of the quota resource that this cmdlet creates.

Type:String
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NumberOfStorageAccounts

Specifies the value for maximum number of storage accounts that a tenant can create who subscribes to this quota resource.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-AdminUri

Specifies the link, as a URI, to the service administrator.

Type:Uri
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

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

Specifies how this cmdlet responds to an information event.

The acceptable values for this parameter are:

  • Continue
  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SkipCertificateValidation

Indicates that the cmdlet does not validate the certificate.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SubscriptionId

Specifies the subscription ID.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Token
Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
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
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.AzureStack.AzureConsistentStorage.Commands.QuotaResponse