9780137593132
9780137593132
Avinash Valiramani
$bkpvaultstorage = New-AzDataProtectionBackupVaultStorageSettingObject -Type GeoRedundant
-DataStoreType VaultStore
New-AzDataProtectionBackupVault -ResourceGroupName $resourcegroup -vaultName $vaultname
-Location $region -storagesetting $bkpvaultstorage
#Enable Backup
$bkp = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureBlob -DatasourceLo-
cation $region -PolicyId $BkpPolicy[0].Id -DatasourceId $storageaccount.Id
New-AzDataProtectionBackupInstance -ResourceGroupName $resourcegroup -VaultName $Vault-
Name -BackupInstance $bkp
#Create Backup json – Replace all the resource groups and resource values in the command
before proceeding
az dataprotection backup-instance initialize –datasource-type AzureBlob -location
$region –policy-id “/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/
RG-01/providers/Microsoft.DataProtection/backupVaults/BackupVault01/backupPolicies/Default-
BlobBackupPolicy” –datasource-id “/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx/resourcegroups/
RG-01/providers/Microsoft.Storage/storageAccounts/mbspblobstorage01” > backup_instance.
json
#Enable Backup
az dataprotection backup-instance create –resource-group $resourceGroup –vault-name
$vaultname –backup-instance backup_instance.json
Blob snapshots
A blob snapshot is a point-in-time read-only copy of a blob that you create and store in the
hot or cool tier. The snapshot is identical to the base blob, except it is a point-in-time copy,
allowing you to access that version of the blob. A snapshot copies all the system properties and
NOTE Snapshots of blobs in the archive tier are not supported at this time.
2. To view the snapshot (and any other snapshots associated with the same blob), select
the file and click View Snapshots (refer to Figure 1-64).
The snapshot is listed in the Snapshots tab. (See Figure 1-65.)
3. Optionally, to change the snapshot’s access tier, select the snapshot in the Snapshots
tab and click Change Tier. Then open the Access Tier drop-down list in the Change
Tier dialog box to choose a different tier and click Save. (See Figure 1-66.)
Disaster recovery
Disaster recovery is a critical component of any application architecture. The higher the critical-
ity of the application, the more redundancy is required to ensure minimal to no downtime or
data loss.
While setting up the data redundancy for the storage account and taking regular backups
does ensure that you are able to recover from an outage, you must take into account other
application components in your disaster recovery planning, too. This includes components
such as the web application firewall or application gateway, web applications or application
servers, connected API services, and so on. This ensures that in a disaster scenario, once the
blob storage is online, all other related components can also be recovered and can read the
storage with minimal interruption and data loss.
We’ve covered earlier how storage redundancy options such as GRS, GZRS, RA-GRS, and
RA-GZRS can replicate your data asynchronously to a secondary Azure region.
One caveat to note: If the primary region becomes unavailable, you can set up your applica-
tions to automatically switch to the secondary region to perform read operations in case you
are using either RA-GRS or RA-GZRS storage accounts. This will ensure that the application is
online in some form while a full storage failover is performed, either by you or by Microsoft.