Skip to main content

standby_virtual_machine_pools

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

Overview

Namestandby_virtual_machine_pools
TypeResource
Idazure.standby_pools.standby_virtual_machine_pools

Fields

NameDatatypeDescription
attached_virtual_machine_scale_set_idtextfield from the properties object
elasticity_profiletextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
standbyVirtualMachinePoolNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
virtual_machine_statetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, standbyVirtualMachinePoolName, subscriptionIdGet a StandbyVirtualMachinePoolResource
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList StandbyVirtualMachinePoolResource resources by resource group
list_by_subscriptionSELECTsubscriptionIdList StandbyVirtualMachinePoolResource resources by subscription ID
create_or_updateINSERTresourceGroupName, standbyVirtualMachinePoolName, subscriptionIdCreate a StandbyVirtualMachinePoolResource
deleteDELETEresourceGroupName, standbyVirtualMachinePoolName, subscriptionIdDelete a StandbyVirtualMachinePoolResource
updateUPDATEresourceGroupName, standbyVirtualMachinePoolName, subscriptionIdUpdate a StandbyVirtualMachinePoolResource

SELECT examples

List StandbyVirtualMachinePoolResource resources by subscription ID

SELECT
attached_virtual_machine_scale_set_id,
elasticity_profile,
location,
provisioning_state,
resourceGroupName,
standbyVirtualMachinePoolName,
subscriptionId,
tags,
virtual_machine_state
FROM azure.standby_pools.vw_standby_virtual_machine_pools
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new standby_virtual_machine_pools resource.

/*+ create */
INSERT INTO azure.standby_pools.standby_virtual_machine_pools (
resourceGroupName,
standbyVirtualMachinePoolName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ standbyVirtualMachinePoolName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a standby_virtual_machine_pools resource.

/*+ update */
UPDATE azure.standby_pools.standby_virtual_machine_pools
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND standbyVirtualMachinePoolName = '{{ standbyVirtualMachinePoolName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified standby_virtual_machine_pools resource.

/*+ delete */
DELETE FROM azure.standby_pools.standby_virtual_machine_pools
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND standbyVirtualMachinePoolName = '{{ standbyVirtualMachinePoolName }}'
AND subscriptionId = '{{ subscriptionId }}';