Skip to main content

gallery_scripts

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

Overview

Namegallery_scripts
TypeResource
Idazure.compute.gallery_scripts

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.
descriptionstringThe description of this gallery script definition resource. This property is updatable.
endOfLifeDatestring (date-time)The end of life date of the gallery Script Definition. This property can be used for decommissioning purposes. This property is updatable.
eulastringThe Eula agreement (End User License Agreement) for the gallery Script Definition.
locationstringThe geo-location where the resource lives. Required.
privacyStatementUristringThe privacy statement uri.
provisioningStatestringThe provisioning state, which only appears in the response. Known values are: "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". (Creating, Updating, Failed, Succeeded, Deleting, Migrating)
releaseNoteUristringThe release note uri.
supportedOSTypestringThis property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux.. Required. Known values are: "Windows" and "Linux". (Windows, Linux)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
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, gallery_name, gallery_script_name, subscription_idRetrieves information about a gallery script definition.
list_by_galleryselectresource_group_name, gallery_name, subscription_idList gallery Script Definitions in a gallery.
create_or_updateinsertresource_group_name, gallery_name, gallery_script_name, subscription_id, locationCreate or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.
updateupdateresource_group_name, gallery_name, gallery_script_name, subscription_idUpdate a gallery Script Definition.
create_or_updatereplaceresource_group_name, gallery_name, gallery_script_name, subscription_id, locationCreate or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.
deletedeleteresource_group_name, gallery_name, gallery_script_name, subscription_idDelete a gallery Script Definition.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Retrieves information about a gallery script definition.

SELECT
id,
name,
description,
endOfLifeDate,
eula,
location,
privacyStatementUri,
provisioningState,
releaseNoteUri,
supportedOSType,
systemData,
tags,
type
FROM azure.compute.gallery_scripts
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND gallery_name = '{{ gallery_name }}' -- required
AND gallery_script_name = '{{ gallery_script_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.

INSERT INTO azure.compute.gallery_scripts (
tags,
location,
properties,
resource_group_name,
gallery_name,
gallery_script_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ gallery_name }}',
'{{ gallery_script_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a gallery Script Definition.

UPDATE azure.compute.gallery_scripts
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND gallery_name = '{{ gallery_name }}' --required
AND gallery_script_name = '{{ gallery_script_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create or update a Gallery Script Definition. Gallery scripts allow the storage, sharing and reuse of common scripts.

REPLACE azure.compute.gallery_scripts
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND gallery_name = '{{ gallery_name }}' --required
AND gallery_script_name = '{{ gallery_script_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a gallery Script Definition.

DELETE FROM azure.compute.gallery_scripts
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND gallery_name = '{{ gallery_name }}' --required
AND gallery_script_name = '{{ gallery_script_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;