Set-AzsComputeQuota

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

Syntax

Set-AzsComputeQuota
   -NewQuota \<IQuota>
   [-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/74c72bdc-d917-431c-a377-8ca80f4238a0/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.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

Type:System.Management.Automation.PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NewQuota

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

Type:Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SubscriptionId

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

Type:System.String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

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.