Skip to content

Instantly share code, notes, and snippets.

@evanzhang89
evanzhang89 / GenerateBEKFileForDiskUnlockV2.ps1
Last active September 17, 2021 08:48 — forked from ShridharParameshwarBhat/GenerateBEKFileForDiskUnlock.ps1
This is the script to generate the BEK file for unlocking the encrypted disk
Param(
[Parameter(Mandatory = $true,
HelpMessage="URL of the secret stored in the keyvault")]
[ValidateNotNullOrEmpty()]
[string]$secretUrl,
[Parameter(Mandatory = $true,
HelpMessage="Resource group of keyvault")]
[ValidateNotNullOrEmpty()]
[string]$keyVaultResourceGroup,