Sdílet prostřednictvím


PartnerResponseCollection.CreateOrUpdateAsync Method

Definition

Create a management partner for the objectId and tenantId.

  • Request Path: /providers/Microsoft.ManagementPartner/partners/{partnerId}
  • Operation Id: Partner_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagementPartner.PartnerResponseResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string partnerId, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagementPartner.PartnerResponseResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ManagementPartner.PartnerResponseResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, partnerId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of PartnerResponseResource))

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.

partnerId
String

Id of the Partner.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

partnerId is null.

Applies to