ArmDeploymentResource.Validate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ArmDeploymentValidateResult> Validate (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ArmDeploymentContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member Validate : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ArmDeploymentContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ArmDeploymentValidateResult>
override this.Validate : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ArmDeploymentContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ArmDeploymentValidateResult>
Public Overridable Function Validate (waitUntil As WaitUntil, content As ArmDeploymentContent, Optional cancellationToken As CancellationToken = Nothing) As 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
Azure SDK for .NET