Skip to main content

partner_transfers

Creates, updates, deletes, gets or lists a partner_transfers resource.

Overview

Namepartner_transfers
TypeResource
Idazure.billing.partner_transfers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
canceledBystringThe email ID of the user who canceled the transfer request.
detailedTransferStatusarrayDetailed transfer status.
expirationTimestring (date-time)The time at which the transfer request expires.
initiatorCustomerTypestringThe type of customer who sent the transfer request. Known values are: "Partner" and "EA". (Partner, EA)
initiatorEmailIdstringThe email ID of the user who sent the transfer request.
recipientEmailIdstringThe email ID of the user to whom the transfer request was sent.
resellerIdstringOptional MPN ID of the reseller for transfer requests that are sent from a Microsoft Partner Agreement billing account.
resellerNamestringOptional name of the reseller for transfer requests that are sent from Microsoft Partner Agreement billing account.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectDictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.
transferStatusstringOverall transfer status. Known values are: "Expired", "Pending", "InProgress", "Completed", "CompletedWithErrors", "Failed", "Canceled", and "Declined". (Expired, Pending, InProgress, Completed, CompletedWithErrors, Failed, Canceled, Declined)
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account_name, billing_profile_name, customer_name, transfer_nameGets a transfer request by ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
listselectbilling_account_name, billing_profile_name, customer_nameLists the transfer requests sent to a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
initiateexecbilling_account_name, billing_profile_name, customer_name, transfer_nameSends a request to a user in a customer's billing account to transfer billing ownership of their subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
cancelexecbilling_account_name, billing_profile_name, customer_name, transfer_nameCancels a transfer request. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
billing_account_namestringThe ID that uniquely identifies a billing account. Required.
billing_profile_namestringThe ID that uniquely identifies a billing profile. Required.
customer_namestringThe ID that uniquely identifies a customer. Required.
transfer_namestringThe ID that uniquely identifies a transfer request. Required.

SELECT examples

Gets a transfer request by ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

SELECT
id,
name,
canceledBy,
detailedTransferStatus,
expirationTime,
initiatorCustomerType,
initiatorEmailId,
recipientEmailId,
resellerId,
resellerName,
systemData,
tags,
transferStatus,
type
FROM azure.billing.partner_transfers
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND customer_name = '{{ customer_name }}' -- required
AND transfer_name = '{{ transfer_name }}' -- required
;

Lifecycle Methods

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

EXEC azure.billing.partner_transfers.initiate 
@billing_account_name='{{ billing_account_name }}' --required,
@billing_profile_name='{{ billing_profile_name }}' --required,
@customer_name='{{ customer_name }}' --required,
@transfer_name='{{ transfer_name }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;