Skip to main content

virtual_machine_scale_set_vm_extensions

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

Overview

Namevirtual_machine_scale_set_vm_extensions
TypeResource
Idazure.compute.virtual_machine_scale_set_vm_extensions

Fields

NameDatatypeDescription
idtextResource Id
nametextThe name of the extension.
auto_upgrade_minor_versiontextfield from the properties object
enable_automatic_upgradetextfield from the properties object
force_update_tagtextfield from the properties object
instanceIdtextfield from the properties object
instance_viewtextfield from the properties object
locationtextThe location of the extension.
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
typetextResource type
type_handler_versiontextfield from the properties object
vmExtensionNametextfield from the properties object
vmScaleSetNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstanceId, resourceGroupName, subscriptionId, vmExtensionName, vmScaleSetNameThe operation to get the VMSS VM extension.
listSELECTinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameThe operation to get all extensions of an instance in Virtual Machine Scaleset.
create_or_updateINSERTinstanceId, resourceGroupName, subscriptionId, vmExtensionName, vmScaleSetNameThe operation to create or update the VMSS VM extension.
deleteDELETEinstanceId, resourceGroupName, subscriptionId, vmExtensionName, vmScaleSetNameThe operation to delete the VMSS VM extension.
updateUPDATEinstanceId, resourceGroupName, subscriptionId, vmExtensionName, vmScaleSetNameThe operation to update the VMSS VM extension.

SELECT examples

The operation to get all extensions of an instance in Virtual Machine Scaleset.

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

INSERT example

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

/*+ create */
INSERT INTO azure.compute.virtual_machine_scale_set_vm_extensions (
instanceId,
resourceGroupName,
subscriptionId,
vmExtensionName,
vmScaleSetName,
location,
properties
)
SELECT
'{{ instanceId }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vmExtensionName }}',
'{{ vmScaleSetName }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a virtual_machine_scale_set_vm_extensions resource.

/*+ update */
UPDATE azure.compute.virtual_machine_scale_set_vm_extensions
SET
properties = '{{ properties }}'
WHERE
instanceId = '{{ instanceId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmExtensionName = '{{ vmExtensionName }}'
AND vmScaleSetName = '{{ vmScaleSetName }}';

DELETE example

Deletes the specified virtual_machine_scale_set_vm_extensions resource.

/*+ delete */
DELETE FROM azure.compute.virtual_machine_scale_set_vm_extensions
WHERE instanceId = '{{ instanceId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmExtensionName = '{{ vmExtensionName }}'
AND vmScaleSetName = '{{ vmScaleSetName }}';