共用方式為


AnalysisServerCollection.CreateOrUpdateAsync Method

Definition

Provisions the specified Analysis Services server based on the configuration specified in the request.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}
  • Operation Id: Servers_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Analysis.AnalysisServerResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string serverName, Azure.ResourceManager.Analysis.AnalysisServerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Analysis.AnalysisServerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Analysis.AnalysisServerResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Analysis.AnalysisServerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Analysis.AnalysisServerResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, serverName As String, data As AnalysisServerData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AnalysisServerResource))

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.

serverName
String

The name of the Analysis Services server. It must be a minimum of 3 characters, and a maximum of 63.

data
AnalysisServerData

Contains the information used to provision the Analysis Services server.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

serverName or data is null.

Applies to