Set static UUID to the clean image (#8564)

This commit is contained in:
Alexey-Ayupov
2023-10-16 15:18:23 +02:00
committed by GitHub
parent de1f529882
commit 2051564688
2 changed files with 21 additions and 1 deletions
+16
View File
@@ -233,3 +233,19 @@ function Wait-AnkaVMSSHService {
exit 1
}
}
function Set-AnkaVMUuid {
param(
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $VMName,
[Parameter(Mandatory)]
[ValidateNotNullOrEmpty()]
[string] $Uuid
)
$command = "anka modify $VMName set custom-variable hw.uuid $Uuid"
Write-Host "`t[*] Setting $VMName uuid to $Uuid"
Invoke-AnkaCommand -Command $command
}