GroupQuotasEnforcementStatusCollection.CreateOrUpdate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 since it is now part of an enforced group. 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).
- Then delete the GroupQuota (Check the example - GroupQuotas_Delete).
- Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{___location}
- Operation Id: GroupQuotasEnforcementStatus_CreateOrUpdate
- Default Api Version: 2025-09-01
- Resource: GroupQuotasEnforcementStatusResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotasEnforcementStatusResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string resourceProviderName, Azure.Core.AzureLocation ___location, Azure.ResourceManager.Quota.GroupQuotasEnforcementStatusData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.Core.AzureLocation * Azure.ResourceManager.Quota.GroupQuotasEnforcementStatusData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotasEnforcementStatusResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.Core.AzureLocation * Azure.ResourceManager.Quota.GroupQuotasEnforcementStatusData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotasEnforcementStatusResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, resourceProviderName As String, ___location As AzureLocation, data As GroupQuotasEnforcementStatusData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of GroupQuotasEnforcementStatusResource)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- resourceProviderName
- String
The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.
- ___location
- AzureLocation
The name of the Azure region.
The GroupQuota body details for creation or update of a GroupQuota entity.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
resourceProviderName is an empty string, and was expected to be non-empty.
resourceProviderName or data is null.