gallery_image_versions
Creates, updates, deletes, gets or lists a gallery_image_versions
resource.
Overview
Name | gallery_image_versions |
Type | Resource |
Id | azure.compute.gallery_image_versions |
Fields
- vw_gallery_image_versions
- gallery_image_versions
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
galleryImageName | text | field from the properties object |
galleryImageVersionName | text | field from the properties object |
galleryName | text | field from the properties object |
location | text | Resource location |
provisioning_state | text | field from the properties object |
publishing_profile | text | field from the properties object |
replication_status | text | field from the properties object |
resourceGroupName | text | field from the properties object |
safety_profile | text | field from the properties object |
security_profile | text | field from the properties object |
storage_profile | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags |
type | text | Resource type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
location | string | Resource location |
properties | object | Describes the properties of a gallery image version. |
tags | object | Resource tags |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | galleryImageName, galleryImageVersionName, galleryName, resourceGroupName, subscriptionId | Retrieves information about a gallery image version. |
list_by_gallery_image | SELECT | galleryImageName, galleryName, resourceGroupName, subscriptionId | List gallery image versions in a gallery image definition. |
create_or_update | INSERT | galleryImageName, galleryImageVersionName, galleryName, resourceGroupName, subscriptionId | Create or update a gallery image version. |
delete | DELETE | galleryImageName, galleryImageVersionName, galleryName, resourceGroupName, subscriptionId | Delete a gallery image version. |
update | UPDATE | galleryImageName, galleryImageVersionName, galleryName, resourceGroupName, subscriptionId | Update a gallery image version. |
SELECT
examples
List gallery image versions in a gallery image definition.
- vw_gallery_image_versions
- gallery_image_versions
SELECT
id,
name,
galleryImageName,
galleryImageVersionName,
galleryName,
location,
provisioning_state,
publishing_profile,
replication_status,
resourceGroupName,
safety_profile,
security_profile,
storage_profile,
subscriptionId,
tags,
type
FROM azure.compute.vw_gallery_image_versions
WHERE galleryImageName = '{{ galleryImageName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.compute.gallery_image_versions
WHERE galleryImageName = '{{ galleryImageName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new gallery_image_versions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.compute.gallery_image_versions (
galleryImageName,
galleryImageVersionName,
galleryName,
resourceGroupName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ galleryImageName }}',
'{{ galleryImageVersionName }}',
'{{ galleryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: publishingProfile
value:
- name: targetRegions
value:
- - name: name
value: string
- name: regionalReplicaCount
value: integer
- name: storageAccountType
value: string
- name: encryption
value:
- name: osDiskImage
value:
- name: securityProfile
value:
- name: confidentialVMEncryptionType
value: string
- name: secureVMDiskEncryptionSetId
value: string
- name: diskEncryptionSetId
value: string
- name: dataDiskImages
value:
- - name: lun
value: integer
- name: diskEncryptionSetId
value: string
- name: excludeFromLatest
value: boolean
- name: replicaCount
value: integer
- name: excludeFromLatest
value: boolean
- name: publishedDate
value: string
- name: endOfLifeDate
value: string
- name: storageAccountType
value: string
- name: replicationMode
value: string
- name: targetExtendedLocations
value:
- - name: name
value: string
- name: extendedLocation
value:
- name: name
value: string
- name: type
value: []
- name: extendedLocationReplicaCount
value: integer
- name: storageAccountType
value: string
- name: provisioningState
value: []
- name: storageProfile
value:
- name: source
value:
- name: communityGalleryImageId
value: string
- name: virtualMachineId
value: string
- name: id
value: string
- name: osDiskImage
value:
- name: sizeInGB
value: integer
- name: hostCaching
value: string
- name: source
value:
- name: uri
value: string
- name: storageAccountId
value: string
- name: id
value: string
- name: dataDiskImages
value:
- - name: lun
value: integer
- name: sizeInGB
value: integer
- name: hostCaching
value: string
- name: safetyProfile
value:
- name: reportedForPolicyViolation
value: boolean
- name: policyViolations
value:
- - name: category
value: string
- name: details
value: string
- name: allowDeletionOfReplicatedLocations
value: boolean
- name: replicationStatus
value:
- name: aggregatedState
value: string
- name: summary
value:
- - name: region
value: string
- name: state
value: string
- name: details
value: string
- name: progress
value: integer
- name: securityProfile
value:
- name: uefiSettings
value:
- name: signatureTemplateNames
value:
- []
- name: additionalSignatures
value:
- name: pk
value:
- name: type
value: string
- name: value
value:
- string
- name: kek
value:
- - name: type
value: string
- name: value
value:
- string
- name: db
value:
- - name: type
value: string
- name: value
value:
- string
- name: dbx
value:
- - name: type
value: string
- name: value
value:
- string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
UPDATE
example
Updates a gallery_image_versions
resource.
/*+ update */
UPDATE azure.compute.gallery_image_versions
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
galleryImageName = '{{ galleryImageName }}'
AND galleryImageVersionName = '{{ galleryImageVersionName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified gallery_image_versions
resource.
/*+ delete */
DELETE FROM azure.compute.gallery_image_versions
WHERE galleryImageName = '{{ galleryImageName }}'
AND galleryImageVersionName = '{{ galleryImageVersionName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';