virtual_machine_scale_set_vm_extensions
Creates, updates, deletes, gets or lists a virtual_machine_scale_set_vm_extensions resource.
Overview
| Name | virtual_machine_scale_set_vm_extensions |
| Type | Resource |
| Id | azure.compute.virtual_machine_scale_set_vm_extensions |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Resource Id. |
name | string | Resource name. |
autoUpgradeMinorVersion | boolean | Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. |
enableAutomaticUpgrade | boolean | Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. |
forceUpdateTag | string | How the extension handler should be forced to update even if the extension configuration has not changed. |
instanceView | object | The virtual machine extension instance view. |
location | string | The location of the extension. |
protectedSettings | object | The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. |
protectedSettingsFromKeyVault | object | The extensions protected settings that are passed by reference, and consumed from key vault. |
provisionAfterExtensions | array | Collection of extension names after which this extension needs to be provisioned. |
provisioningState | string | The provisioning state, which only appears in the response. |
publisher | string | The name of the extension handler publisher. |
settings | object | Json formatted public settings for the extension. |
suppressFailures | boolean | Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. |
type | string | Resource type. |
typeHandlerVersion | string | Specifies the version of the script handler. |
| Name | Datatype | Description |
|---|---|---|
id | string | Resource Id. |
name | string | Resource name. |
autoUpgradeMinorVersion | boolean | Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. |
enableAutomaticUpgrade | boolean | Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. |
forceUpdateTag | string | How the extension handler should be forced to update even if the extension configuration has not changed. |
instanceView | object | The virtual machine extension instance view. |
location | string | The location of the extension. |
protectedSettings | object | The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. |
protectedSettingsFromKeyVault | object | The extensions protected settings that are passed by reference, and consumed from key vault. |
provisionAfterExtensions | array | Collection of extension names after which this extension needs to be provisioned. |
provisioningState | string | The provisioning state, which only appears in the response. |
publisher | string | The name of the extension handler publisher. |
settings | object | Json formatted public settings for the extension. |
suppressFailures | boolean | Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false. |
type | string | Resource type. |
typeHandlerVersion | string | Specifies the version of the script handler. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, vm_scale_set_name, instance_id, vm_extension_name, subscription_id | $expand | The operation to get the VMSS VM extension. |
list | select | resource_group_name, vm_scale_set_name, instance_id, subscription_id | $expand | The operation to get all extensions of an instance in Virtual Machine Scaleset. |
create_or_update | insert | resource_group_name, vm_scale_set_name, instance_id, vm_extension_name, subscription_id | The operation to create or update the VMSS VM extension. | |
update | update | resource_group_name, vm_scale_set_name, instance_id, vm_extension_name, subscription_id | The operation to update the VMSS VM extension. | |
create_or_update | replace | resource_group_name, vm_scale_set_name, instance_id, vm_extension_name, subscription_id | The operation to create or update the VMSS VM extension. | |
delete | delete | resource_group_name, vm_scale_set_name, instance_id, vm_extension_name, subscription_id | The operation to delete the VMSS VM extension. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
instance_id | string | The instance ID of the virtual machine. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
vm_extension_name | string | The name of the virtual machine extension. Required. |
vm_scale_set_name | string | The name of the VM scale set. Required. |
$expand | string | The expand expression to apply on the operation. Default value is None. |
SELECT examples
- get
- list
The operation to get the VMSS VM extension.
SELECT
id,
name,
autoUpgradeMinorVersion,
enableAutomaticUpgrade,
forceUpdateTag,
instanceView,
location,
protectedSettings,
protectedSettingsFromKeyVault,
provisionAfterExtensions,
provisioningState,
publisher,
settings,
suppressFailures,
type,
typeHandlerVersion
FROM azure.compute.virtual_machine_scale_set_vm_extensions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vm_scale_set_name = '{{ vm_scale_set_name }}' -- required
AND instance_id = '{{ instance_id }}' -- required
AND vm_extension_name = '{{ vm_extension_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;
The operation to get all extensions of an instance in Virtual Machine Scaleset.
SELECT
id,
name,
autoUpgradeMinorVersion,
enableAutomaticUpgrade,
forceUpdateTag,
instanceView,
location,
protectedSettings,
protectedSettingsFromKeyVault,
provisionAfterExtensions,
provisioningState,
publisher,
settings,
suppressFailures,
type,
typeHandlerVersion
FROM azure.compute.virtual_machine_scale_set_vm_extensions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND vm_scale_set_name = '{{ vm_scale_set_name }}' -- required
AND instance_id = '{{ instance_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;
INSERT examples
- create_or_update
- Manifest
The operation to create or update the VMSS VM extension.
INSERT INTO azure.compute.virtual_machine_scale_set_vm_extensions (
properties,
location,
resource_group_name,
vm_scale_set_name,
instance_id,
vm_extension_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ resource_group_name }}',
'{{ vm_scale_set_name }}',
'{{ instance_id }}',
'{{ vm_extension_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
type
;
# Description fields are for documentation purposes
- name: virtual_machine_scale_set_vm_extensions
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the virtual_machine_scale_set_vm_extensions resource.
- name: vm_scale_set_name
value: "{{ vm_scale_set_name }}"
description: Required parameter for the virtual_machine_scale_set_vm_extensions resource.
- name: instance_id
value: "{{ instance_id }}"
description: Required parameter for the virtual_machine_scale_set_vm_extensions resource.
- name: vm_extension_name
value: "{{ vm_extension_name }}"
description: Required parameter for the virtual_machine_scale_set_vm_extensions resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the virtual_machine_scale_set_vm_extensions resource.
- name: properties
description: |
Describes the properties of a Virtual Machine Extension.
value:
forceUpdateTag: "{{ forceUpdateTag }}"
publisher: "{{ publisher }}"
type: "{{ type }}"
typeHandlerVersion: "{{ typeHandlerVersion }}"
autoUpgradeMinorVersion: {{ autoUpgradeMinorVersion }}
enableAutomaticUpgrade: {{ enableAutomaticUpgrade }}
settings: "{{ settings }}"
protectedSettings: "{{ protectedSettings }}"
provisioningState: "{{ provisioningState }}"
instanceView:
name: "{{ name }}"
type: "{{ type }}"
typeHandlerVersion: "{{ typeHandlerVersion }}"
substatuses:
- code: "{{ code }}"
level: "{{ level }}"
displayStatus: "{{ displayStatus }}"
message: "{{ message }}"
time: "{{ time }}"
statuses:
- code: "{{ code }}"
level: "{{ level }}"
displayStatus: "{{ displayStatus }}"
message: "{{ message }}"
time: "{{ time }}"
suppressFailures: {{ suppressFailures }}
protectedSettingsFromKeyVault:
secretUrl: "{{ secretUrl }}"
sourceVault:
id: "{{ id }}"
provisionAfterExtensions:
- "{{ provisionAfterExtensions }}"
- name: location
value: "{{ location }}"
description: |
The location of the extension.
UPDATE examples
- update
The operation to update the VMSS VM extension.
UPDATE azure.compute.virtual_machine_scale_set_vm_extensions
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND vm_scale_set_name = '{{ vm_scale_set_name }}' --required
AND instance_id = '{{ instance_id }}' --required
AND vm_extension_name = '{{ vm_extension_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
type;
REPLACE examples
- create_or_update
The operation to create or update the VMSS VM extension.
REPLACE azure.compute.virtual_machine_scale_set_vm_extensions
SET
properties = '{{ properties }}',
location = '{{ location }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND vm_scale_set_name = '{{ vm_scale_set_name }}' --required
AND instance_id = '{{ instance_id }}' --required
AND vm_extension_name = '{{ vm_extension_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
type;
DELETE examples
- delete
The operation to delete the VMSS VM extension.
DELETE FROM azure.compute.virtual_machine_scale_set_vm_extensions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND vm_scale_set_name = '{{ vm_scale_set_name }}' --required
AND instance_id = '{{ instance_id }}' --required
AND vm_extension_name = '{{ vm_extension_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;