Skip to main content

virtual_machine_extensions

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

Overview

Namevirtual_machine_extensions
TypeResource
Idazure.compute.virtual_machine_extensions

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
auto_upgrade_minor_versiontextfield from the properties object
enable_automatic_upgradetextfield from the properties object
force_update_tagtextfield from the properties object
instance_viewtextfield from the properties object
locationtextResource location
protected_settingstextfield from the properties object
protected_settings_from_key_vaulttextfield from the properties object
provision_after_extensionstextfield from the properties object
provisioning_statetextfield from the properties object
publishertextfield from the properties object
resourceGroupNametextfield from the properties object
settingstextfield from the properties object
subscriptionIdtextfield from the properties object
suppress_failurestextfield from the properties object
tagstextResource tags
typetextResource type
type_handler_versiontextfield from the properties object
vmExtensionNametextfield from the properties object
vmNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vmExtensionName, vmNameThe operation to get the extension.
listSELECTresourceGroupName, subscriptionId, vmNameThe operation to get all extensions of a Virtual Machine.
create_or_updateINSERTresourceGroupName, subscriptionId, vmExtensionName, vmNameThe operation to create or update the extension.
deleteDELETEresourceGroupName, subscriptionId, vmExtensionName, vmNameThe operation to delete the extension.
updateUPDATEresourceGroupName, subscriptionId, vmExtensionName, vmNameThe operation to update the extension.

SELECT examples

The operation to get all extensions of a Virtual Machine.

SELECT
id,
name,
auto_upgrade_minor_version,
enable_automatic_upgrade,
force_update_tag,
instance_view,
location,
protected_settings,
protected_settings_from_key_vault,
provision_after_extensions,
provisioning_state,
publisher,
resourceGroupName,
settings,
subscriptionId,
suppress_failures,
tags,
type,
type_handler_version,
vmExtensionName,
vmName
FROM azure.compute.vw_virtual_machine_extensions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmName = '{{ vmName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.compute.virtual_machine_extensions (
resourceGroupName,
subscriptionId,
vmExtensionName,
vmName,
properties,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vmExtensionName }}',
'{{ vmName }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a virtual_machine_extensions resource.

/*+ update */
UPDATE azure.compute.virtual_machine_extensions
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmExtensionName = '{{ vmExtensionName }}'
AND vmName = '{{ vmName }}';

DELETE example

Deletes the specified virtual_machine_extensions resource.

/*+ delete */
DELETE FROM azure.compute.virtual_machine_extensions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmExtensionName = '{{ vmExtensionName }}'
AND vmName = '{{ vmName }}';