ContainerAppCollection.CreateOrUpdateAsync Method

Definition

Create or update a Container App.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}.
  • Operation Id. : ContainerApps_CreateOrUpdate.
  • Default Api Version. : 2025-10-02-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.ContainerAppResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string containerAppName, Azure.ResourceManager.AppContainers.ContainerAppData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppContainers.ContainerAppData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.ContainerAppResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.AppContainers.ContainerAppData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.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))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

containerAppName
String

Name of the Container App.

data
ContainerAppData

Properties used to create a container app.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

containerAppName or data is null.

containerAppName is an empty string, and was expected to be non-empty.

Applies to