ResourcesDeploymentsExtensions.CalculateDeploymentTemplateHash 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.
Calculate the hash of the given template. <item> Mocking. To mock this method, please mock CalculateDeploymentTemplateHash(BinaryData, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.Resources.Deployments.Models.TemplateHashResult> CalculateDeploymentTemplateHash(this Azure.ResourceManager.Resources.TenantResource tenantResource, BinaryData template, System.Threading.CancellationToken cancellationToken = default);
static member CalculateDeploymentTemplateHash : Azure.ResourceManager.Resources.TenantResource * BinaryData * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.Deployments.Models.TemplateHashResult>
<Extension()>
Public Function CalculateDeploymentTemplateHash (tenantResource As TenantResource, template As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As 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.