Share via


Set-AzsComputeQuota

Creates or Updates a Compute Quota with the provided quota parameters.

Syntax

Default (Default)

Set-AzsComputeQuota
    -NewQuota
    [-SubscriptionId <String>]
    [-DefaultProfile <PSObject>]
    [-Confirm]
    [-WhatIf]
    [<CommonParameters>]

Description

Creates or Updates a Compute Quota with the provided quota parameters.

Examples

-------------------------- EXAMPLE 1 --------------------------

$myComputeQuota = Get-AzsComputeQuota -Name MyComputeQuota

PS C:\> $myComputeQuota.CoresLimit = 99;

PS C:\> Set-AzsComputeQuota -NewQuota $myComputeQuota

AvailabilitySetCount : 10 CoresLimit : 99 Id : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Compute.Admin/locations/northwest/quotas/MyComputeQuota Location : northwest Name : MyComputeQuota PremiumManagedDiskAndSnapshotSize : 2048 StandardManagedDiskAndSnapshotSize : 2048 Type : Microsoft.Compute.Admin/quotas VMScaleSetCount : 0 VirtualMachineCount : 100

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultProfile

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

Parameter properties

Type:System.Management.Automation.PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NewQuota

Holds Compute quota information used to control resource allocation. To construct, see NOTES section for NEWQUOTA properties and create a hash table.

Parameter properties

Type:Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Parameter properties

Type:System.String
Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota

Outputs

Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota

Notes

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

NEWQUOTA <IQuota>: Holds Compute quota information used to control resource allocation.

  • [Location <String>]: Location of the resource.
  • [AvailabilitySetCount \<Int32?>]: Maximum number of availability sets allowed.
  • [CoresLimit \<Int32?>]: Maximum number of cores allowed.
  • [DdagpuCount \<Int32?>]: Maximum number of dda gpus allowed.
  • [PartitionedGpuCount \<Int32?>]: Maximum number of partitioned gpus allowed.
  • [PremiumManagedDiskAndSnapshotSize \<Int32?>]: Maximum number of managed disks and snapshots of type premium allowed.
  • [StandardManagedDiskAndSnapshotSize \<Int32?>]: Maximum number of managed disks and snapshots of type standard allowed.
  • [VMScaleSetCount \<Int32?>]: Maximum number of scale sets allowed.
  • [VirtualMachineCount \<Int32?>]: Maximum number of virtual machines allowed.