Skip to main content

group_quota_subscriptions

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

Overview

Namegroup_quota_subscriptions
TypeResource
Idazure.quota.group_quota_subscriptions

Fields

NameDatatypeDescription
propertiesobject

Methods

NameAccessible byRequired ParamsDescription
getSELECTgroupQuotaName, managementGroupId, subscriptionIdReturns the subscriptionIds along with its provisioning state for being associated with the GroupQuota. If the subscription is not a member of GroupQuota, it will return 404, else 200.
listSELECTgroupQuotaName, managementGroupIdReturns a list of the subscriptionIds associated with the GroupQuotas.
create_or_updateINSERTgroupQuotaName, managementGroupId, subscriptionIdAdds a subscription to GroupQuotas. The subscriptions will be validated based on the additionalAttributes defined in the GroupQuota. The additionalAttributes works as filter for the subscriptions, which can be included in the GroupQuotas. The request's TenantId is validated against the subscription's TenantId.
deleteDELETEgroupQuotaName, managementGroupId, subscriptionIdRemoves the subscription from GroupQuotas. The request's TenantId is validated against the subscription's TenantId.
updateUPDATEgroupQuotaName, managementGroupId, subscriptionIdUpdates the GroupQuotas with the subscription to add to the subscriptions list. The subscriptions will be validated if additionalAttributes are defined in the GroupQuota. The request's TenantId is validated against the subscription's TenantId.

SELECT examples

Returns a list of the subscriptionIds associated with the GroupQuotas.

SELECT
properties
FROM azure.quota.group_quota_subscriptions
WHERE groupQuotaName = '{{ groupQuotaName }}'
AND managementGroupId = '{{ managementGroupId }}';

INSERT example

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

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

UPDATE example

Updates a group_quota_subscriptions resource.

/*+ update */
UPDATE azure.quota.group_quota_subscriptions
SET

WHERE
groupQuotaName = '{{ groupQuotaName }}'
AND managementGroupId = '{{ managementGroupId }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified group_quota_subscriptions resource.

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