Skip to main content

group_quota_location_settings

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

Overview

Namegroup_quota_location_settings
TypeResource
Idazure.quota.group_quota_location_settings

Fields

The following fields are returned by SELECT queries:

OK.

NameDatatypeDescription
propertiesobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmanagementGroupId, groupQuotaName, resourceProviderName, locationGets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found.
listselectmanagementGroupId, groupQuotaName, resourceProviderNameReturns only the list of the Azure regions settings, where the GroupQuotas enforcement is enabled. The locations not included in GroupQuota Enforcement will not be listed, the regions in failed status with listed as status Failed.
create_or_updateinsertmanagementGroupId, groupQuotaName, resourceProviderName, locationEnables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level.
The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource.
Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement -
1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete).
2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete).
updateupdatemanagementGroupId, groupQuotaName, resourceProviderName, locationEnables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level.
The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource.
Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement -
1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete).
2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete).

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
groupQuotaNamestringThe GroupQuota name. The name should be unique for the provided context tenantId/MgId.
locationstringThe name of the Azure region.
managementGroupIdstringManagement Group Id.
resourceProviderNamestringThe resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.

SELECT examples

Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found.

SELECT
properties
FROM azure.quota.group_quota_location_settings
WHERE managementGroupId = '{{ managementGroupId }}' -- required
AND groupQuotaName = '{{ groupQuotaName }}' -- required
AND resourceProviderName = '{{ resourceProviderName }}' -- required
AND location = '{{ location }}' -- required
;

INSERT examples

Enables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level.
The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource.
Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement -
1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete).
2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete).

INSERT INTO azure.quota.group_quota_location_settings (
data__properties,
managementGroupId,
groupQuotaName,
resourceProviderName,
location
)
SELECT
'{{ properties }}',
'{{ managementGroupId }}',
'{{ groupQuotaName }}',
'{{ resourceProviderName }}',
'{{ location }}'
RETURNING
properties
;

UPDATE examples

Enables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level.
The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource.
Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement -
1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete).
2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete).

UPDATE azure.quota.group_quota_location_settings
SET
data__properties = '{{ properties }}'
WHERE
managementGroupId = '{{ managementGroupId }}' --required
AND groupQuotaName = '{{ groupQuotaName }}' --required
AND resourceProviderName = '{{ resourceProviderName }}' --required
AND location = '{{ location }}' --required
RETURNING
properties;