Fixed an issue where automation was failing to set preserve tag.
This commit is contained in:
Родитель
fa55c32f73
Коммит
6dfe4d5d50
|
@ -1221,17 +1221,17 @@ Function GetAndCheckKernelLogs($allDeployedVMs, $status, $vmUser, $vmPassword)
|
|||
{
|
||||
if ( $UseAzureResourceManager )
|
||||
{
|
||||
LogMsg "Preserving the Resource Group(s) $group"
|
||||
LogMsg "Preserving the Resource Group(s) $($VM.ResourceGroup)"
|
||||
LogMsg "Setting tags : $preserveKeyword = yes; testName = $testName"
|
||||
$hash = @{}
|
||||
$hash.Add($preserveKeyword,"yes")
|
||||
$hash.Add("testName","$testName")
|
||||
$out = Set-AzureRmResourceGroup -Name $group -Tag $hash
|
||||
$out = Set-AzureRmResourceGroup -Name $($VM.ResourceGroup) -Tag $hash
|
||||
LogMsg "Setting tags : calltrace = yes; testName = $testName"
|
||||
$hash = @{}
|
||||
$hash.Add("calltrace","yes")
|
||||
$hash.Add("testName","$testName")
|
||||
$out = Set-AzureRmResourceGroup -Name $group -Tag $hash
|
||||
$out = Set-AzureRmResourceGroup -Name $($VM.ResourceGroup) -Tag $hash
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче