Set-​AC​SQuota

Updates an existing ACS storage quota resource.

Syntax

Set-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 Set-ACSQuota cmdlet updates an existing Azure Consistent Storage (ACS) storage quota resource.

Examples

Example 1: Update an existing quota resource

$ResourceGroup = "System"

// Get an existing quota resource named 'BasicStorage_Quota' and Update its NumberOfStorageAccounts property
Get-ACSQuota -Location "Redmond" | Set-ACSQuota -Location "Redmond" -NumberOfStorageAccounts 40

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

The second command uses the Get-ACSQuota cmdlet to get the ACS storage quota resource in the geolocation named Redmond. The command then pipes the result to the Set-ACSQuota which modifies the existing quota resource.

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 modifies. If not specified all quota resources are returned for a given Location.

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