BillingTransferDetailCollection.CreateOrUpdate Method

Definition

Sends a request to a user in another billing account to transfer billing ownership of their subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transfers/{transferName}
  • Operation Id: Transfers_Initiate
  • Default Api Version: 2024-04-01
  • Resource: BillingTransferDetailResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingTransferDetailResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string transferName, Azure.ResourceManager.Billing.Models.BillingTransferDetailCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Billing.Models.BillingTransferDetailCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingTransferDetailResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Billing.Models.BillingTransferDetailCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Billing.BillingTransferDetailResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, transferName As String, content As BillingTransferDetailCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of BillingTransferDetailResource)

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.

transferName
String

The ID that uniquely identifies a transfer request.

content
BillingTransferDetailCreateOrUpdateContent

Request parameters that are provided to the initiate transfer operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

transferName or content is null.

Applies to