Skip to main content

avs_vm_volumes

Creates, updates, deletes, gets or lists an avs_vm_volumes resource.

Overview

Nameavs_vm_volumes
TypeResource
Idazure_isv.purestorageblock.avs_vm_volumes

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.
avsobjectAVS-specific volume information.
createdTimestampstringVolume creation date, as an RFC 3339 timestamp.
displayNamestringHuman-readable name of the volume.
provisionedSizeintegerCurrently provisioned size of the volume, in bytes.
provisioningStatestringProvisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
softDeletionobjectVolume's soft-deletion state. Required.
spaceobjectStorage space usage.
storagePoolInternalIdstringPure Storage's internal ID for the storage pool containing the volume.
storagePoolResourceIdstringAzure Resource ID of the storage pool containing this volume.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
volumeInternalIdstringPure Storage's internal ID for the volume.
volumeTypestringSpecify which control plane handles the lifecycle of the volume. "avs" (avs)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, storage_pool_name, avs_vm_id, volume_id, subscription_idGet a volume in an AVS VM.
list_by_avs_vmselectresource_group_name, storage_pool_name, avs_vm_id, subscription_idList volumes in an AVS VM.
updateupdateresource_group_name, storage_pool_name, avs_vm_id, volume_id, subscription_idUpdate a volume in an AVS VM.
deletedeleteresource_group_name, storage_pool_name, avs_vm_id, volume_id, subscription_idDelete a volume in an AVS VM.

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
avs_vm_idstringID of the AVS VM. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
storage_pool_namestringName of the storage pool. Required.
subscription_idstring
volume_idstringID of the volume in the AVS VM. Required.

SELECT examples

Get a volume in an AVS VM.

SELECT
id,
name,
avs,
createdTimestamp,
displayName,
provisionedSize,
provisioningState,
softDeletion,
space,
storagePoolInternalId,
storagePoolResourceId,
systemData,
type,
volumeInternalId,
volumeType
FROM azure_isv.purestorageblock.avs_vm_volumes
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND storage_pool_name = '{{ storage_pool_name }}' -- required
AND avs_vm_id = '{{ avs_vm_id }}' -- required
AND volume_id = '{{ volume_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

UPDATE examples

Update a volume in an AVS VM.

UPDATE azure_isv.purestorageblock.avs_vm_volumes
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND storage_pool_name = '{{ storage_pool_name }}' --required
AND avs_vm_id = '{{ avs_vm_id }}' --required
AND volume_id = '{{ volume_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a volume in an AVS VM.

DELETE FROM azure_isv.purestorageblock.avs_vm_volumes
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND storage_pool_name = '{{ storage_pool_name }}' --required
AND avs_vm_id = '{{ avs_vm_id }}' --required
AND volume_id = '{{ volume_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;