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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
provisioningStatestringStatus of this subscriptionId being associated with the GroupQuotasEntity. Known values are: "Accepted", "Created", "Invalid", "Succeeded", "Escalated", "Failed", "InProgress", and "Canceled". (Accepted, Created, Invalid, Succeeded, Escalated, Failed, InProgress, Canceled)
subscriptionIdstringAn Azure subscriptionId.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmanagement_group_id, group_quota_name, subscription_idReturns 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.
listselectmanagement_group_id, group_quota_nameReturns a list of the subscriptionIds associated with the GroupQuotas.
create_or_updateinsertmanagement_group_id, group_quota_name, subscription_idAdds 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.
updateupdatemanagement_group_id, group_quota_name, subscription_idUpdates 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.
create_or_updatereplacemanagement_group_id, group_quota_name, subscription_idAdds 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.
deletedeletemanagement_group_id, group_quota_name, subscription_idRemoves the subscription from GroupQuotas. The request's TenantId is validated against the subscription's TenantId.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
group_quota_namestringThe GroupQuota name. The name should be unique for the provided context tenantId/MgId. Required.
management_group_idstringThe management group ID. Required.
subscription_idstring

SELECT examples

Returns 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.

SELECT
id,
name,
provisioningState,
subscriptionId,
systemData,
type
FROM azure.quota.group_quota_subscriptions
WHERE management_group_id = '{{ management_group_id }}' -- required
AND group_quota_name = '{{ group_quota_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Adds 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.

INSERT INTO azure.quota.group_quota_subscriptions (
management_group_id,
group_quota_name,
subscription_id
)
SELECT
'{{ management_group_id }}',
'{{ group_quota_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates 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.

UPDATE azure.quota.group_quota_subscriptions
SET
-- No updatable properties
WHERE
management_group_id = '{{ management_group_id }}' --required
AND group_quota_name = '{{ group_quota_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Adds 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.

REPLACE azure.quota.group_quota_subscriptions
SET
-- No updatable properties
WHERE
management_group_id = '{{ management_group_id }}' --required
AND group_quota_name = '{{ group_quota_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Removes the subscription from GroupQuotas. The request's TenantId is validated against the subscription's TenantId.

DELETE FROM azure.quota.group_quota_subscriptions
WHERE management_group_id = '{{ management_group_id }}' --required
AND group_quota_name = '{{ group_quota_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;