ResourcesDeploymentsExtensions.CalculateDeploymentTemplateHashAsync Method

Definition

Calculate the hash of the given template. <item> Mocking. To mock this method, please mock CalculateDeploymentTemplateHashAsync(BinaryData, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Deployments.Models.TemplateHashResult>> CalculateDeploymentTemplateHashAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, BinaryData template, System.Threading.CancellationToken cancellationToken = default);
static member CalculateDeploymentTemplateHashAsync : Azure.ResourceManager.Resources.TenantResource * BinaryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.Deployments.Models.TemplateHashResult>>
<Extension()>
Public Function CalculateDeploymentTemplateHashAsync (tenantResource As TenantResource, template As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TemplateHashResult))

Parameters

tenantResource
TenantResource

The TenantResource the method will execute against.

template
BinaryData

The request body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

tenantResource is null.

Applies to