Partager via


ContainerAppManagedEnvironmentCollection.CreateOrUpdateAsync Méthode

Définition

Crée ou met à jour un environnement managé utilisé pour héberger des applications conteneur.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}
  • IdManagedEnvironments_CreateOrUpdate d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string environmentName, Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.ContainerAppManagedEnvironmentResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, environmentName As String, data As ContainerAppManagedEnvironmentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ContainerAppManagedEnvironmentResource))

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.

environmentName
String

Nom de l’environnement.

data
ContainerAppManagedEnvironmentData

Détails de configuration de l’environnement.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

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

environmentName ou data est null.

S’applique à