Skip to main content

shared_galleries

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

Overview

Nameshared_galleries
TypeResource
Idazure.compute.shared_galleries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringResource name.
artifactTagsobjectThe artifact tags of a shared gallery resource.
identifierobjectThe identifier information of shared gallery.
locationstringResource location.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, gallery_unique_name, subscription_idGet a shared gallery by subscription id or tenant id.
listselectlocation, subscription_idsharedToList shared galleries by subscription id or tenant id.

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
locationstringThe name of the Azure region. Required.
subscription_idstring
sharedTostringThe query parameter to decide what shared galleries to fetch when doing listing operations. "tenant" Default value is None.

SELECT examples

Get a shared gallery by subscription id or tenant id.

SELECT
name,
artifactTags,
identifier,
location
FROM azure.compute.shared_galleries
WHERE location = '{{ location }}' -- required
AND gallery_unique_name = '{{ gallery_unique_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;