Aracılığıyla paylaş


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

public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Applications.Containers.ContainerAppResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string containerAppName, Azure.ResourceManager.Applications.Containers.ContainerAppData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Applications.Containers.ContainerAppData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Applications.Containers.ContainerAppResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Applications.Containers.ContainerAppData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Applications.Containers.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