Dela via


ArmDeploymentResource.ValidateAsync Method

Definition

Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate
  • Operation Id: Deployments_ValidateAtScope
  • Default Api Version: 2024-03-01
  • Resource: ArmDeploymentResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ArmDeploymentValidateResult>> ValidateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ArmDeploymentContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member ValidateAsync : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ArmDeploymentContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ArmDeploymentValidateResult>>
override this.ValidateAsync : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ArmDeploymentContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ArmDeploymentValidateResult>>
Public Overridable Function ValidateAsync (waitUntil As WaitUntil, content As ArmDeploymentContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ArmDeploymentValidateResult))

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.

content
ArmDeploymentContent

Parameters to validate.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to