Fixed an issue where automation was failing to set preserve tag.

This commit is contained in:
Shital Savekar 2017-04-14 14:01:36 +05:30
Родитель fa55c32f73
Коммит 6dfe4d5d50
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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
{