Share via


ContainerAppCollection.CreateOrUpdate 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: 2024-03-01
  • Resource: ContainerAppResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.ContainerAppResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string containerAppName, Azure.ResourceManager.AppContainers.ContainerAppData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.AppContainers.ContainerAppData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.ContainerAppResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.AppContainers.ContainerAppData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.AppContainers.ContainerAppResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, containerAppName As String, data As ContainerAppData, Optional cancellationToken As CancellationToken = Nothing) As 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 is an empty string, and was expected to be non-empty.

containerAppName or data is null.

Applies to