Partager via


ResourcesExtensions.CalculateDeploymentTemplateHashAsync Méthode

Définition

Calculez le hachage du modèle donné.

  • Chemin de la requête/providers/Microsoft.Resources/calculateTemplateHash
  • IdDeployments_CalculateTemplateHash d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.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.Models.TemplateHashResult>>
<Extension()>
Public Function CalculateDeploymentTemplateHashAsync (tenantResource As TenantResource, template As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TemplateHashResult))

Paramètres

tenantResource
TenantResource

Instance TenantResource sur laquelle la méthode s’exécute.

template
BinaryData

Modèle fourni pour calculer le hachage.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

template a la valeur null.

S’applique à