Skip to main content

quotas

Creates, updates, deletes, gets or lists a quotas resource.

Overview

Namequotas
TypeResource
Idazure_stack.compute_admin.quotas

Fields

NameDatatypeDescription
idtextID of the resource.
nametextName of the resource.
availability_set_counttextfield from the properties object
cores_limittextfield from the properties object
ddagpu_counttextfield from the properties object
locationtextLocation of the resource.
max_allocation_premium_managed_disks_and_snapshotstextfield from the properties object
max_allocation_standard_managed_disks_and_snapshotstextfield from the properties object
partitioned_gpu_counttextfield from the properties object
quotaNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextType of Resource.
virtual_machine_counttextfield from the properties object
vm_scale_set_counttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocation, quotaName, subscriptionIdGet an existing Compute Quota.
listSELECTlocation, subscriptionIdGet a list of existing Compute quotas.
create_or_updateINSERTlocation, quotaName, subscriptionIdCreates or Updates a Compute Quota with the provided quota parameters.
deleteDELETElocation, quotaName, subscriptionIdDelete an existing Compute quota.

SELECT examples

Get a list of existing Compute quotas.

SELECT
id,
name,
availability_set_count,
cores_limit,
ddagpu_count,
location,
max_allocation_premium_managed_disks_and_snapshots,
max_allocation_standard_managed_disks_and_snapshots,
partitioned_gpu_count,
quotaName,
subscriptionId,
type,
virtual_machine_count,
vm_scale_set_count
FROM azure_stack.compute_admin.vw_quotas
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new quotas resource.

/*+ create */
INSERT INTO azure_stack.compute_admin.quotas (
location,
quotaName,
subscriptionId,
properties,
location
)
SELECT
'{{ location }}',
'{{ quotaName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}'
;

DELETE example

Deletes the specified quotas resource.

/*+ delete */
DELETE FROM azure_stack.compute_admin.quotas
WHERE location = '{{ location }}'
AND quotaName = '{{ quotaName }}'
AND subscriptionId = '{{ subscriptionId }}';