GroupQuotaEnforcementCollection.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. 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).
- Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location}
- Operation Id: GroupQuotaLocationSettings_CreateOrUpdate
- Default Api Version: 2023-06-01-preview
- Resource: GroupQuotaEnforcementResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotaEnforcementResource> CreateOrUpdate (Azure.WaitUntil waitUntil, Azure.Core.AzureLocation location, Azure.ResourceManager.Quota.GroupQuotaEnforcementData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.Core.AzureLocation * Azure.ResourceManager.Quota.GroupQuotaEnforcementData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotaEnforcementResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.Core.AzureLocation * Azure.ResourceManager.Quota.GroupQuotaEnforcementData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotaEnforcementResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, location As AzureLocation, data As GroupQuotaEnforcementData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of GroupQuotaEnforcementResource)
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.
- 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
data
is null.