Dela via


SubscriptionPolicyOperationsExtensions.AddUpdatePolicyForTenantAsync Method

Definition

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

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Subscription.Models.GetTenantPolicyResponse> AddUpdatePolicyForTenantAsync (this Microsoft.Azure.Management.Subscription.ISubscriptionPolicyOperations operations, Microsoft.Azure.Management.Subscription.Models.PutTenantPolicyRequestProperties body, System.Threading.CancellationToken cancellationToken = default);
static member AddUpdatePolicyForTenantAsync : Microsoft.Azure.Management.Subscription.ISubscriptionPolicyOperations * Microsoft.Azure.Management.Subscription.Models.PutTenantPolicyRequestProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Subscription.Models.GetTenantPolicyResponse>
<Extension()>
Public Function AddUpdatePolicyForTenantAsync (operations As ISubscriptionPolicyOperations, body As PutTenantPolicyRequestProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of GetTenantPolicyResponse)

Parameters

operations
ISubscriptionPolicyOperations

The operations group for this extension method.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to