Skip to main content

vm_extensions

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

Overview

Namevm_extensions
TypeResource
Idazure_stack.compute_admin.vm_extensions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the resource.
namestringName of the resource.
locationstringLocation of the resource.
propertiesobjectInner properties of a Virtual Machine Extension Image.
typestringType of Resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, location, publisher, type, versionReturns requested Virtual Machine Extension Image matching publisher, type, version.
listselectsubscriptionId, locationList of all Virtual Machine Extension Images for the current location are returned.
createinsertsubscriptionId, location, publisher, type, versionCreate a Virtual Machine Extension Image with publisher, version.
deletedeletesubscriptionId, location, publisher, type, versionDeletes specified Virtual Machine Extension Image.

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.

NameDatatypeDescription
locationstringThe name of Azure region.
publisherstringName of the publisher.
subscriptionIdstringThe ID of the target subscription.
typestringType of extension.
versionstringThe version of the resource.

SELECT examples

Returns requested Virtual Machine Extension Image matching publisher, type, version.

SELECT
id,
name,
location,
properties,
type
FROM azure_stack.compute_admin.vm_extensions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
AND publisher = '{{ publisher }}' -- required
AND type = '{{ type }}' -- required
AND version = '{{ version }}' -- required
;

INSERT examples

Create a Virtual Machine Extension Image with publisher, version.

INSERT INTO azure_stack.compute_admin.vm_extensions (
data__properties,
subscriptionId,
location,
publisher,
type,
version
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ publisher }}',
'{{ type }}',
'{{ version }}'
RETURNING
id,
name,
location,
properties,
type
;

DELETE examples

Deletes specified Virtual Machine Extension Image.

DELETE FROM azure_stack.compute_admin.vm_extensions
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND location = '{{ location }}' --required
AND publisher = '{{ publisher }}' --required
AND type = '{{ type }}' --required
AND version = '{{ version }}' --required
;