Skip to main content

standby_virtual_machines

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

Overview

Namestandby_virtual_machines
TypeResource
Idazure.standby_pool.standby_virtual_machines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
provisioningStatestringThe status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", and "Deleting". (Succeeded, Failed, Canceled, Deleting)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
virtualMachineResourceIdstringResource id of the virtual machine. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, standby_virtual_machine_pool_name, standby_virtual_machine_name, subscription_idGet a StandbyVirtualMachineResource.
list_by_standby_virtual_machine_pool_resourceselectresource_group_name, standby_virtual_machine_pool_name, subscription_idList StandbyVirtualMachineResource resources by StandbyVirtualMachinePoolResource.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
standby_virtual_machine_namestringName of the standby virtual machine. Required.
standby_virtual_machine_pool_namestringName of the standby virtual machine pool. Required.
subscription_idstring

SELECT examples

Get a StandbyVirtualMachineResource.

SELECT
id,
name,
provisioningState,
systemData,
type,
virtualMachineResourceId
FROM azure.standby_pool.standby_virtual_machines
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND standby_virtual_machine_pool_name = '{{ standby_virtual_machine_pool_name }}' -- required
AND standby_virtual_machine_name = '{{ standby_virtual_machine_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;