New-AzsComputeQuota

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

Syntax

New-AzsComputeQuota
   -Name <String>
   [-Location <String>]
   [-SubscriptionId <String>]
   [-AvailabilitySetCount \<Int32>]
   [-CoresCount \<Int32>]
   [-Location1 <String>]
   [-PremiumManagedDiskAndSnapshotSize \<Int32>]
   [-StandardManagedDiskAndSnapshotSize \<Int32>]
   [-VirtualMachineCount \<Int32>]
   [-VMScaleSetCount \<Int32>]
   [-DefaultProfile <PSObject>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]
New-AzsComputeQuota
   -Name <String>
   -NewQuota \<IQuota>
   [-Location <String>]
   [-SubscriptionId <String>]
   [-DefaultProfile <PSObject>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

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

Examples

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

New-AzsComputeQuota -Name ExampleComputeQuotaWithDefaultParameters

AvailabilitySetCount : 10 CoresLimit : 100 Id : /subscriptions/3ae476e5-83d3-429d-a450-2f4f2fc67c5e/providers/Microsoft.Compute.Ad min/locations/local/quotas/ExampleComputeQuotaWithDefaultParameters Location : local Name : ExampleComputeQuotaWithDefaultParameters PremiumManagedDiskAndSnapshotSize : 2048 StandardManagedDiskAndSnapshotSize : 2048 Type : Microsoft.Compute.Admin/quotas VMScaleSetCount : 0 VirtualMachineCount : 100

-------------------------- EXAMPLE 2 --------------------------

New-AzsComputeQuota -Name ExampleComputeQuotaWithCustomParameters -Location local -AvailabilitySetCount 9 -CoresCount 99 -PremiumManagedDiskAndSnapshotSize 1024 -StandardManagedDiskAndSnapshotSize 1024 -VirtualMachineCount 99 -VMScaleSetCount 2

AvailabilitySetCount : 9 CoresLimit : 99 Id : /subscriptions/3ae476e5-83d3-429d-a450-2f4f2fc67c5e/providers/Microsoft.Compute.Admin/locat ions/local/quotas/ExampleComputeQuotaWithCustomParameters Location : local Name : ExampleComputeQuotaWithCustomParameters PremiumManagedDiskAndSnapshotSize : 1024 StandardManagedDiskAndSnapshotSize : 1024 Type : Microsoft.Compute.Admin/quotas VMScaleSetCount : 2 VirtualMachineCount : 99

Parameters

-AvailabilitySetCount

Maximum number of availability sets allowed.

Type:System.Int32
Position:Named
Default value:10
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-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

-CoresCount

Maximum number of cores allowed.

Type:System.Int32
Aliases:CoresLimit
Position:Named
Default value:100
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

-Location

Location of the resource.

Type:System.String
Position:Named
Default value:(Get-AzLocation)[0].Location
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Location1

Location of the resource.

Type:System.String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of the quota.

Type:System.String
Aliases:QuotaName
Position:Named
Default value:None
Required:True
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

-PremiumManagedDiskAndSnapshotSize

Maximum number of managed disks and snapshots of type premium allowed.

Type:System.Int32
Position:Named
Default value:2048
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StandardManagedDiskAndSnapshotSize

Maximum number of managed disks and snapshots of type standard allowed.

Type:System.Int32
Position:Named
Default value:2048
Required:False
Accept pipeline input:False
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

-VirtualMachineCount

Maximum number of virtual machines allowed.

Type:System.Int32
Position:Named
Default value:100
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VMScaleSetCount

Maximum number of scale sets allowed.

Type:System.Int32
Position:Named
Default value:None
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.