Name Type BackupInstanceName
---- ---- ------------------
sarath-disk3-sarath-disk3-af697a80-e2bc-49f1-af6c-22f6c4d68405
The First command gets all the policies in a given vault.
The second command stores azure disk's resource id in $AzureDiskId
variable.
The third command returns a backup instance resource for Azure Disk.
The fourth command sets the snapshot resource group field.
This object can now be used to configure backup for the given disk.
Example 2: Initialize Backup instance object for AzureKubernetesService
Name BackupInstanceName
---- ------------------
aks-cluster-aks-cluster-ed68435e-069t-4b4a-9d84-d0c194800fc2
The First command gets the AzureKubernetesService policy in a given vault.
The second, third command initializes the AKS cluster and snapshot resource group Id.
The fourth command backup configuration object needed for AzureKubernetesService.
The fifth command initializes the client object for backup instance.
This object can now be used to configure backup using New-AzDataProtectionBackupInstance after all necessary permissions are assigned with Set-AzDataProtectionMSIPermission command.
Example 3: Configure protection for AzureDatabaseForPGFlexServer
Name BackupInstanceName
---- ------------------
test-pgflex-test-pgflex-ed68435e-069t-4b4a-9d84-d0c194800fc2
The first command gets the backup vault.
The second command get the AzureDatabaseForPGFlexServer policy.
The third command datasource ARM Id.
The fourth command initializes the backup instance.
Similarly use datasourcetype AzureDatabaseForMySQL to initialize backup instance for AzureDatabaseForMySQL.
Example 4: Initialize Backup instance object for Azure Blob Storage
Name BackupInstanceName
---- ------------------
blobbackuptest-blobbackuptest-ed68435e-069t-4b4a-9d84-d0c194800fc2
The first command specifies the Blob storage account id.
The second command gets the backup vault.
The third command gets a Blob policy within the vault.
The fourth command initializes the backup configuration.
The fifth command initializes the backup instance.ype AzureDatabaseForMySQL to initialize backup instance for AzureDatabaseForMySQL.
Parameters
-BackupConfiguration
Backup configuration for backup.
Use this parameter to configure protection for AzureKubernetesService,AzureBlob.
To construct, see NOTES section for BACKUPCONFIGURATION properties and create a hash table.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.