virtual_machine_extensions
Creates, updates, deletes, gets or lists a virtual_machine_extensions
resource.
Overview
Name | virtual_machine_extensions |
Type | Resource |
Id | azure.compute.virtual_machine_extensions |
Fields
- vw_virtual_machine_extensions
- virtual_machine_extensions
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
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 |
instance_view | text | field from the properties object |
location | text | Resource location |
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 |
tags | text | Resource tags |
type | text | Resource type |
type_handler_version | text | field from the properties object |
vmExtensionName | text | field from the properties object |
vmName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
location | string | Resource location |
properties | object | Describes the properties of a Virtual Machine Extension. |
tags | object | Resource tags |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, subscriptionId, vmExtensionName, vmName | The operation to get the extension. |
list | SELECT | resourceGroupName, subscriptionId, vmName | The operation to get all extensions of a Virtual Machine. |
create_or_update | INSERT | resourceGroupName, subscriptionId, vmExtensionName, vmName | The operation to create or update the extension. |
delete | DELETE | resourceGroupName, subscriptionId, vmExtensionName, vmName | The operation to delete the extension. |
update | UPDATE | resourceGroupName, subscriptionId, vmExtensionName, vmName | The operation to update the extension. |
SELECT
examples
The operation to get all extensions of a Virtual Machine.
- vw_virtual_machine_extensions
- virtual_machine_extensions
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 }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.compute.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.compute.virtual_machine_extensions (
resourceGroupName,
subscriptionId,
vmExtensionName,
vmName,
properties,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vmExtensionName }}',
'{{ vmName }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- 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: instanceView
value:
- name: name
value: string
- name: type
value: string
- name: typeHandlerVersion
value: string
- name: substatuses
value:
- - name: code
value: string
- name: level
value: string
- name: displayStatus
value: string
- name: message
value: string
- name: time
value: string
- name: statuses
value:
- - name: code
value: string
- name: level
value: string
- name: displayStatus
value: string
- name: message
value: string
- name: time
value: string
- name: suppressFailures
value: boolean
- name: protectedSettingsFromKeyVault
value:
- name: secretUrl
value: string
- name: sourceVault
value:
- name: id
value: string
- name: provisionAfterExtensions
value:
- string
- name: location
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: tags
value: object
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 }}';