Skip to main content

products

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

Overview

Nameproducts
TypeResource
Idazure_stack.azure_bridge_admin.products

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringURI of the resource.
namestringName of the resource.
locationstringLocation of the resource
propertiesobjectProperties of the resource.
tagsobjectList of key value pairs.
typestringType of resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, activationName, productNameReturn product name.
listselectsubscriptionId, resourceGroupName, activationNameReturn product name.
downloadexecsubscriptionId, resourceGroupName, activationName, productNameDownloads a product from azure marketplace.

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
activationNamestringName of the activation.
productNamestringName of the product.
resourceGroupNamestringThe resource group the resource is located under.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.

SELECT examples

Return product name.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_stack.azure_bridge_admin.products
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND activationName = '{{ activationName }}' -- required
AND productName = '{{ productName }}' -- required
;

Lifecycle Methods

Downloads a product from azure marketplace.

EXEC azure_stack.azure_bridge_admin.products.download 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@activationName='{{ activationName }}' --required,
@productName='{{ productName }}' --required
;