Skip to content

rishjai-msft/published-scripts

 
 

Repository files navigation

published-scripts

CopyKeys

This script copies the disk encryption keys and key encryption keys for Azure Disk Encryption (ADE) enabled VMs from the source region to disaster recovery (DR) region. Azure Site Recovery requires the keys to enable replication for these VMs to another region. The script outputs a file containing all the results that can be later used during protection.

Parameters Description
FilePath Optional parameter defining the location of the output file.
ForceDebug Optional parameter forcing debug output without any prompts.

CopyKeys-Az

This script copies the disk encryption keys and key encryption keys for Azure Disk Encryption (ADE) enabled VMs from the source region to disaster recovery (DR) region. Azure Site Recovery requires the keys to enable replication for these VMs to another region. The script outputs a file containing all the results that can be later used during protection.

Updates

  • Uses the latest Azure Powershell Az modules.
  • Uses the updated Authentication mechanism as described here
Parameters Description
FilePath Optional parameter defining the location of the output file.
ForceDebug Optional parameter forcing debug output without any prompts.

CopyKeysSinglePass-AzureRM

This script copies the disk encryption keys and key encryption keys for Azure Disk Encryption (ADE) enabled VMs from the source region to disaster recovery (DR) region. Azure Site Recovery requires the keys to enable replication for these VMs to another region. The script outputs a file containing all the results that can be later used during protection. The script copies keys and secrets for each disk - data and Os. This is because single pass encryption happens at disk level.

Updates

  • Added logic to handle single pass VMs as well.
Parameters Description
FilePath Optional parameter defining the location of the output file.
ForceDebug Optional parameter forcing debug output without any prompts.

CopyKeysSinglePass-Az

This script copies the disk encryption keys and key encryption keys for Azure Disk Encryption (ADE) enabled VMs from the source region to disaster recovery (DR) region. Azure Site Recovery requires the keys to enable replication for these VMs to another region. The script outputs a file containing all the results that can be later used during protection. The script copies keys and secrets for each disk - data and Os. This is because single pass encryption happens at disk level.

Updates

  • Added logic to handle single pass VMs as well.
  • Uses the latest Azure Powershell Az modules.
  • Added restriction - Az.KeyVault >= 2.0.0
Parameters Description
FilePath Optional parameter defining the location of the output file.
ForceDebug Optional parameter forcing debug output without any prompts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%