Skip to main content

virtual_machine_scale_set_extensions

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

Overview

Namevirtual_machine_scale_set_extensions
TypeResource
Idazure.compute.virtual_machine_scale_set_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
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
vmScaleSetNametextfield from the properties object
vmssExtensionNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, vmScaleSetName, vmssExtensionNameThe operation to get the extension.
listSELECTresourceGroupName, subscriptionId, vmScaleSetNameGets a list of all extensions in a VM scale set.
create_or_updateINSERTresourceGroupName, subscriptionId, vmScaleSetName, vmssExtensionNameThe operation to create or update an extension.
deleteDELETEresourceGroupName, subscriptionId, vmScaleSetName, vmssExtensionNameThe operation to delete the extension.
updateUPDATEresourceGroupName, subscriptionId, vmScaleSetName, vmssExtensionNameThe operation to update an extension.

SELECT examples

Gets a list of all extensions in a VM scale set.

SELECT
id,
name,
auto_upgrade_minor_version,
enable_automatic_upgrade,
force_update_tag,
protected_settings,
protected_settings_from_key_vault,
provision_after_extensions,
provisioning_state,
publisher,
resourceGroupName,
settings,
subscriptionId,
suppress_failures,
type,
type_handler_version,
vmScaleSetName,
vmssExtensionName
FROM azure.compute.vw_virtual_machine_scale_set_extensions
WHERE 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_extensions resource.

/*+ create */
INSERT INTO azure.compute.virtual_machine_scale_set_extensions (
resourceGroupName,
subscriptionId,
vmScaleSetName,
vmssExtensionName,
name,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vmScaleSetName }}',
'{{ vmssExtensionName }}',
'{{ name }}',
'{{ properties }}'
;

UPDATE example

Updates a virtual_machine_scale_set_extensions resource.

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

DELETE example

Deletes the specified virtual_machine_scale_set_extensions resource.

/*+ delete */
DELETE FROM azure.compute.virtual_machine_scale_set_extensions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmScaleSetName = '{{ vmScaleSetName }}'
AND vmssExtensionName = '{{ vmssExtensionName }}';