From dd201867ca5242f8ee6a9c12c862eb38a299b02e Mon Sep 17 00:00:00 2001 From: Shivangi Date: Mon, 11 May 2020 16:51:30 +0530 Subject: [PATCH] Resolving more comments --- Tasks/AzureFileCopyV4/AzureFileCopy.ps1 | 2 +- Tasks/AzureFileCopyV4/AzureFileCopyRemoteJob.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tasks/AzureFileCopyV4/AzureFileCopy.ps1 b/Tasks/AzureFileCopyV4/AzureFileCopy.ps1 index b54568462111..b14123b6677d 100644 --- a/Tasks/AzureFileCopyV4/AzureFileCopy.ps1 +++ b/Tasks/AzureFileCopyV4/AzureFileCopy.ps1 @@ -118,7 +118,7 @@ try { if([string]::IsNullOrEmpty($containerName) -or ($destination -ne "AzureBlob")) { $containerName = [guid]::NewGuid().ToString() - Write-Verbose "Creating temporary container for uploading files if no input is provided for container name" + Write-Verbose "Container Name input not found. Creating Temporary container for uploading files." Create-AzureContainer -containerName $containerName -storageContext $storageContext -isPremiumStorage $isPremiumStorage } else diff --git a/Tasks/AzureFileCopyV4/AzureFileCopyRemoteJob.ps1 b/Tasks/AzureFileCopyV4/AzureFileCopyRemoteJob.ps1 index db021c669de0..241084fa72a2 100644 --- a/Tasks/AzureFileCopyV4/AzureFileCopyRemoteJob.ps1 +++ b/Tasks/AzureFileCopyV4/AzureFileCopyRemoteJob.ps1 @@ -77,7 +77,7 @@ $AzureFileCopyRemoteJob = { #setting path at machine level so that when user again do copy on VM, there is no need to download the azcopy.exe again [Environment]::SetEnvironmentVariable("Path", $azCopyFolderEnvPath + ';' + $env:Path, [System.EnvironmentVariableTarget]::Machine) - #setting $env:Path to include azcopy.exe path as the above command used to set path at machine level takes some time to update the path environment variable + #setting $env:Path at user level to include azcopy.exe path as the above command used do set the path at machine level and not at user level $env:Path = $azCopyFolderEnvPath + ';' + $env:Path } catch