Skip to main content

group_quotas

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

Overview

Namegroup_quotas
TypeResource
Idazure.quota.group_quotas

Fields

NameDatatypeDescription
additional_attributestextfield from the properties object
display_nametextfield from the properties object
groupQuotaNametextfield from the properties object
managementGroupIdtextfield from the properties object
provisioning_statetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgroupQuotaName, managementGroupIdGets the GroupQuotas for the name passed. It will return the GroupQuotas properties only. The details on group quota can be access from the group quota APIs.
listSELECTmanagementGroupIdLists GroupQuotas for the scope passed. It will return the GroupQuotas QuotaEntity properties only.The details on group quota can be access from the group quota APIs.
create_or_updateINSERTgroupQuotaName, managementGroupIdCreates a new GroupQuota for the name passed. A RequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.
deleteDELETEgroupQuotaName, managementGroupIdDeletes the GroupQuotas for the name passed. All the remaining shareQuota in the GroupQuotas will be lost.
updateUPDATEgroupQuotaName, managementGroupIdUpdates the GroupQuotas for the name passed. A GroupQuotas RequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.
Any change in the filters will be applicable to the future quota assignments, existing quota allocated to subscriptions from the GroupQuotas remains unchanged.

SELECT examples

Lists GroupQuotas for the scope passed. It will return the GroupQuotas QuotaEntity properties only.The details on group quota can be access from the group quota APIs.

SELECT
additional_attributes,
display_name,
groupQuotaName,
managementGroupId,
provisioning_state
FROM azure.quota.vw_group_quotas
WHERE managementGroupId = '{{ managementGroupId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.quota.group_quotas (
groupQuotaName,
managementGroupId,
properties
)
SELECT
'{{ groupQuotaName }}',
'{{ managementGroupId }}',
'{{ properties }}'
;

UPDATE example

Updates a group_quotas resource.

/*+ update */
UPDATE azure.quota.group_quotas
SET
properties = '{{ properties }}'
WHERE
groupQuotaName = '{{ groupQuotaName }}'
AND managementGroupId = '{{ managementGroupId }}';

DELETE example

Deletes the specified group_quotas resource.

/*+ delete */
DELETE FROM azure.quota.group_quotas
WHERE groupQuotaName = '{{ groupQuotaName }}'
AND managementGroupId = '{{ managementGroupId }}';