Skip to main content

deleted_accounts

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

Overview

Namedeleted_accounts
TypeResource
Idazure.storage.deleted_accounts

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.
creationTimestringCreation time of the deleted account.
deletionTimestringDeletion time of the deleted account.
locationstringLocation of the deleted account.
restoreReferencestringCan be used to attempt recovering this deleted account via PutStorageAccount API.
storageAccountResourceIdstringFull resource id of the original storage account.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdeleted_account_name, location, subscription_idGet properties of specified deleted account resource.
listselectsubscription_idLists deleted accounts under the subscription.

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
deleted_account_namestringName of the deleted storage account. Required.
locationstringThe name of the Azure region. Required.
subscription_idstring

SELECT examples

Get properties of specified deleted account resource.

SELECT
id,
name,
creationTime,
deletionTime,
location,
restoreReference,
storageAccountResourceId,
systemData,
type
FROM azure.storage.deleted_accounts
WHERE deleted_account_name = '{{ deleted_account_name }}' -- required
AND location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;