Skip to main content

backups

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

Overview

Namebackups
TypeResource
Idazure_stack.backup_admin.backups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringURI of the resource.
namestringName of the resource.
locationstringLocation of the resource.
propertiesobjectProperties for a backup.
tagsobjectList of key value pairs.
typestringType of resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, location, backupReturns a backup from a location based on name.
listselectsubscriptionId, resourceGroupName, location$top, $skipReturns a list of backups from a location.
restoreexecsubscriptionId, location, resourceGroupName, backupRestore a backup.

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
backupstringName of the backup.
locationstringName of the backup location.
resourceGroupNamestringName of the resource group.
subscriptionIdstringSubscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
$skipstringOData skip parameter.
$topstringOData top parameter.

SELECT examples

Returns a backup from a location based on name.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_stack.backup_admin.backups
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND location = '{{ location }}' -- required
AND backup = '{{ backup }}' -- required
;

Lifecycle Methods

Restore a backup.

EXEC azure_stack.backup_admin.backups.restore 
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@backup='{{ backup }}' --required
@@json=
'{
"roleName": "{{ roleName }}",
"decryptionCertBase64": "{{ decryptionCertBase64 }}",
"decryptionCertPassword": "{{ decryptionCertPassword }}"
}'
;