Skip to main content

platform_images

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

Overview

Nameplatform_images
TypeResource
Idazure_stack.compute_admin.platform_images

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the resource.
namestringName of the resource.
locationstringLocation of the resource.
propertiesobjectPlatform image properties.
typestringType of Resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, location, publisher, offer, sku, versionReturns the specific platform image matching publisher, offer, skus and version.
listselectsubscriptionId, locationReturns a list of all platform images.
createinsertsubscriptionId, location, publisher, offer, sku, versionCreates a new platform image with given publisher, offer, skus and version.
deletedeletesubscriptionId, location, publisher, offer, sku, versionDelete a platform image

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 Azure region.
offerstringName of the offer.
publisherstringName of the publisher.
skustringName of the SKU.
subscriptionIdstringThe ID of the target subscription.
versionstringThe version of the resource.

SELECT examples

Returns the specific platform image matching publisher, offer, skus and version.

SELECT
id,
name,
location,
properties,
type
FROM azure_stack.compute_admin.platform_images
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
AND publisher = '{{ publisher }}' -- required
AND offer = '{{ offer }}' -- required
AND sku = '{{ sku }}' -- required
AND version = '{{ version }}' -- required
;

INSERT examples

Creates a new platform image with given publisher, offer, skus and version.

INSERT INTO azure_stack.compute_admin.platform_images (
data__properties,
subscriptionId,
location,
publisher,
offer,
sku,
version
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ publisher }}',
'{{ offer }}',
'{{ sku }}',
'{{ version }}'
RETURNING
id,
name,
location,
properties,
type
;

DELETE examples

Delete a platform image

DELETE FROM azure_stack.compute_admin.platform_images
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND location = '{{ location }}' --required
AND publisher = '{{ publisher }}' --required
AND offer = '{{ offer }}' --required
AND sku = '{{ sku }}' --required
AND version = '{{ version }}' --required
;