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

NameDatatypeDescription
idtextID of the resource.
nametextName of the resource.
data_diskstextfield from the properties object
detailstextfield from the properties object
locationtextLocation of the resource.
offertextfield from the properties object
os_disktextfield from the properties object
provisioning_statetextfield from the properties object
publishertextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
typetextType of Resource.
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocation, offer, publisher, sku, subscriptionId, versionReturns the specific platform image matching publisher, offer, skus and version.
listSELECTlocation, subscriptionIdReturns a list of all platform images.
createINSERTlocation, offer, publisher, sku, subscriptionId, versionCreates a new platform image with given publisher, offer, skus and version.
deleteDELETElocation, offer, publisher, sku, subscriptionId, versionDelete a platform image

SELECT examples

Returns a list of all platform images.

SELECT
id,
name,
data_disks,
details,
location,
offer,
os_disk,
provisioning_state,
publisher,
sku,
subscriptionId,
type,
version
FROM azure_stack.compute_admin.vw_platform_images
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new platform_images resource.

/*+ create */
INSERT INTO azure_stack.compute_admin.platform_images (
location,
offer,
publisher,
sku,
subscriptionId,
version,
properties
)
SELECT
'{{ location }}',
'{{ offer }}',
'{{ publisher }}',
'{{ sku }}',
'{{ subscriptionId }}',
'{{ version }}',
'{{ properties }}'
;

DELETE example

Deletes the specified platform_images resource.

/*+ delete */
DELETE FROM azure_stack.compute_admin.platform_images
WHERE location = '{{ location }}'
AND offer = '{{ offer }}'
AND publisher = '{{ publisher }}'
AND sku = '{{ sku }}'
AND subscriptionId = '{{ subscriptionId }}'
AND version = '{{ version }}';