Partager via


ContainerAppCollection.CreateOrUpdateAsync Méthode

Définition

Créer ou mettre à jour une application conteneur. Chemin de la demande : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName} ID d’opération : ContainerApps_CreateOrUpdate

public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Applications.Containers.ContainerAppResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string containerAppName, Azure.ResourceManager.Applications.Containers.ContainerAppData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Applications.Containers.ContainerAppData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Applications.Containers.ContainerAppResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Applications.Containers.ContainerAppData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Applications.Containers.ContainerAppResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, containerAppName As String, data As ContainerAppData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ContainerAppResource))

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre la fin de l’opération de longue durée sur le service ; Started s’il doit retourner 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 Azure.Core Long-Running.

containerAppName
String

Nom de l’application conteneur.

data
ContainerAppData

Propriétés utilisées pour créer une application conteneur.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

containerAppName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

containerAppName ou data est null.

S’applique à