Skip to main content

products

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

Overview

Nameproducts
TypeResource
Idazure_stack.azure_stack.products

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the resource.
namestringName of the resource.
billingPartNumberstringThe part number used for billing purposes.
compatibilityobjectProduct compatibility with current device.
descriptionstringThe description of the product.
displayNamestringThe display name of the product.
etagstringThe entity tag used for optimistic concurrency when modifying the resource.
galleryItemIdentitystringThe identifier of the gallery item corresponding to the product.
iconUrisobjectAdditional links available for this product.
legalTermsstringThe legal terms.
linksarrayAdditional links available for this product.
offerstringThe offer representing the product.
offerVersionstringThe version of the product offer.
payloadLengthintegerThe length of product content.
privacyPolicystringThe privacy policy.
productKindstringThe kind of the product (virtualMachine or virtualMachineExtension).
productPropertiesobjectAdditional properties for the product.
publisherDisplayNamestringThe user-friendly name of the product publisher.
publisherIdentifierstringPublisher identifier.
skustringThe product SKU.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringType of Resource.
vmExtensionTypestringThe type of the Virtual Machine Extension.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group, registration_name, product_name, subscription_idReturns the specified product.
listselectresource_group, registration_name, subscription_idReturns a list of products.
list_detailsexecresource_group, registration_name, product_name, subscription_idReturns the extended properties of a product.
get_productsexecresource_group, registration_name, product_name, subscription_idReturns a list of products.
get_productexecresource_group, registration_name, product_name, subscription_idReturns the specified product.
upload_logexecresource_group, registration_name, product_name, subscription_idReturns the specified product.

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
product_namestringName of the product. Required.
registration_namestringName of the Azure Stack registration. Required.
resource_groupstringName of the resource group. Required.
subscription_idstring

SELECT examples

Returns the specified product.

SELECT
id,
name,
billingPartNumber,
compatibility,
description,
displayName,
etag,
galleryItemIdentity,
iconUris,
legalTerms,
links,
offer,
offerVersion,
payloadLength,
privacyPolicy,
productKind,
productProperties,
publisherDisplayName,
publisherIdentifier,
sku,
systemData,
type,
vmExtensionType
FROM azure_stack.azure_stack.products
WHERE resource_group = '{{ resource_group }}' -- required
AND registration_name = '{{ registration_name }}' -- required
AND product_name = '{{ product_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Returns the extended properties of a product.

EXEC azure_stack.azure_stack.products.list_details 
@resource_group='{{ resource_group }}' --required,
@registration_name='{{ registration_name }}' --required,
@product_name='{{ product_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;