Share via


DevTestLabResource.EvaluatePoliciesAsync Method

Definition

Evaluates lab policy.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/policysets/{name}/evaluatePolicies
  • Operation Id: PolicySets_EvaluatePolicies
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesResult>> EvaluatePoliciesAsync (string name, Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member EvaluatePoliciesAsync : string * Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesResult>>
override this.EvaluatePoliciesAsync : string * Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.Models.DevTestLabEvaluatePoliciesResult>>
Public Overridable Function EvaluatePoliciesAsync (name As String, content As DevTestLabEvaluatePoliciesContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DevTestLabEvaluatePoliciesResult))

Parameters

name
String

The name of the policy set.

content
DevTestLabEvaluatePoliciesContent

Request body for evaluating a policy set.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

name or content is null.

Applies to