Freigeben über


ResourcesExtensions.CalculateDeploymentTemplateHash Methode

Definition

Berechnen Sie den Hash der angegebenen Vorlage.

  • Anforderungspfad/providers/Microsoft.Resources/calculateTemplateHash
  • Vorgangs-IdDeployments_CalculateTemplateHash
public static Azure.Response<Azure.ResourceManager.Resources.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.Models.TemplateHashResult>
<Extension()>
Public Function CalculateDeploymentTemplateHash (tenantResource As TenantResource, template As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As Response(Of TemplateHashResult)

Parameter

tenantResource
TenantResource

Der TenantResource instance die -Methode ausgeführt wird.

template
BinaryData

Die zum Berechnen des Hashs bereitgestellte Vorlage.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

template ist NULL.

Gilt für: