Skip to main content

backup_resource_storage_configs_non_crr

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

Overview

Namebackup_resource_storage_configs_non_crr
TypeResource
Idazure.recovery_services_backup.backup_resource_storage_configs_non_crr

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.
crossRegionRestoreFlagbooleanOpt in details of Cross Region Restore feature.
dedupStatestringVault Dedup state. Known values are: "Invalid", "Enabled", and "Disabled". (Invalid, Enabled, Disabled)
eTagstringOptional ETag.
locationstringThe geo-location where the resource lives.
storageModelTypestringStorage type. Known values are: "Invalid", "GeoRedundant", "LocallyRedundant", "ZoneRedundant", and "ReadAccessGeoZoneRedundant". (Invalid, GeoRedundant, LocallyRedundant, ZoneRedundant, ReadAccessGeoZoneRedundant)
storageTypestringStorage type. Known values are: "Invalid", "GeoRedundant", "LocallyRedundant", "ZoneRedundant", and "ReadAccessGeoZoneRedundant". (Invalid, GeoRedundant, LocallyRedundant, ZoneRedundant, ReadAccessGeoZoneRedundant)
storageTypeStatestringLocked or Unlocked. Once a machine is registered against a resource, the storageTypeState is always Locked. Known values are: "Invalid", "Locked", and "Unlocked". (Invalid, Locked, Unlocked)
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".
xcoolStatestringVault x-cool state. Known values are: "Invalid", "Enabled", and "Disabled". (Invalid, Enabled, Disabled)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectvault_name, resource_group_name, subscription_idFetches resource storage config.
updateupdatevault_name, resource_group_name, subscription_idUpdates vault storage model type.
patchexecvault_name, resource_group_name, subscription_idUpdates vault storage model type.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
vault_namestringThe name of the VaultResource. Required.

SELECT examples

Fetches resource storage config.

SELECT
id,
name,
crossRegionRestoreFlag,
dedupState,
eTag,
location,
storageModelType,
storageType,
storageTypeState,
systemData,
tags,
type,
xcoolState
FROM azure.recovery_services_backup.backup_resource_storage_configs_non_crr
WHERE vault_name = '{{ vault_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

UPDATE examples

Updates vault storage model type.

UPDATE azure.recovery_services_backup.backup_resource_storage_configs_non_crr
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}',
eTag = '{{ eTag }}'
WHERE
vault_name = '{{ vault_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
eTag,
location,
properties,
systemData,
tags,
type;

Lifecycle Methods

Updates vault storage model type.

EXEC azure.recovery_services_backup.backup_resource_storage_configs_non_crr.patch 
@vault_name='{{ vault_name }}' --required,
@resource_group_name='{{ resource_group_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}",
"tags": "{{ tags }}",
"location": "{{ location }}",
"eTag": "{{ eTag }}"
}'
;