virtual_machine_scale_set_extensions
Creates, updates, deletes, gets or lists a virtual_machine_scale_set_extensions
resource.
Overview
Name | virtual_machine_scale_set_extensions |
Type | Resource |
Id | azure.compute.virtual_machine_scale_set_extensions |
Fields
- vw_virtual_machine_scale_set_extensions
- virtual_machine_scale_set_extensions
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | The name of the extension. |
auto_upgrade_minor_version | text | field from the properties object |
enable_automatic_upgrade | text | field from the properties object |
force_update_tag | text | field from the properties object |
protected_settings | text | field from the properties object |
protected_settings_from_key_vault | text | field from the properties object |
provision_after_extensions | text | field from the properties object |
provisioning_state | text | field from the properties object |
publisher | text | field from the properties object |
resourceGroupName | text | field from the properties object |
settings | text | field from the properties object |
subscriptionId | text | field from the properties object |
suppress_failures | text | field from the properties object |
type | text | Resource type |
type_handler_version | text | field from the properties object |
vmScaleSetName | text | field from the properties object |
vmssExtensionName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | The name of the extension. |
properties | object | Describes the properties of a Virtual Machine Scale Set Extension. |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, subscriptionId, vmScaleSetName, vmssExtensionName | The operation to get the extension. |
list | SELECT | resourceGroupName, subscriptionId, vmScaleSetName | Gets a list of all extensions in a VM scale set. |
create_or_update | INSERT | resourceGroupName, subscriptionId, vmScaleSetName, vmssExtensionName | The operation to create or update an extension. |
delete | DELETE | resourceGroupName, subscriptionId, vmScaleSetName, vmssExtensionName | The operation to delete the extension. |
update | UPDATE | resourceGroupName, subscriptionId, vmScaleSetName, vmssExtensionName | The operation to update an extension. |
SELECT
examples
Gets a list of all extensions in a VM scale set.
- vw_virtual_machine_scale_set_extensions
- virtual_machine_scale_set_extensions
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 }}';
SELECT
id,
name,
properties,
type
FROM azure.compute.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.compute.virtual_machine_scale_set_extensions (
resourceGroupName,
subscriptionId,
vmScaleSetName,
vmssExtensionName,
name,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vmScaleSetName }}',
'{{ vmssExtensionName }}',
'{{ name }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: forceUpdateTag
value: string
- name: publisher
value: string
- name: type
value: string
- name: typeHandlerVersion
value: string
- name: autoUpgradeMinorVersion
value: boolean
- name: enableAutomaticUpgrade
value: boolean
- name: settings
value: object
- name: protectedSettings
value: object
- name: provisioningState
value: string
- name: provisionAfterExtensions
value:
- string
- name: suppressFailures
value: boolean
- name: protectedSettingsFromKeyVault
value:
- name: secretUrl
value: string
- name: sourceVault
value:
- name: id
value: string
- name: id
value: string
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 }}';