你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ContainerAppsOperationsExtensions.CreateOrUpdateAsync 方法

定义

创建或更新容器应用。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.WebSites.Models.ContainerApp> CreateOrUpdateAsync (this Microsoft.Azure.Management.WebSites.IContainerAppsOperations operations, string resourceGroupName, string name, Microsoft.Azure.Management.WebSites.Models.ContainerApp containerAppEnvelope, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.WebSites.IContainerAppsOperations * string * string * Microsoft.Azure.Management.WebSites.Models.ContainerApp * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.WebSites.Models.ContainerApp>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IContainerAppsOperations, resourceGroupName As String, name As String, containerAppEnvelope As ContainerApp, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ContainerApp)

参数

operations
IContainerAppsOperations

此扩展方法的操作组。

resourceGroupName
String

资源所属的资源组的名称。

name
String

容器应用的名称。

containerAppEnvelope
ContainerApp
cancellationToken
CancellationToken

取消标记。

返回

注解

有关创建或更新容器应用的说明。

适用于