Skip to main content

disk_pools

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

Overview

Namedisk_pools
TypeResource
Idazure.storage_pool.disk_pools

Fields

The following fields are returned by SELECT queries:

Operation completed successfully; retrieved Disk pool.

NameDatatypeDescription
locationstringThe geo-location where the resource lives.
managedBystringAzure resource id. Indicates if this resource is managed by another Azure resource.
managedByExtendedarrayList of Azure resource ids that manage this resource.
propertiesobjectProperties of Disk Pool.
skuobjectDetermines the SKU of the Disk pool
systemDataobjectResource metadata required by ARM RPC
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, diskPoolNameGet a Disk pool.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGets a list of DiskPools in a resource group.
list_by_subscriptionselectsubscriptionIdGets a list of Disk Pools in a subscription
create_or_updateinsertsubscriptionId, resourceGroupName, diskPoolName, data__properties, data__location, data__skuCreate or Update Disk pool. This create or update operation can take 15 minutes to complete. This is expected service behavior.
updateupdatesubscriptionId, resourceGroupName, diskPoolName, data__propertiesUpdate a Disk pool.
deletedeletesubscriptionId, resourceGroupName, diskPoolNameDelete a Disk pool; attached disks are not affected. This delete operation can take 10 minutes to complete. This is expected service behavior.
startexecsubscriptionId, resourceGroupName, diskPoolNameThe operation to start a Disk Pool. This start operation can take 10 minutes to complete. This is expected service behavior.
deallocateexecsubscriptionId, resourceGroupName, diskPoolNameShuts down the Disk Pool and releases the compute resources. You are not billed for the compute resources that this Disk Pool uses. This operation can take 10 minutes to complete. This is expected service behavior.
upgradeexecsubscriptionId, resourceGroupName, diskPoolNameUpgrade replaces the underlying virtual machine hosts one at a time. This operation can take 10-15 minutes to complete. This is expected service behavior.

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
diskPoolNamestringThe name of the Disk Pool.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Get a Disk pool.

SELECT
location,
managedBy,
managedByExtended,
properties,
sku,
systemData,
tags
FROM azure.storage_pool.disk_pools
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND diskPoolName = '{{ diskPoolName }}' -- required
;

INSERT examples

Create or Update Disk pool. This create or update operation can take 15 minutes to complete. This is expected service behavior.

INSERT INTO azure.storage_pool.disk_pools (
data__sku,
data__properties,
data__tags,
data__location,
data__managedBy,
data__managedByExtended,
subscriptionId,
resourceGroupName,
diskPoolName
)
SELECT
'{{ sku }}' /* required */,
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}' /* required */,
'{{ managedBy }}',
'{{ managedByExtended }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ diskPoolName }}'
RETURNING
location,
managedBy,
managedByExtended,
properties,
sku,
systemData,
tags
;

UPDATE examples

Update a Disk pool.

UPDATE azure.storage_pool.disk_pools
SET
data__managedBy = '{{ managedBy }}',
data__managedByExtended = '{{ managedByExtended }}',
data__properties = '{{ properties }}',
data__sku = '{{ sku }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND diskPoolName = '{{ diskPoolName }}' --required
AND data__properties = '{{ properties }}' --required
RETURNING
location,
managedBy,
managedByExtended,
properties,
sku,
systemData,
tags;

DELETE examples

Delete a Disk pool; attached disks are not affected. This delete operation can take 10 minutes to complete. This is expected service behavior.

DELETE FROM azure.storage_pool.disk_pools
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND diskPoolName = '{{ diskPoolName }}' --required
;

Lifecycle Methods

The operation to start a Disk Pool. This start operation can take 10 minutes to complete. This is expected service behavior.

EXEC azure.storage_pool.disk_pools.start 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@diskPoolName='{{ diskPoolName }}' --required
;