Share via


GroupQuotaSubscriptionCollection.CreateOrUpdate Method

Definition

Adds a subscription to GroupQuotas. The subscriptions will be validated based on the additionalAttributes defined in the GroupQuota. The additionalAttributes works as filter for the subscriptions, which can be included in the GroupQuotas. The request's TenantId is validated against the subscription's TenantId.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}
  • Operation Id: GroupQuotaSubscriptions_CreateOrUpdate
  • Default Api Version: 2023-06-01-preview
  • Resource: GroupQuotaSubscriptionResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotaSubscriptionResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string subscriptionId, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotaSubscriptionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotaSubscriptionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, subscriptionId As String, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of GroupQuotaSubscriptionResource)

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.

subscriptionId
String

The ID of the target subscription. The value must be an UUID.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionId is an empty string, and was expected to be non-empty.

subscriptionId is null.

Applies to