Partilhar via


ContainerAppCollection.CreateOrUpdateAsync Método

Definição

Criar ou atualizar um Aplicativo de Contêiner. Caminho da Solicitação: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName} Operation Id: 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))

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de longa execução, consulte Exemplos de operação de Long-Running do Azure.Core.

containerAppName
String

Nome do Aplicativo de Contêiner.

data
ContainerAppData

Propriedades usadas para criar um aplicativo de contêiner.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

containerAppName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

containerAppName ou data é nulo.

Aplica-se a