Skip to main content

snapshot

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

Overview

Namesnapshot
TypeResource
Idazure_extras.app_compliance_automation.snapshot

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}. # pylint: disable=line-too-long
namestringThe name of the resource.
complianceResultsarrayList of compliance results.
createdAtstring (date-time)The timestamp of resource creation (UTC).
provisioningStatestringAzure lifecycle management. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Deleting", "Fixing", "Verifying", and "Updating".
reportPropertiesobjectThe report essential info.
reportSystemDataobjectMetadata pertaining to creation and last modification of the resource.
snapshotNamestringSnapshot name.
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
getselectreport_name, snapshot_nameGet the AppComplianceAutomation snapshot and its properties.
listselectreport_name$skipToken, $top, $select, $filter, $orderby, offerGuid, reportCreatorTenantIdGet the AppComplianceAutomation snapshot list.
downloadexecreport_name, snapshot_name, downloadTypeDownload compliance needs from snapshot, like: Compliance Report, Resource List.

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
report_namestringReport Name. Required.
snapshot_namestringSnapshot Name. Required.
$filterstringThe filter to apply on the operation. Default value is None.
$orderbystringOData order by query option. Default value is None.
$selectstringOData Select statement. Limits the properties on each entry to just those requested, e.g. ?$select=reportName,id. Default value is None.
$skipTokenstringSkip over when retrieving results. Default value is None.
$topintegerNumber of elements to return when retrieving results. Default value is None.
offerGuidstringThe offerGuid which mapping to the reports. Default value is None.
reportCreatorTenantIdstringThe tenant id of the report creator. Default value is None.

SELECT examples

Get the AppComplianceAutomation snapshot and its properties.

SELECT
id,
name,
complianceResults,
createdAt,
provisioningState,
reportProperties,
reportSystemData,
snapshotName,
systemData,
type
FROM azure_extras.app_compliance_automation.snapshot
WHERE report_name = '{{ report_name }}' -- required
AND snapshot_name = '{{ snapshot_name }}' -- required
;

Lifecycle Methods

Download compliance needs from snapshot, like: Compliance Report, Resource List.

EXEC azure_extras.app_compliance_automation.snapshot.download 
@report_name='{{ report_name }}' --required,
@snapshot_name='{{ snapshot_name }}' --required
@@json=
'{
"reportCreatorTenantId": "{{ reportCreatorTenantId }}",
"downloadType": "{{ downloadType }}",
"offerGuid": "{{ offerGuid }}"
}'
;