Skip to main content

vm_extensions

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

Overview

Namevm_extensions
TypeResource
Idazure_stack.compute_admin.vm_extensions

Fields

NameDatatypeDescription
idtextID of the resource.
nametextName of the resource.
compute_roletextfield from the properties object
is_system_extensiontextfield from the properties object
locationtextLocation of the resource.
provisioning_statetextfield from the properties object
publishertextfield from the properties object
source_blobtextfield from the properties object
subscriptionIdtextfield from the properties object
support_multiple_extensionstextfield from the properties object
typetextType of Resource.
versiontextfield from the properties object
vm_os_typetextfield from the properties object
vm_scale_set_enabledtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocation, publisher, subscriptionId, type, versionReturns requested Virtual Machine Extension Image matching publisher, type, version.
listSELECTlocation, subscriptionIdList of all Virtual Machine Extension Images for the current location are returned.
createINSERTlocation, publisher, subscriptionId, type, versionCreate a Virtual Machine Extension Image with publisher, version.
deleteDELETElocation, publisher, subscriptionId, type, versionDeletes specified Virtual Machine Extension Image.

SELECT examples

List of all Virtual Machine Extension Images for the current location are returned.

SELECT
id,
name,
compute_role,
is_system_extension,
location,
provisioning_state,
publisher,
source_blob,
subscriptionId,
support_multiple_extensions,
type,
version,
vm_os_type,
vm_scale_set_enabled
FROM azure_stack.compute_admin.vw_vm_extensions
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified vm_extensions resource.

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