-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
The CopyKeys script does not detect a VM with encryption because it checks for the VM encryption extension with a hardcoded name.
Hardcoded extension name:
published-scripts/CopyKeys/CopyKeys.ps1
Line 315 in 0d1520c
static [string] $adeExtensionPrefix = "azurediskencryption"
Check for eligible VM:
published-scripts/CopyKeys/CopyKeys.ps1
Lines 597 to 606 in 0d1520c
foreach ($Item in $VmList) { if (($null -ne $Item.Extensions -and $Item.Extensions.Count -gt 0) -and ($Item.Extensions.Id | ForEach-Object { ` $_.split('/')[-1].tolower().contains( ` [ConstantStrings]::adeExtensionPrefix)}) -contains $true) { $SuppressOutput = $VmListBox.Items.Add($Item.Name) } }
Metadata
Metadata
Assignees
Labels
No labels