次の方法で共有


ServicesOperationsExtensions.CreateOrUpdateAsync メソッド

定義

サービス トポロジ内のサービスを作成または更新します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DeploymentManager.Models.ServiceResource> CreateOrUpdateAsync(this Microsoft.Azure.Management.DeploymentManager.IServicesOperations operations, string resourceGroupName, string serviceTopologyName, string serviceName, Microsoft.Azure.Management.DeploymentManager.Models.ServiceResource serviceInfo, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.DeploymentManager.IServicesOperations * string * string * string * Microsoft.Azure.Management.DeploymentManager.Models.ServiceResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DeploymentManager.Models.ServiceResource>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IServicesOperations, resourceGroupName As String, serviceTopologyName As String, serviceName As String, serviceInfo As ServiceResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ServiceResource)

パラメーター

operations
IServicesOperations

この拡張メソッドの操作グループ。

resourceGroupName
String

リソース グループの名前。 名前の大文字と小文字は区別されます。

serviceTopologyName
String

サービス トポロジの名前。

serviceName
String

サービス リソースの名前。

serviceInfo
ServiceResource

サービス オブジェクト

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

同期的に新しいサービスを作成するか、既存のサービスを更新します。

適用対象