Share via


TenantPolicyResource.CreateOrUpdate Method

Definition

Create or Update Subscription tenant policy for user's tenant.

  • Request Path: /providers/Microsoft.Subscription/policies/default
  • Operation Id: SubscriptionPolicy_AddUpdatePolicyForTenant
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Subscription.TenantPolicyResource> CreateOrUpdate (Azure.WaitUntil waitUntil, Azure.ResourceManager.Subscription.Models.TenantPolicyCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.Subscription.Models.TenantPolicyCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Subscription.TenantPolicyResource>
override this.CreateOrUpdate : Azure.WaitUntil * Azure.ResourceManager.Subscription.Models.TenantPolicyCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Subscription.TenantPolicyResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, content As TenantPolicyCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of TenantPolicyResource)

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.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to