vm_extensions
Creates, updates, deletes, gets or lists a vm_extensions
resource.
Overview
Name | vm_extensions |
Type | Resource |
Id | azure_stack.compute_admin.vm_extensions |
Fields
- vw_vm_extensions
- vm_extensions
Name | Datatype | Description |
---|---|---|
id | text | ID of the resource. |
name | text | Name of the resource. |
compute_role | text | field from the properties object |
is_system_extension | text | field from the properties object |
location | text | Location of the resource. |
provisioning_state | text | field from the properties object |
publisher | text | field from the properties object |
source_blob | text | field from the properties object |
subscriptionId | text | field from the properties object |
support_multiple_extensions | text | field from the properties object |
type | text | Type of Resource. |
version | text | field from the properties object |
vm_os_type | text | field from the properties object |
vm_scale_set_enabled | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | ID of the resource. |
name | string | Name of the resource. |
location | string | Location of the resource. |
properties | object | Properties of a Virtual Machine Extension Image. |
type | string | Type of Resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | location, publisher, subscriptionId, type, version | Returns requested Virtual Machine Extension Image matching publisher, type, version. |
list | SELECT | location, subscriptionId | List of all Virtual Machine Extension Images for the current location are returned. |
create | INSERT | location, publisher, subscriptionId, type, version | Create a Virtual Machine Extension Image with publisher, version. |
delete | DELETE | location, publisher, subscriptionId, type, version | Deletes specified Virtual Machine Extension Image. |
SELECT
examples
List of all Virtual Machine Extension Images for the current location are returned.
- vw_vm_extensions
- vm_extensions
SELECT
id,
name,
compute_role,
is_system_extension,
location,
provisioning_state,
publisher,
source_blob,
subscriptionId,
support_multiple_extensions,
type,
version,
vm_os_type,
vm_scale_set_enabled
FROM azure_stack.compute_admin.vw_vm_extensions
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure_stack.compute_admin.vm_extensions
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new vm_extensions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.compute_admin.vm_extensions (
location,
publisher,
subscriptionId,
type,
version,
properties
)
SELECT
'{{ location }}',
'{{ publisher }}',
'{{ subscriptionId }}',
'{{ type }}',
'{{ version }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: vmOsType
value: []
- name: publisher
value: string
- name: computeRole
value: string
- name: vmScaleSetEnabled
value: boolean
- name: supportMultipleExtensions
value: boolean
- name: isSystemExtension
value: boolean
- name: sourceBlob
value:
- name: uri
value: string
- name: provisioningState
value: []
DELETE
example
Deletes the specified vm_extensions
resource.
/*+ delete */
DELETE FROM azure_stack.compute_admin.vm_extensions
WHERE location = '{{ location }}'
AND publisher = '{{ publisher }}'
AND subscriptionId = '{{ subscriptionId }}'
AND type = '{{ type }}'
AND version = '{{ version }}';