Skip to main content

agreements

Creates, updates, deletes, gets or lists an agreements resource.

Overview

Nameagreements
TypeResource
Idazure.billing.agreements

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.
acceptanceModestringThe mode of acceptance for an agreement. Known values are: "Other", "ClickToAccept", "ESignEmbedded", "ESignOffline", "Implicit", "Offline", and "PhysicalSign". (Other, ClickToAccept, ESignEmbedded, ESignOffline, Implicit, Offline, PhysicalSign)
agreementLinkstringThe URL to download the agreement.
billingProfileInfoarrayThe list of billing profiles associated with agreement and present only for specific agreements.
categorystringThe category of the agreement. Known values are: "Other", "AffiliatePurchaseTerms", "IndirectForGovernmentAgreement", "MicrosoftCustomerAgreement", "MicrosoftPartnerAgreement", and "UKCloudComputeFramework". (Other, AffiliatePurchaseTerms, IndirectForGovernmentAgreement, MicrosoftCustomerAgreement, MicrosoftPartnerAgreement, UKCloudComputeFramework)
displayNamestringThe name of the agreement signed by a customer.
effectiveDatestring (date-time)The date from which the agreement is effective.
expirationDatestring (date-time)The date when the agreement expires.
leadBillingAccountNamestringThe ID of the lead billing account if this agreement is part of the Customer Affiliate Purchase Terms.
participantsarrayThe list of participants that participates in acceptance of an agreement.
statusstringThe current status of the agreement.
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 < > % & \ ? /.
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, agreement_nameGets an agreement by ID.
list_by_billing_accountselectbilling_account_nameexpandLists the agreements for a billing account.

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
agreement_namestringThe ID that uniquely identifies an agreement. Required.
billing_account_namestringThe ID that uniquely identifies a billing account. Required.
expandstringMay be used to expand the participants. Default value is None.

SELECT examples

Gets an agreement by ID.

SELECT
id,
name,
acceptanceMode,
agreementLink,
billingProfileInfo,
category,
displayName,
effectiveDate,
expirationDate,
leadBillingAccountName,
participants,
status,
systemData,
tags,
type
FROM azure.billing.agreements
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND agreement_name = '{{ agreement_name }}' -- required
;