quotas
Creates, updates, deletes, gets or lists a quotas
resource.
Overview
Name | quotas |
Type | Resource |
Id | azure_stack.compute_admin.quotas |
Fields
- vw_quotas
- quotas
Name | Datatype | Description |
---|---|---|
id | text | ID of the resource. |
name | text | Name of the resource. |
availability_set_count | text | field from the properties object |
cores_limit | text | field from the properties object |
ddagpu_count | text | field from the properties object |
location | text | Location of the resource. |
max_allocation_premium_managed_disks_and_snapshots | text | field from the properties object |
max_allocation_standard_managed_disks_and_snapshots | text | field from the properties object |
partitioned_gpu_count | text | field from the properties object |
quotaName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Type of Resource. |
virtual_machine_count | text | field from the properties object |
vm_scale_set_count | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | ID of the resource. |
name | string | Name of the resource. |
location | string | Location of the resource. |
properties | object | Properties for a Compute Quota |
type | string | Type of Resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | location, quotaName, subscriptionId | Get an existing Compute Quota. |
list | SELECT | location, subscriptionId | Get a list of existing Compute quotas. |
create_or_update | INSERT | location, quotaName, subscriptionId | Creates or Updates a Compute Quota with the provided quota parameters. |
delete | DELETE | location, quotaName, subscriptionId | Delete an existing Compute quota. |
SELECT
examples
Get a list of existing Compute quotas.
- vw_quotas
- 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 }}';
SELECT
id,
name,
location,
properties,
type
FROM azure_stack.compute_admin.quotas
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new quotas
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.compute_admin.quotas (
location,
quotaName,
subscriptionId,
properties,
location
)
SELECT
'{{ location }}',
'{{ quotaName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: availabilitySetCount
value: integer
- name: coresLimit
value: integer
- name: virtualMachineCount
value: integer
- name: vmScaleSetCount
value: integer
- name: maxAllocationStandardManagedDisksAndSnapshots
value: integer
- name: maxAllocationPremiumManagedDisksAndSnapshots
value: integer
- name: ddagpuCount
value: integer
- name: partitionedGpuCount
value: integer
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
DELETE
example
Deletes the specified quotas
resource.
/*+ delete */
DELETE FROM azure_stack.compute_admin.quotas
WHERE location = '{{ location }}'
AND quotaName = '{{ quotaName }}'
AND subscriptionId = '{{ subscriptionId }}';