Partager via


ArmDeploymentScriptCollection.CreateOrUpdateAsync Méthode

Définition

Crée un script de déploiement.

  • Chemin/abonnements de la demande/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}
  • IdDeploymentScripts_Create d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.ArmDeploymentScriptResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string scriptName, Azure.ResourceManager.Resources.ArmDeploymentScriptData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Resources.ArmDeploymentScriptData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.ArmDeploymentScriptResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Resources.ArmDeploymentScriptData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.ArmDeploymentScriptResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, scriptName As String, data As ArmDeploymentScriptData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ArmDeploymentScriptResource))

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre pour retourner jusqu’à ce que l’opération de longue durée soit terminée sur le service ; Started si elle doit être retournée après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations de Long-Running Azure.Core.

scriptName
String

Nom du script de déploiement.

data
ArmDeploymentScriptData

Script de déploiement fourni à l’opération.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

scriptName est une chaîne vide et devait être non vide.

scriptName ou data est null.

S’applique à