PolicySetDefinitionsOperations.CreateOrUpdateAsync(String, PolicySetDefinition, CancellationToken) Method

Definition

This operation creates or updates a policy set definition in the given subscription with the given name.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Models.PolicySetDefinition>> CreateOrUpdateAsync (string policySetDefinitionName, Azure.ResourceManager.Resources.Models.PolicySetDefinition parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : string * Azure.ResourceManager.Resources.Models.PolicySetDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Models.PolicySetDefinition>>
override this.CreateOrUpdateAsync : string * Azure.ResourceManager.Resources.Models.PolicySetDefinition * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Models.PolicySetDefinition>>
Public Overridable Function CreateOrUpdateAsync (policySetDefinitionName As String, parameters As PolicySetDefinition, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PolicySetDefinition))

Parameters

policySetDefinitionName
String

The name of the policy set definition to create.

parameters
PolicySetDefinition

The policy set definition properties.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Task<Response<PolicySetDefinition>>

Applies to