From 4152a01bd9ffe89df28c5ef337cd74f0af7ba76f Mon Sep 17 00:00:00 2001 From: Shital Savekar Date: Fri, 30 Jun 2017 15:52:32 +0530 Subject: [PATCH] Improved Logging in deployment test. --- .../ICA-DEPLOYMENT-ALL-SIZES-LOOP-TEST.ps1 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/remote-scripts/ICA-DEPLOYMENT-ALL-SIZES-LOOP-TEST.ps1 b/remote-scripts/ICA-DEPLOYMENT-ALL-SIZES-LOOP-TEST.ps1 index 72ceaaa..9bf0b5e 100644 --- a/remote-scripts/ICA-DEPLOYMENT-ALL-SIZES-LOOP-TEST.ps1 +++ b/remote-scripts/ICA-DEPLOYMENT-ALL-SIZES-LOOP-TEST.ps1 @@ -129,6 +129,7 @@ $DeploymentCount = $NumberOfSizes*5 $deployedResourceGroupName = $null $DeploymentStatistics = CreateDeploymentResultObject #Create A VM here and Wait for the VM to come up. + LogMsg "Current Progress : Success : $successCount, Fail : $failCount, Remaining : $($DeploymentCount - $successCount - $failCount)" LogMsg "ATTEMPT : $count/$DeploymentCount : Deploying $($VMSizes[$VMSizeNumber]) VM.." Set-Variable -Name OverrideVMSize -Value $($VMSizes[$VMSizeNumber]) -Scope Global -Force $xmlConfig.config.Azure.Deployment.SingleVM.HostedService.Tag = $($VMSizes[$VMSizeNumber]).Replace("_","-") @@ -152,15 +153,23 @@ $DeploymentCount = $NumberOfSizes*5 { if ( $UseAzureResourceManager ) { + LogMsg "ATTEMPT : $count/$DeploymentCount : Deploying $($VMSizes[$VMSizeNumber]) VM.. SUCCESS" + LogMsg "deployment Time = $($DeploymentStatistics.DeploymentTime)" #Added restart check for the deployment $isRestarted = RestartAllDeployments -allVMData $allVMData if($isRestarted) { + LogMsg "ATTEMPT : $count/$DeploymentCount : Reboot $($VMSizes[$VMSizeNumber]) VM.. SUCCESS" $successCount += 1 - LogMsg "ATTEMPT : $count/$DeploymentCount : Deploying $($VMSizes[$VMSizeNumber]) VM.. SUCCESS" - LogMsg "deployment Time = $($DeploymentStatistics.DeploymentTime)" $deployResult = "PASS" } + else + { + $hash = @{} + $hash.Add($preserveKeyword,"yes") + $hash.Add("testName","$($currentTestData.testName)") + $out = Set-AzureRmResourceGroup -Name $deployedServiceName -Tag $hash + } } else {