Skip to main content

marketplace_agreements

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

Overview

Namemarketplace_agreements
TypeResource
Idazure.marketplace_ordering.marketplace_agreements

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
acceptedbooleanIf any version of the terms have been accepted, otherwise false.
licenseTextLinkstringLink to HTML with Microsoft and Publisher terms.
marketplaceTermsLinkstringLink to HTML with Azure Marketplace terms.
planstringPlan identifier string of image being deployed.
privacyPolicyLinkstringLink to the privacy policy of the publisher.
productstringOffer identifier string of image being deployed.
publisherstringPublisher identifier string of image being deployed.
retrieveDatetimestringDate and time in UTC of when the terms were accepted. This is empty if Accepted is false.
signaturestringTerms signature.
systemDataobjectThe system meta data relating to this resource.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectoffer_type, publisher_id, offer_id, plan_id, subscription_idGet marketplace terms.
get_agreementselectpublisher_id, offer_id, plan_id, subscription_idGet marketplace agreement.
listselectsubscription_idList marketplace agreements in the subscription.
createinsertoffer_type, publisher_id, offer_id, plan_id, subscription_idSave marketplace terms.
signexecpublisher_id, offer_id, plan_id, subscription_idSign marketplace terms.
cancelexecpublisher_id, offer_id, plan_id, subscription_idCancel marketplace terms.

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
offer_idstringOffer identifier string of image being deployed. Required.
offer_typestringOffer Type, currently only virtualmachine type is supported. "virtualmachine" Required.
plan_idstringPlan identifier string of image being deployed. Required.
publisher_idstringPublisher identifier string of image being deployed. Required.
subscription_idstring

SELECT examples

Get marketplace terms.

SELECT
id,
name,
accepted,
licenseTextLink,
marketplaceTermsLink,
plan,
privacyPolicyLink,
product,
publisher,
retrieveDatetime,
signature,
systemData,
type
FROM azure.marketplace_ordering.marketplace_agreements
WHERE offer_type = '{{ offer_type }}' -- required
AND publisher_id = '{{ publisher_id }}' -- required
AND offer_id = '{{ offer_id }}' -- required
AND plan_id = '{{ plan_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Save marketplace terms.

INSERT INTO azure.marketplace_ordering.marketplace_agreements (
properties,
offer_type,
publisher_id,
offer_id,
plan_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ offer_type }}',
'{{ publisher_id }}',
'{{ offer_id }}',
'{{ plan_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

Lifecycle Methods

Sign marketplace terms.

EXEC azure.marketplace_ordering.marketplace_agreements.sign 
@publisher_id='{{ publisher_id }}' --required,
@offer_id='{{ offer_id }}' --required,
@plan_id='{{ plan_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;