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

NameDatatypeDescription
propertiesobject

Methods

NameAccessible byRequired ParamsDescription
getSELECTgroupQuotaName, location, managementGroupId, resourceProviderNameGets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found.
listSELECTgroupQuotaName, managementGroupId, 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_updateINSERTgroupQuotaName, location, managementGroupId, resourceProviderNameEnables 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 | UPDATE | groupQuotaName, location, managementGroupId, resourceProviderName | 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 -
  3. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete).
  4. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete). |

SELECT examples

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

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

INSERT example

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

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

UPDATE example

Updates a group_quota_location_settings resource.

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