Skip to main content

offers

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

Overview

Nameoffers
TypeResource
Idazure_stack.azure_stack_hci.offers

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.
contentstringJSON serialized catalog content of the offer.
contentVersionstringThe API version of the catalog service used to serve the catalog content.
provisioningStatestringProvisioning State.
publisherIdstringIdentifier of the Publisher for the offer.
skuMappingsarrayArray of SKU mappings.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectresource_group_name, cluster_name, publisher_name, offer_name, subscription_id$expandGet Offer resource details within a publisher of HCI Cluster.
list_by_publisherselectresource_group_name, cluster_name, publisher_name, subscription_id$expandList Offers available for a publisher within the HCI Cluster.
list_by_clusterselectresource_group_name, cluster_name, subscription_id$expandList Offers available across publishers for the HCI Cluster.

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
cluster_namestringThe name of the cluster. Required.
offer_namestringThe name of the offer available within HCI cluster. Required.
publisher_namestringThe name of the publisher available within HCI cluster. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$expandstringSpecify $expand=content,contentVersion to populate additional fields related to the marketplace offer. Default value is None.

SELECT examples

Get Offer resource details within a publisher of HCI Cluster.

SELECT
id,
name,
content,
contentVersion,
provisioningState,
publisherId,
skuMappings,
systemData,
type
FROM azure_stack.azure_stack_hci.offers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND publisher_name = '{{ publisher_name }}' -- required
AND offer_name = '{{ offer_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;