Share via


New-AzsComputeQuota

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

Syntax

CreateExpanded (Default)

New-AzsComputeQuota
    -Name <String>
    [-Location <String>]
    [-SubscriptionId <String>]
    [-Location1 <String>]
    [-DefaultProfile <PSObject>]
    [-Confirm]
    [-WhatIf]
    [<CommonParameters>]

Create

New-AzsComputeQuota
    -Name <String>
    -NewQuota
    [-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/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/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/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/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.

Parameter properties

Type:System.Int32
Default value:10
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-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

-CoresCount

Maximum number of cores allowed.

Parameter properties

Type:System.Int32
Default value:100
Supports wildcards:False
DontShow:False
Aliases:CoresLimit

Parameter sets

CreateExpanded
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

-Location

Location of the resource.

Parameter properties

Type:System.String
Default value:(Get-AzLocation)[0].Location
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

-Location1

Location of the resource.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Name of the quota.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:QuotaName

Parameter sets

(All)
Position:Named
Mandatory:True
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

Create
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-PremiumManagedDiskAndSnapshotSize

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

Parameter properties

Type:System.Int32
Default value:2048
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StandardManagedDiskAndSnapshotSize

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

Parameter properties

Type:System.Int32
Default value:2048
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
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

-VirtualMachineCount

Maximum number of virtual machines allowed.

Parameter properties

Type:System.Int32
Default value:100
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMScaleSetCount

Maximum number of scale sets allowed.

Parameter properties

Type:System.Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CreateExpanded
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.