Skip to main content

soft_deleted_resource

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

Overview

Namesoft_deleted_resource
TypeResource
Idazure.compute.soft_deleted_resource

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.
locationstringThe geo-location where the resource lives. Required.
resourceArmIdstringarm id of the soft-deleted resource.
softDeletedArtifactTypestringartifact type of the soft-deleted resource. "Images" (Images)
softDeletedTimestringThe timestamp for when the resource is soft-deleted. In dateTime offset format.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
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
list_by_artifact_nameselectresource_group_name, gallery_name, artifact_type, artifact_name, subscription_idList soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image.

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
artifact_namestringThe artifact name to be listed. If artifact type is Images, then the artifact name should be the gallery image name. Required.
artifact_typestringThe type of the artifact to be listed, such as gallery image version. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

List soft-deleted resources of an artifact in the gallery, such as soft-deleted gallery image version of an image.

SELECT
id,
name,
location,
resourceArmId,
softDeletedArtifactType,
softDeletedTime,
systemData,
tags,
type
FROM azure.compute.soft_deleted_resource
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND gallery_name = '{{ gallery_name }}' -- required
AND artifact_type = '{{ artifact_type }}' -- required
AND artifact_name = '{{ artifact_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;