Set-AzsComputeQuota
Creates or Updates a Compute Quota with the provided quota parameters.
Set-AzsComputeQuota
-NewQuota \<IQuota>
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Creates or Updates a Compute Quota with the provided quota parameters.
$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
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 |
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 |
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 |
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 |
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 |
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
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.