group_quota_location_settings
Creates, updates, deletes, gets or lists a group_quota_location_settings
resource.
Overview
Name | group_quota_location_settings |
Type | Resource |
Id | azure.quota.group_quota_location_settings |
Fields
Name | Datatype | Description |
---|---|---|
properties | object |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | groupQuotaName, location, managementGroupId, resourceProviderName | Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found. |
list | SELECT | groupQuotaName, managementGroupId, resourceProviderName | 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. |
create_or_update | INSERT | 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 -
- Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete).
- 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 - - Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete).
- 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.quota.group_quota_location_settings (
groupQuotaName,
location,
managementGroupId,
resourceProviderName,
properties
)
SELECT
'{{ groupQuotaName }}',
'{{ location }}',
'{{ managementGroupId }}',
'{{ resourceProviderName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: enforcementEnabled
value: []
- name: provisioningState
value: []
- name: faultCode
value: string
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 }}';