From 2ba6fe108f9d41969c41bebca9680efd35586831 Mon Sep 17 00:00:00 2001 From: Arjun Gupta Date: Fri, 5 Jun 2020 10:24:02 +0530 Subject: [PATCH 01/10] update azure file copy to use latest available azure rm module on hosted agent environment --- Tasks/AzureFileCopyV2/AzureFileCopy.ps1 | 4 + Tasks/AzureFileCopyV2/PsModuleUtility.ps1 | 118 ++++++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 Tasks/AzureFileCopyV2/PsModuleUtility.ps1 diff --git a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 index b5d6f7cab62f..ee67248da8ad 100644 --- a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 +++ b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 @@ -63,6 +63,10 @@ $azCopyLocation = [System.IO.Path]::GetDirectoryName($azCopyExeLocation) # Import RemoteDeployer Import-Module $PSScriptRoot\ps_modules\RemoteDeployer +. "$PSScriptRoot\PsModuleUtility.ps1" +$endpointAuthenticationScheme = Get-EndpointAuthenticationScheme +Update-PSModulePathForHostedAgentWithLatestModule -AuthenticationScheme $endpointAuthenticationScheme + # Initialize Azure. Import-Module $PSScriptRoot\ps_modules\VstsAzureHelpers_ Initialize-Azure diff --git a/Tasks/AzureFileCopyV2/PsModuleUtility.ps1 b/Tasks/AzureFileCopyV2/PsModuleUtility.ps1 new file mode 100644 index 000000000000..07e38f1aa0ac --- /dev/null +++ b/Tasks/AzureFileCopyV2/PsModuleUtility.ps1 @@ -0,0 +1,118 @@ +function Update-PSModulePathForHostedAgentWithLatestModule +{ + [CmdletBinding()] + param( + [string] $AuthenticationScheme + ) + + Trace-VstsEnteringInvocation $MyInvocation + try + { + if ($AuthenticationScheme -eq "ServicePrincipal" -or + $AuthenticationScheme -eq "ManagedServiceIdentity" -or + $AuthenticationScheme -eq "") + { + Write-Verbose "Updating PSModulePath with latest AzureRM module." + $latestAzureRmModulePath = Get-LatestAzureRmModulePath + + if (![string]::IsNullOrEmpty()) + { + $env:PSModulePath = "$latestAzureRmModulePath;$env:PSModulePath" + } + else + { + Write-Verbose "Latest AzureRM module path is null or empty." + } + } + + } + finally + { + Write-Verbose "The updated value of the PSModulePath is: $($env:PSModulePath)" + Trace-VstsLeavingInvocation $MyInvocation + } +} + +function Get-LatestAzureRmModulePath +{ + [CmdletBinding()] + param() + + Trace-VstsEnteringInvocation $MyInvocation + $hostedAgentAzureModulesPath = Join-Path -Path $env:SystemDrive -ChildPath "modules" + $latestAzureRmModulePath = "" + try + { + if ($(Test-Path $hostedAgentAzureModulesPath)) + { + $regexToMatch = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList "^azurerm_[0-9]+\.[0-9]+\.[0-9]+$" + $regexToExtract = New-Object -TypeName System.Text.RegularExpressions.Regex -ArgumentList "[0-9]+\.[0-9]+\.[0-9]+$" + $maxVersion = [version] "0.0.0" + + $moduleFolders = Get-ChildItem -Directory -Path $hostedAgentAzureModulesPath | Where-Object { $regexToMatch.IsMatch($_.Name) } + + foreach ($moduleFolder in $moduleFolders) + { + $moduleVersion = [version] $($regexToExtract.Match($moduleFolder.Name).Groups[0].Value) + + if ($moduleVersion -gt $maxVersion) + { + $modulePath = [System.IO.Path]::Combine($moduleFolder.FullName,"AzureRM\$moduleVersion\AzureRM.psm1") + + if (Test-Path -LiteralPath $modulePath -PathType Leaf) + { + $maxVersion = $moduleVersion + $latestAzureRmModulePath = $moduleFolder.FullName + } + else + { + Write-Verbose "A folder matching the module folder pattern was found at $($moduleFolder.FullName) but didn't contain a valid module file" + } + } + } + } + else + { + Write-Verbose "Hosted Agent Azure modules path '$hostedAgentAzureModulesPath' does not exist." + } + + return $latestAzureRmModulePath + } + catch + { + Write-Verbose "Get-LatestAzureRmModulePath: Exception: $($_.Exception.Message)" + $latestAzureRmModulePath = "" + } + finally + { + Trace-VstsLeavingInvocation $MyInvocation + } +} + +function Get-EndpointAuthenticationScheme +{ + [CmdletBinding()] + param() + + Trace-VstsEnteringInvocation $MyInvocation + $authenticationScheme = "" + + try + { + $serviceNameInput = Get-VstsInput -Name "ConnectedServiceNameSelector" -Default "ConnectedServiceNameARM" + $serviceName = Get-VstsInput -Name $serviceNameInput + + $endpoint = Get-VstsEndpoint -Name $serviceName -Require + $authenticationScheme = $endpoint.Auth.Scheme + } + catch + { + Write-Verbose "Get-EndpointAuthenticationScheme. Exception $($_.Exception.Message)" + } + finally + { + Trace-VstsLeavingInvocation $MyInvocation + } + + return $authenticationScheme +} \ No newline at end of file From a5f6d8e2f1b76cc1ecb368b94157be9bedce620b Mon Sep 17 00:00:00 2001 From: Arjun Gupta Date: Fri, 5 Jun 2020 11:12:48 +0530 Subject: [PATCH 02/10] update task version --- .../Strings/resources.resjson/en-US/resources.resjson | 2 +- Tasks/AzureFileCopyV2/task.json | 2 +- Tasks/AzureFileCopyV2/task.loc.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tasks/AzureFileCopyV2/Strings/resources.resjson/en-US/resources.resjson b/Tasks/AzureFileCopyV2/Strings/resources.resjson/en-US/resources.resjson index 020f37815e44..b7d27a0a27f7 100644 --- a/Tasks/AzureFileCopyV2/Strings/resources.resjson/en-US/resources.resjson +++ b/Tasks/AzureFileCopyV2/Strings/resources.resjson/en-US/resources.resjson @@ -1,6 +1,6 @@ { "loc.friendlyName": "Azure file copy", - "loc.helpMarkDown": "[More Information](https://aka.ms/azurefilecopyreadme)", + "loc.helpMarkDown": "[Learn more about this task](https://aka.ms/azurefilecopyreadme)", "loc.description": "Copy files to Azure Blob Storage or virtual machines", "loc.instanceNameFormat": "$(Destination) File Copy", "loc.releaseNotes": "What's new in Version 2.0:
   Using newer version of AzCopy.", diff --git a/Tasks/AzureFileCopyV2/task.json b/Tasks/AzureFileCopyV2/task.json index a8c33a1baeb1..b03dcc19d76c 100644 --- a/Tasks/AzureFileCopyV2/task.json +++ b/Tasks/AzureFileCopyV2/task.json @@ -14,7 +14,7 @@ "version": { "Major": 2, "Minor": 154, - "Patch": 2 + "Patch": 3 }, "demands": [ "azureps" diff --git a/Tasks/AzureFileCopyV2/task.loc.json b/Tasks/AzureFileCopyV2/task.loc.json index 52a679cb0dbc..c1bb36483288 100644 --- a/Tasks/AzureFileCopyV2/task.loc.json +++ b/Tasks/AzureFileCopyV2/task.loc.json @@ -14,7 +14,7 @@ "version": { "Major": 2, "Minor": 154, - "Patch": 2 + "Patch": 3 }, "demands": [ "azureps" @@ -369,4 +369,4 @@ "AFC_UninstallWinRMCustomScriptExtension": "ms-resource:loc.messages.AFC_UninstallWinRMCustomScriptExtension", "ExpiredServicePrincipal": "ms-resource:loc.messages.ExpiredServicePrincipal" } -} +} \ No newline at end of file From 0fcc34e1b18c312eff444123539790e02a737271 Mon Sep 17 00:00:00 2001 From: Arjun Gupta Date: Fri, 5 Jun 2020 11:45:48 +0530 Subject: [PATCH 03/10] check for null for latestazurermmodulepath --- Tasks/AzureFileCopyV2/PsModuleUtility.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tasks/AzureFileCopyV2/PsModuleUtility.ps1 b/Tasks/AzureFileCopyV2/PsModuleUtility.ps1 index 07e38f1aa0ac..8ece131ef7c5 100644 --- a/Tasks/AzureFileCopyV2/PsModuleUtility.ps1 +++ b/Tasks/AzureFileCopyV2/PsModuleUtility.ps1 @@ -15,7 +15,7 @@ function Update-PSModulePathForHostedAgentWithLatestModule Write-Verbose "Updating PSModulePath with latest AzureRM module." $latestAzureRmModulePath = Get-LatestAzureRmModulePath - if (![string]::IsNullOrEmpty()) + if (![string]::IsNullOrEmpty($latestAzureRmModulePath)) { $env:PSModulePath = "$latestAzureRmModulePath;$env:PSModulePath" } From aca7a8e00cab10a2e9c097973862de4e22e22938 Mon Sep 17 00:00:00 2001 From: Arjun Gupta Date: Fri, 5 Jun 2020 12:11:48 +0530 Subject: [PATCH 04/10] move psmoduleutility to common. afcv2 and afcv3 --- Tasks/AzureFileCopyV2/AzureFileCopy.ps1 | 6 ++---- Tasks/AzureFileCopyV3/AzureFileCopy.ps1 | 2 ++ Tasks/AzureFileCopyV3/task.json | 2 +- Tasks/AzureFileCopyV3/task.loc.json | 2 +- .../VstsAzureHelpers_}/PsModuleUtility.ps1 | 0 Tasks/Common/VstsAzureHelpers_/VstsAzureHelpers_.psm1 | 4 ++++ 6 files changed, 10 insertions(+), 6 deletions(-) rename Tasks/{AzureFileCopyV2 => Common/VstsAzureHelpers_}/PsModuleUtility.ps1 (100%) diff --git a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 index ee67248da8ad..f84c32281f7e 100644 --- a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 +++ b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 @@ -63,12 +63,10 @@ $azCopyLocation = [System.IO.Path]::GetDirectoryName($azCopyExeLocation) # Import RemoteDeployer Import-Module $PSScriptRoot\ps_modules\RemoteDeployer -. "$PSScriptRoot\PsModuleUtility.ps1" -$endpointAuthenticationScheme = Get-EndpointAuthenticationScheme -Update-PSModulePathForHostedAgentWithLatestModule -AuthenticationScheme $endpointAuthenticationScheme - # Initialize Azure. Import-Module $PSScriptRoot\ps_modules\VstsAzureHelpers_ +$endpointAuthenticationScheme = Get-EndpointAuthenticationScheme +Update-PSModulePathForHostedAgentWithLatestModule -AuthenticationScheme $endpointAuthenticationScheme Initialize-Azure # Import the loc strings. diff --git a/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 b/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 index 36648698655f..40cfc843699b 100644 --- a/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 +++ b/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 @@ -68,6 +68,8 @@ if (Get-Module Az.Accounts -ListAvailable){ Initialize-AzModule -Endpoint $endpoint } else{ + $endpointAuthenticationScheme = Get-EndpointAuthenticationScheme + Update-PSModulePathForHostedAgentWithLatestModule -AuthenticationScheme $endpointAuthenticationScheme Initialize-AzureRMModule -Endpoint $endpoint } diff --git a/Tasks/AzureFileCopyV3/task.json b/Tasks/AzureFileCopyV3/task.json index 2841741187ac..d4af4ec3774b 100644 --- a/Tasks/AzureFileCopyV3/task.json +++ b/Tasks/AzureFileCopyV3/task.json @@ -14,7 +14,7 @@ "version": { "Major": 3, "Minor": 154, - "Patch": 2 + "Patch": 3 }, "preview": true, "demands": [ diff --git a/Tasks/AzureFileCopyV3/task.loc.json b/Tasks/AzureFileCopyV3/task.loc.json index 965649f5bb80..161c63acc19e 100644 --- a/Tasks/AzureFileCopyV3/task.loc.json +++ b/Tasks/AzureFileCopyV3/task.loc.json @@ -14,7 +14,7 @@ "version": { "Major": 3, "Minor": 154, - "Patch": 2 + "Patch": 3 }, "preview": true, "demands": [ diff --git a/Tasks/AzureFileCopyV2/PsModuleUtility.ps1 b/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 similarity index 100% rename from Tasks/AzureFileCopyV2/PsModuleUtility.ps1 rename to Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 diff --git a/Tasks/Common/VstsAzureHelpers_/VstsAzureHelpers_.psm1 b/Tasks/Common/VstsAzureHelpers_/VstsAzureHelpers_.psm1 index 3eae036ee3e9..92b463a7184d 100644 --- a/Tasks/Common/VstsAzureHelpers_/VstsAzureHelpers_.psm1 +++ b/Tasks/Common/VstsAzureHelpers_/VstsAzureHelpers_.psm1 @@ -21,6 +21,7 @@ Add-Tls12InSession . $PSScriptRoot/ImportFunctions.ps1 . $PSScriptRoot/InitializeAzureRMFunctions.ps1 . $PSScriptRoot/InitializeAzModuleFunctions.ps1 +. $PSScriptRoot/PsModuleUtility.ps1 # This is the only public function. function Initialize-Azure { @@ -73,3 +74,6 @@ Export-ModuleMember -Function Remove-EndpointSecrets Export-ModuleMember -Function Initialize-AzureRMModule Export-ModuleMember -Function Initialize-AzModule Export-ModuleMember -Function Disconnect-AzureAndClearContext +Export-ModuleMember -Function Update-PSModulePathForHostedAgentWithLatestModule +Export-ModuleMember -Function Get-EndpointAuthenticationScheme + From c687ef6fc884255297ca339b9ab2dd343a297dae Mon Sep 17 00:00:00 2001 From: Arjun Gupta Date: Fri, 5 Jun 2020 12:20:34 +0530 Subject: [PATCH 05/10] refactor out get-endpointauthenticationscheme function --- Tasks/AzureFileCopyV2/AzureFileCopy.ps1 | 1 + Tasks/AzureFileCopyV2/EndpointUtility.ps1 | 27 ++++++++++++++++++ Tasks/AzureFileCopyV3/AzureFileCopy.ps1 | 3 +- .../VstsAzureHelpers_/PsModuleUtility.ps1 | 28 ------------------- .../VstsAzureHelpers_/VstsAzureHelpers_.psm1 | 1 - 5 files changed, 29 insertions(+), 31 deletions(-) create mode 100644 Tasks/AzureFileCopyV2/EndpointUtility.ps1 diff --git a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 index f84c32281f7e..113bd215c00d 100644 --- a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 +++ b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 @@ -62,6 +62,7 @@ $azCopyLocation = [System.IO.Path]::GetDirectoryName($azCopyExeLocation) # Import RemoteDeployer Import-Module $PSScriptRoot\ps_modules\RemoteDeployer +. "$PSScriptRoot\EndpointUtility.ps1" # Initialize Azure. Import-Module $PSScriptRoot\ps_modules\VstsAzureHelpers_ diff --git a/Tasks/AzureFileCopyV2/EndpointUtility.ps1 b/Tasks/AzureFileCopyV2/EndpointUtility.ps1 new file mode 100644 index 000000000000..bc09bc9e45dd --- /dev/null +++ b/Tasks/AzureFileCopyV2/EndpointUtility.ps1 @@ -0,0 +1,27 @@ +function Get-EndpointAuthenticationScheme +{ + [CmdletBinding()] + param() + + Trace-VstsEnteringInvocation $MyInvocation + $authenticationScheme = "" + + try + { + $serviceNameInput = Get-VstsInput -Name "ConnectedServiceNameSelector" -Default "ConnectedServiceNameARM" + $serviceName = Get-VstsInput -Name $serviceNameInput + + $endpoint = Get-VstsEndpoint -Name $serviceName -Require + $authenticationScheme = $endpoint.Auth.Scheme + } + catch + { + Write-Verbose "Get-EndpointAuthenticationScheme. Exception $($_.Exception.Message)" + } + finally + { + Trace-VstsLeavingInvocation $MyInvocation + } + + return $authenticationScheme +} \ No newline at end of file diff --git a/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 b/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 index 40cfc843699b..771736e3d661 100644 --- a/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 +++ b/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 @@ -68,8 +68,7 @@ if (Get-Module Az.Accounts -ListAvailable){ Initialize-AzModule -Endpoint $endpoint } else{ - $endpointAuthenticationScheme = Get-EndpointAuthenticationScheme - Update-PSModulePathForHostedAgentWithLatestModule -AuthenticationScheme $endpointAuthenticationScheme + Update-PSModulePathForHostedAgentWithLatestModule -AuthenticationScheme "ServicePrincipal" Initialize-AzureRMModule -Endpoint $endpoint } diff --git a/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 b/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 index 8ece131ef7c5..604120b06d53 100644 --- a/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 +++ b/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 @@ -87,32 +87,4 @@ function Get-LatestAzureRmModulePath { Trace-VstsLeavingInvocation $MyInvocation } -} - -function Get-EndpointAuthenticationScheme -{ - [CmdletBinding()] - param() - - Trace-VstsEnteringInvocation $MyInvocation - $authenticationScheme = "" - - try - { - $serviceNameInput = Get-VstsInput -Name "ConnectedServiceNameSelector" -Default "ConnectedServiceNameARM" - $serviceName = Get-VstsInput -Name $serviceNameInput - - $endpoint = Get-VstsEndpoint -Name $serviceName -Require - $authenticationScheme = $endpoint.Auth.Scheme - } - catch - { - Write-Verbose "Get-EndpointAuthenticationScheme. Exception $($_.Exception.Message)" - } - finally - { - Trace-VstsLeavingInvocation $MyInvocation - } - - return $authenticationScheme } \ No newline at end of file diff --git a/Tasks/Common/VstsAzureHelpers_/VstsAzureHelpers_.psm1 b/Tasks/Common/VstsAzureHelpers_/VstsAzureHelpers_.psm1 index 92b463a7184d..9db66d73278f 100644 --- a/Tasks/Common/VstsAzureHelpers_/VstsAzureHelpers_.psm1 +++ b/Tasks/Common/VstsAzureHelpers_/VstsAzureHelpers_.psm1 @@ -75,5 +75,4 @@ Export-ModuleMember -Function Initialize-AzureRMModule Export-ModuleMember -Function Initialize-AzModule Export-ModuleMember -Function Disconnect-AzureAndClearContext Export-ModuleMember -Function Update-PSModulePathForHostedAgentWithLatestModule -Export-ModuleMember -Function Get-EndpointAuthenticationScheme From 4c28e572987fb4c334ee84069249d892a9fb7144 Mon Sep 17 00:00:00 2001 From: Arjun Gupta Date: Fri, 5 Jun 2020 16:13:29 +0530 Subject: [PATCH 06/10] use endpoint.type instead of authentication scheme to check whether or not to update env:psmodulepath --- Tasks/AzureFileCopyV2/AzureFileCopy.ps1 | 4 ++-- Tasks/AzureFileCopyV3/AzureFileCopy.ps1 | 2 +- Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 | 6 ++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 index 113bd215c00d..be4fdc716bc9 100644 --- a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 +++ b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 @@ -66,8 +66,8 @@ Import-Module $PSScriptRoot\ps_modules\RemoteDeployer # Initialize Azure. Import-Module $PSScriptRoot\ps_modules\VstsAzureHelpers_ -$endpointAuthenticationScheme = Get-EndpointAuthenticationScheme -Update-PSModulePathForHostedAgentWithLatestModule -AuthenticationScheme $endpointAuthenticationScheme +$endpoint = Get-Endpoint -connectedServiceName $connectedServiceName +Update-PSModulePathForHostedAgentWithLatestModule -Endpoint $endpoint Initialize-Azure # Import the loc strings. diff --git a/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 b/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 index 771736e3d661..9d87b31d69ff 100644 --- a/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 +++ b/Tasks/AzureFileCopyV3/AzureFileCopy.ps1 @@ -68,7 +68,7 @@ if (Get-Module Az.Accounts -ListAvailable){ Initialize-AzModule -Endpoint $endpoint } else{ - Update-PSModulePathForHostedAgentWithLatestModule -AuthenticationScheme "ServicePrincipal" + Update-PSModulePathForHostedAgentWithLatestModule -Endpoint $endpoint Initialize-AzureRMModule -Endpoint $endpoint } diff --git a/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 b/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 index 604120b06d53..050912946d63 100644 --- a/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 +++ b/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 @@ -2,15 +2,13 @@ function Update-PSModulePathForHostedAgentWithLatestModule { [CmdletBinding()] param( - [string] $AuthenticationScheme + [object] $Endpoint ) Trace-VstsEnteringInvocation $MyInvocation try { - if ($AuthenticationScheme -eq "ServicePrincipal" -or - $AuthenticationScheme -eq "ManagedServiceIdentity" -or - $AuthenticationScheme -eq "") + if ($Endpoint.Type -eq "AzureRM") { Write-Verbose "Updating PSModulePath with latest AzureRM module." $latestAzureRmModulePath = Get-LatestAzureRmModulePath From 043d38884810fbadde052a6e6daba63c10bfc1d0 Mon Sep 17 00:00:00 2001 From: Arjun Gupta Date: Mon, 8 Jun 2020 11:02:51 +0530 Subject: [PATCH 07/10] update task version of tasks using common modules dependency --- Tasks/AzureCloudPowerShellDeploymentV1/task.json | 2 +- Tasks/AzureCloudPowerShellDeploymentV1/task.loc.json | 2 +- Tasks/AzureFileCopyV4/task.json | 2 +- Tasks/AzureFileCopyV4/task.loc.json | 2 +- Tasks/AzurePowerShellV2/task.json | 2 +- Tasks/AzurePowerShellV2/task.loc.json | 2 +- Tasks/AzurePowerShellV3/task.json | 2 +- Tasks/AzurePowerShellV3/task.loc.json | 2 +- Tasks/AzurePowerShellV4/task.json | 2 +- Tasks/AzurePowerShellV4/task.loc.json | 2 +- Tasks/AzurePowerShellV5/task.json | 2 +- Tasks/AzurePowerShellV5/task.loc.json | 2 +- Tasks/SqlAzureDacpacDeploymentV1/task.json | 2 +- Tasks/SqlAzureDacpacDeploymentV1/task.loc.json | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Tasks/AzureCloudPowerShellDeploymentV1/task.json b/Tasks/AzureCloudPowerShellDeploymentV1/task.json index 69b2c1e7506b..b4eaac130985 100644 --- a/Tasks/AzureCloudPowerShellDeploymentV1/task.json +++ b/Tasks/AzureCloudPowerShellDeploymentV1/task.json @@ -17,7 +17,7 @@ "version": { "Major": 1, "Minor": 167, - "Patch": 3 + "Patch": 4 }, "demands": [ "azureps" diff --git a/Tasks/AzureCloudPowerShellDeploymentV1/task.loc.json b/Tasks/AzureCloudPowerShellDeploymentV1/task.loc.json index 3c24ce0ea452..924d93abb401 100644 --- a/Tasks/AzureCloudPowerShellDeploymentV1/task.loc.json +++ b/Tasks/AzureCloudPowerShellDeploymentV1/task.loc.json @@ -17,7 +17,7 @@ "version": { "Major": 1, "Minor": 167, - "Patch": 3 + "Patch": 4 }, "demands": [ "azureps" diff --git a/Tasks/AzureFileCopyV4/task.json b/Tasks/AzureFileCopyV4/task.json index dec6964e02cd..f60147c75440 100644 --- a/Tasks/AzureFileCopyV4/task.json +++ b/Tasks/AzureFileCopyV4/task.json @@ -14,7 +14,7 @@ "version": { "Major": 4, "Minor": 170, - "Patch": 2 + "Patch": 3 }, "demands": [ "azureps" diff --git a/Tasks/AzureFileCopyV4/task.loc.json b/Tasks/AzureFileCopyV4/task.loc.json index 0aa770cf7d0f..8a8af3ba2208 100644 --- a/Tasks/AzureFileCopyV4/task.loc.json +++ b/Tasks/AzureFileCopyV4/task.loc.json @@ -14,7 +14,7 @@ "version": { "Major": 4, "Minor": 170, - "Patch": 2 + "Patch": 3 }, "demands": [ "azureps" diff --git a/Tasks/AzurePowerShellV2/task.json b/Tasks/AzurePowerShellV2/task.json index 8a9d83fdc5a5..820766166e4b 100644 --- a/Tasks/AzurePowerShellV2/task.json +++ b/Tasks/AzurePowerShellV2/task.json @@ -18,7 +18,7 @@ "version": { "Major": 2, "Minor": 167, - "Patch": 3 + "Patch": 4 }, "demands": [ "azureps" diff --git a/Tasks/AzurePowerShellV2/task.loc.json b/Tasks/AzurePowerShellV2/task.loc.json index 1284bb1ef3b6..86efbf2e51b1 100644 --- a/Tasks/AzurePowerShellV2/task.loc.json +++ b/Tasks/AzurePowerShellV2/task.loc.json @@ -18,7 +18,7 @@ "version": { "Major": 2, "Minor": 167, - "Patch": 3 + "Patch": 4 }, "demands": [ "azureps" diff --git a/Tasks/AzurePowerShellV3/task.json b/Tasks/AzurePowerShellV3/task.json index 9a13fa4bb85e..0e2c61228b47 100644 --- a/Tasks/AzurePowerShellV3/task.json +++ b/Tasks/AzurePowerShellV3/task.json @@ -18,7 +18,7 @@ "version": { "Major": 3, "Minor": 167, - "Patch": 3 + "Patch": 4 }, "releaseNotes": "Added support for Fail on standard error and ErrorActionPreference", "demands": [ diff --git a/Tasks/AzurePowerShellV3/task.loc.json b/Tasks/AzurePowerShellV3/task.loc.json index a111609dbfad..f0d49bebca71 100644 --- a/Tasks/AzurePowerShellV3/task.loc.json +++ b/Tasks/AzurePowerShellV3/task.loc.json @@ -18,7 +18,7 @@ "version": { "Major": 3, "Minor": 167, - "Patch": 3 + "Patch": 4 }, "releaseNotes": "ms-resource:loc.releaseNotes", "demands": [ diff --git a/Tasks/AzurePowerShellV4/task.json b/Tasks/AzurePowerShellV4/task.json index a172d4bbf7e0..027b87474c0b 100644 --- a/Tasks/AzurePowerShellV4/task.json +++ b/Tasks/AzurePowerShellV4/task.json @@ -18,7 +18,7 @@ "version": { "Major": 4, "Minor": 168, - "Patch": 2 + "Patch": 3 }, "releaseNotes": "Added support for Az Module and cross platform agents.", "groups": [ diff --git a/Tasks/AzurePowerShellV4/task.loc.json b/Tasks/AzurePowerShellV4/task.loc.json index 6b4087a45c5c..85b11fe24796 100644 --- a/Tasks/AzurePowerShellV4/task.loc.json +++ b/Tasks/AzurePowerShellV4/task.loc.json @@ -18,7 +18,7 @@ "version": { "Major": 4, "Minor": 168, - "Patch": 2 + "Patch": 3 }, "releaseNotes": "ms-resource:loc.releaseNotes", "groups": [ diff --git a/Tasks/AzurePowerShellV5/task.json b/Tasks/AzurePowerShellV5/task.json index c35ff6cb99c9..fce61520009d 100644 --- a/Tasks/AzurePowerShellV5/task.json +++ b/Tasks/AzurePowerShellV5/task.json @@ -18,7 +18,7 @@ "version": { "Major": 5, "Minor": 170, - "Patch": 1 + "Patch": 2 }, "releaseNotes": "Added support for Az Module and cross platform agents.", "groups": [ diff --git a/Tasks/AzurePowerShellV5/task.loc.json b/Tasks/AzurePowerShellV5/task.loc.json index aeb0185cc3d8..1dd77a92ffab 100644 --- a/Tasks/AzurePowerShellV5/task.loc.json +++ b/Tasks/AzurePowerShellV5/task.loc.json @@ -18,7 +18,7 @@ "version": { "Major": 5, "Minor": 170, - "Patch": 1 + "Patch": 2 }, "releaseNotes": "ms-resource:loc.releaseNotes", "groups": [ diff --git a/Tasks/SqlAzureDacpacDeploymentV1/task.json b/Tasks/SqlAzureDacpacDeploymentV1/task.json index 5ad27beef0ff..a47fc480d272 100644 --- a/Tasks/SqlAzureDacpacDeploymentV1/task.json +++ b/Tasks/SqlAzureDacpacDeploymentV1/task.json @@ -17,7 +17,7 @@ "version": { "Major": 1, "Minor": 167, - "Patch": 4 + "Patch": 5 }, "demands": [ "sqlpackage" diff --git a/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json b/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json index fa2382c839ee..cd4efc934807 100644 --- a/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json +++ b/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json @@ -17,7 +17,7 @@ "version": { "Major": 1, "Minor": 167, - "Patch": 4 + "Patch": 5 }, "demands": [ "sqlpackage" From da8766b5b241e15cb630e4bee38b26cebcfde6c2 Mon Sep 17 00:00:00 2001 From: Arjun Gupta Date: Mon, 8 Jun 2020 13:43:28 +0530 Subject: [PATCH 08/10] remove endpoint utility as it is not needed --- Tasks/AzureFileCopyV2/AzureFileCopy.ps1 | 1 - Tasks/AzureFileCopyV2/EndpointUtility.ps1 | 27 ------------------- .../VstsAzureHelpers_/PsModuleUtility.ps1 | 5 +++- 3 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 Tasks/AzureFileCopyV2/EndpointUtility.ps1 diff --git a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 index be4fdc716bc9..505f36cd1da3 100644 --- a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 +++ b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 @@ -62,7 +62,6 @@ $azCopyLocation = [System.IO.Path]::GetDirectoryName($azCopyExeLocation) # Import RemoteDeployer Import-Module $PSScriptRoot\ps_modules\RemoteDeployer -. "$PSScriptRoot\EndpointUtility.ps1" # Initialize Azure. Import-Module $PSScriptRoot\ps_modules\VstsAzureHelpers_ diff --git a/Tasks/AzureFileCopyV2/EndpointUtility.ps1 b/Tasks/AzureFileCopyV2/EndpointUtility.ps1 deleted file mode 100644 index bc09bc9e45dd..000000000000 --- a/Tasks/AzureFileCopyV2/EndpointUtility.ps1 +++ /dev/null @@ -1,27 +0,0 @@ -function Get-EndpointAuthenticationScheme -{ - [CmdletBinding()] - param() - - Trace-VstsEnteringInvocation $MyInvocation - $authenticationScheme = "" - - try - { - $serviceNameInput = Get-VstsInput -Name "ConnectedServiceNameSelector" -Default "ConnectedServiceNameARM" - $serviceName = Get-VstsInput -Name $serviceNameInput - - $endpoint = Get-VstsEndpoint -Name $serviceName -Require - $authenticationScheme = $endpoint.Auth.Scheme - } - catch - { - Write-Verbose "Get-EndpointAuthenticationScheme. Exception $($_.Exception.Message)" - } - finally - { - Trace-VstsLeavingInvocation $MyInvocation - } - - return $authenticationScheme -} \ No newline at end of file diff --git a/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 b/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 index 050912946d63..c110a927ab96 100644 --- a/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 +++ b/Tasks/Common/VstsAzureHelpers_/PsModuleUtility.ps1 @@ -8,7 +8,10 @@ function Update-PSModulePathForHostedAgentWithLatestModule Trace-VstsEnteringInvocation $MyInvocation try { - if ($Endpoint.Type -eq "AzureRM") + $authenticationScheme = $Endpoint.Auth.Scheme + + if ($authenticationScheme -eq "ServicePrincipal" -or + $authenticationScheme -eq "ManagedServiceIdentity") { Write-Verbose "Updating PSModulePath with latest AzureRM module." $latestAzureRmModulePath = Get-LatestAzureRmModulePath From 64438f1acbff037e96d805c09f83e81f0196398d Mon Sep 17 00:00:00 2001 From: Arjun Gupta Date: Mon, 8 Jun 2020 15:07:43 +0530 Subject: [PATCH 09/10] load utility.ps1 before calling get-endpoint --- Tasks/AzureFileCopyV2/AzureFileCopy.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 index 505f36cd1da3..6096ffae1d10 100644 --- a/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 +++ b/Tasks/AzureFileCopyV2/AzureFileCopy.ps1 @@ -65,6 +65,7 @@ Import-Module $PSScriptRoot\ps_modules\RemoteDeployer # Initialize Azure. Import-Module $PSScriptRoot\ps_modules\VstsAzureHelpers_ +. "$PSScriptRoot\Utility.ps1" $endpoint = Get-Endpoint -connectedServiceName $connectedServiceName Update-PSModulePathForHostedAgentWithLatestModule -Endpoint $endpoint Initialize-Azure @@ -74,7 +75,6 @@ Import-VstsLocStrings -LiteralPath $PSScriptRoot/Task.json # Load all dependent files for execution . "$PSScriptRoot\AzureFileCopyRemoteJob.ps1" -. "$PSScriptRoot\Utility.ps1" # Enabling detailed logging only when system.debug is true $enableDetailedLogging = ($env:system_debug -eq "true") From ce0ddd4c9261ddce4a98780baaada4aa582d3e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ashish=20Ranjan=20=F0=9F=92=A9?= Date: Mon, 8 Jun 2020 16:02:05 +0530 Subject: [PATCH 10/10] update minor version --- Tasks/AzureCloudPowerShellDeploymentV1/task.json | 4 ++-- Tasks/AzureCloudPowerShellDeploymentV1/task.loc.json | 4 ++-- Tasks/AzureFileCopyV2/task.json | 4 ++-- Tasks/AzureFileCopyV2/task.loc.json | 4 ++-- Tasks/AzureFileCopyV3/task.json | 4 ++-- Tasks/AzureFileCopyV3/task.loc.json | 4 ++-- Tasks/AzureFileCopyV4/task.json | 4 ++-- Tasks/AzureFileCopyV4/task.loc.json | 4 ++-- .../Strings/resources.resjson/en-US/resources.resjson | 4 ++-- Tasks/AzurePowerShellV2/task.json | 4 ++-- Tasks/AzurePowerShellV2/task.loc.json | 4 ++-- .../Strings/resources.resjson/en-US/resources.resjson | 2 +- Tasks/AzurePowerShellV3/task.json | 4 ++-- Tasks/AzurePowerShellV3/task.loc.json | 4 ++-- Tasks/AzurePowerShellV4/task.json | 4 ++-- Tasks/AzurePowerShellV4/task.loc.json | 4 ++-- Tasks/AzurePowerShellV5/task.json | 4 ++-- Tasks/AzurePowerShellV5/task.loc.json | 4 ++-- Tasks/SqlAzureDacpacDeploymentV1/task.json | 4 ++-- Tasks/SqlAzureDacpacDeploymentV1/task.loc.json | 4 ++-- 20 files changed, 39 insertions(+), 39 deletions(-) diff --git a/Tasks/AzureCloudPowerShellDeploymentV1/task.json b/Tasks/AzureCloudPowerShellDeploymentV1/task.json index b4eaac130985..f0b5b8de3d87 100644 --- a/Tasks/AzureCloudPowerShellDeploymentV1/task.json +++ b/Tasks/AzureCloudPowerShellDeploymentV1/task.json @@ -16,8 +16,8 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 167, - "Patch": 4 + "Minor": 171, + "Patch": 0 }, "demands": [ "azureps" diff --git a/Tasks/AzureCloudPowerShellDeploymentV1/task.loc.json b/Tasks/AzureCloudPowerShellDeploymentV1/task.loc.json index 924d93abb401..082ca6fc5b9c 100644 --- a/Tasks/AzureCloudPowerShellDeploymentV1/task.loc.json +++ b/Tasks/AzureCloudPowerShellDeploymentV1/task.loc.json @@ -16,8 +16,8 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 167, - "Patch": 4 + "Minor": 171, + "Patch": 0 }, "demands": [ "azureps" diff --git a/Tasks/AzureFileCopyV2/task.json b/Tasks/AzureFileCopyV2/task.json index 93646044ad81..887a6ca51445 100644 --- a/Tasks/AzureFileCopyV2/task.json +++ b/Tasks/AzureFileCopyV2/task.json @@ -13,8 +13,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 167, - "Patch": 5 + "Minor": 171, + "Patch": 0 }, "demands": [ "azureps" diff --git a/Tasks/AzureFileCopyV2/task.loc.json b/Tasks/AzureFileCopyV2/task.loc.json index c7a2276ccfa0..323ce7da3361 100644 --- a/Tasks/AzureFileCopyV2/task.loc.json +++ b/Tasks/AzureFileCopyV2/task.loc.json @@ -13,8 +13,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 167, - "Patch": 5 + "Minor": 171, + "Patch": 0 }, "demands": [ "azureps" diff --git a/Tasks/AzureFileCopyV3/task.json b/Tasks/AzureFileCopyV3/task.json index 3ff409fffa01..5c4b589368c4 100644 --- a/Tasks/AzureFileCopyV3/task.json +++ b/Tasks/AzureFileCopyV3/task.json @@ -13,8 +13,8 @@ "author": "Microsoft Corporation", "version": { "Major": 3, - "Minor": 167, - "Patch": 5 + "Minor": 171, + "Patch": 0 }, "demands": [ "azureps" diff --git a/Tasks/AzureFileCopyV3/task.loc.json b/Tasks/AzureFileCopyV3/task.loc.json index 91169615a53c..ead7c8ba5009 100644 --- a/Tasks/AzureFileCopyV3/task.loc.json +++ b/Tasks/AzureFileCopyV3/task.loc.json @@ -13,8 +13,8 @@ "author": "Microsoft Corporation", "version": { "Major": 3, - "Minor": 167, - "Patch": 5 + "Minor": 171, + "Patch": 0 }, "demands": [ "azureps" diff --git a/Tasks/AzureFileCopyV4/task.json b/Tasks/AzureFileCopyV4/task.json index f60147c75440..1baecdd89f90 100644 --- a/Tasks/AzureFileCopyV4/task.json +++ b/Tasks/AzureFileCopyV4/task.json @@ -13,8 +13,8 @@ "author": "Microsoft Corporation", "version": { "Major": 4, - "Minor": 170, - "Patch": 3 + "Minor": 171, + "Patch": 0 }, "demands": [ "azureps" diff --git a/Tasks/AzureFileCopyV4/task.loc.json b/Tasks/AzureFileCopyV4/task.loc.json index 8a8af3ba2208..91856f901c32 100644 --- a/Tasks/AzureFileCopyV4/task.loc.json +++ b/Tasks/AzureFileCopyV4/task.loc.json @@ -13,8 +13,8 @@ "author": "Microsoft Corporation", "version": { "Major": 4, - "Minor": 170, - "Patch": 3 + "Minor": 171, + "Patch": 0 }, "demands": [ "azureps" diff --git a/Tasks/AzurePowerShellV2/Strings/resources.resjson/en-US/resources.resjson b/Tasks/AzurePowerShellV2/Strings/resources.resjson/en-US/resources.resjson index a55aacdb13e2..3b35b215561a 100644 --- a/Tasks/AzurePowerShellV2/Strings/resources.resjson/en-US/resources.resjson +++ b/Tasks/AzurePowerShellV2/Strings/resources.resjson/en-US/resources.resjson @@ -17,9 +17,9 @@ "loc.input.label.ScriptArguments": "Script Arguments", "loc.input.help.ScriptArguments": "Additional parameters to pass to PowerShell. Can be either ordinal or named parameters.", "loc.input.label.TargetAzurePs": "Azure PowerShell Version", - "loc.input.help.TargetAzurePs": "In case of hosted agents, the supported Azure PowerShell Versions are: 2.1.0, 3.8.0, 4.2.1 and 5.1.1(Hosted VS2017 Queue), 3.6.0(Hosted Queue).\nTo pick the latest version available on the agent, select \"Latest installed version\".\n\nFor private agents you can specify preferred version of Azure PowerShell using \"Specify version\"", + "loc.input.help.TargetAzurePs": "In case of hosted agents, the supported Azure PowerShell Versions are: 2.1.0, 3.8.0, 4.2.1, 5.1.1 and 6.7.0(Hosted VS2017 Queue).\nTo pick the latest version available on the agent, select \"Latest installed version\".\n\nFor private agents you can specify preferred version of Azure PowerShell using \"Specify version\"", "loc.input.label.CustomTargetAzurePs": "Preferred Azure PowerShell Version", - "loc.input.help.CustomTargetAzurePs": "Preferred Azure PowerShell Version needs to be a proper semantic version eg. 1.2.3. Regex like 2.\\*,2.3.\\* is not supported. The Hosted VS2017 Pool currently supports versions: 2.1.0, 3.8.0, 4.2.1, 5.1.1", + "loc.input.help.CustomTargetAzurePs": "Preferred Azure PowerShell Version needs to be a proper semantic version eg. 1.2.3. Regex like 2.\\*,2.3.\\* is not supported. The Hosted VS2017 Pool currently supports Azure module versions: 2.1.0, 3.8.0, 4.2.1, 5.1.1 and AzureRM module versions: 2.1.0, 3.8.0, 4.2.1, 5.1.1, 6.7.0", "loc.messages.InvalidScriptArguments0": "Invalid script arguments '{0}'. Line breaks are not allowed.", "loc.messages.InvalidScriptPath0": "Invalid script path '{0}'. Invalid path characters specified.", "loc.messages.InvalidAzurePsVersion": "The Azure PowerShell version '{0}' specified is not in the correct format. Please check the format. An example of correct format is 1.0.1", diff --git a/Tasks/AzurePowerShellV2/task.json b/Tasks/AzurePowerShellV2/task.json index 820766166e4b..67e4f87c1e5f 100644 --- a/Tasks/AzurePowerShellV2/task.json +++ b/Tasks/AzurePowerShellV2/task.json @@ -17,8 +17,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 167, - "Patch": 4 + "Minor": 171, + "Patch": 0 }, "demands": [ "azureps" diff --git a/Tasks/AzurePowerShellV2/task.loc.json b/Tasks/AzurePowerShellV2/task.loc.json index 86efbf2e51b1..ec165b987b94 100644 --- a/Tasks/AzurePowerShellV2/task.loc.json +++ b/Tasks/AzurePowerShellV2/task.loc.json @@ -17,8 +17,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 167, - "Patch": 4 + "Minor": 171, + "Patch": 0 }, "demands": [ "azureps" diff --git a/Tasks/AzurePowerShellV3/Strings/resources.resjson/en-US/resources.resjson b/Tasks/AzurePowerShellV3/Strings/resources.resjson/en-US/resources.resjson index 0d52333c6f9b..a9bb8e5fe11b 100644 --- a/Tasks/AzurePowerShellV3/Strings/resources.resjson/en-US/resources.resjson +++ b/Tasks/AzurePowerShellV3/Strings/resources.resjson/en-US/resources.resjson @@ -23,7 +23,7 @@ "loc.input.label.FailOnStandardError": "Fail on Standard Error", "loc.input.help.FailOnStandardError": "If this is true, this task will fail if any errors are written to the error pipeline, or if any data is written to the Standard Error stream.", "loc.input.label.TargetAzurePs": "Azure PowerShell Version", - "loc.input.help.TargetAzurePs": "In case of hosted agents, the supported Azure PowerShell Versions are: 2.1.0, 3.8.0, 4.2.1, 5.1.1 and 6.7.0(Hosted VS2017 Queue), 3.6.0(Hosted Queue).\nTo pick the latest version available on the agent, select \"Latest installed version\".\n\nFor private agents you can specify preferred version of Azure PowerShell using \"Specify version\"", + "loc.input.help.TargetAzurePs": "In case of hosted agents, the supported Azure PowerShell Versions are: 2.1.0, 3.8.0, 4.2.1, 5.1.1 and 6.7.0(Hosted VS2017 Queue).\nTo pick the latest version available on the agent, select \"Latest installed version\".\n\nFor private agents you can specify preferred version of Azure PowerShell using \"Specify version\"", "loc.input.label.CustomTargetAzurePs": "Preferred Azure PowerShell Version", "loc.input.help.CustomTargetAzurePs": "Preferred Azure PowerShell Version needs to be a proper semantic version eg. 1.2.3. Regex like 2.\\*,2.3.\\* is not supported. The Hosted VS2017 Pool currently supports Azure module versions: 2.1.0, 3.8.0, 4.2.1, 5.1.1 and AzureRM module versions: 2.1.0, 3.8.0, 4.2.1, 5.1.1, 6.7.0", "loc.messages.InvalidScriptArguments0": "Invalid script arguments '{0}'. Line breaks are not allowed.", diff --git a/Tasks/AzurePowerShellV3/task.json b/Tasks/AzurePowerShellV3/task.json index 0e2c61228b47..30c84d1abe62 100644 --- a/Tasks/AzurePowerShellV3/task.json +++ b/Tasks/AzurePowerShellV3/task.json @@ -17,8 +17,8 @@ "author": "Microsoft Corporation", "version": { "Major": 3, - "Minor": 167, - "Patch": 4 + "Minor": 171, + "Patch": 0 }, "releaseNotes": "Added support for Fail on standard error and ErrorActionPreference", "demands": [ diff --git a/Tasks/AzurePowerShellV3/task.loc.json b/Tasks/AzurePowerShellV3/task.loc.json index f0d49bebca71..4a44e1a6a91a 100644 --- a/Tasks/AzurePowerShellV3/task.loc.json +++ b/Tasks/AzurePowerShellV3/task.loc.json @@ -17,8 +17,8 @@ "author": "Microsoft Corporation", "version": { "Major": 3, - "Minor": 167, - "Patch": 4 + "Minor": 171, + "Patch": 0 }, "releaseNotes": "ms-resource:loc.releaseNotes", "demands": [ diff --git a/Tasks/AzurePowerShellV4/task.json b/Tasks/AzurePowerShellV4/task.json index 027b87474c0b..c5cfecd34209 100644 --- a/Tasks/AzurePowerShellV4/task.json +++ b/Tasks/AzurePowerShellV4/task.json @@ -17,8 +17,8 @@ "author": "Microsoft Corporation", "version": { "Major": 4, - "Minor": 168, - "Patch": 3 + "Minor": 171, + "Patch": 0 }, "releaseNotes": "Added support for Az Module and cross platform agents.", "groups": [ diff --git a/Tasks/AzurePowerShellV4/task.loc.json b/Tasks/AzurePowerShellV4/task.loc.json index 85b11fe24796..e819f1f13c3a 100644 --- a/Tasks/AzurePowerShellV4/task.loc.json +++ b/Tasks/AzurePowerShellV4/task.loc.json @@ -17,8 +17,8 @@ "author": "Microsoft Corporation", "version": { "Major": 4, - "Minor": 168, - "Patch": 3 + "Minor": 171, + "Patch": 0 }, "releaseNotes": "ms-resource:loc.releaseNotes", "groups": [ diff --git a/Tasks/AzurePowerShellV5/task.json b/Tasks/AzurePowerShellV5/task.json index fce61520009d..597479615e6f 100644 --- a/Tasks/AzurePowerShellV5/task.json +++ b/Tasks/AzurePowerShellV5/task.json @@ -17,8 +17,8 @@ "author": "Microsoft Corporation", "version": { "Major": 5, - "Minor": 170, - "Patch": 2 + "Minor": 171, + "Patch": 0 }, "releaseNotes": "Added support for Az Module and cross platform agents.", "groups": [ diff --git a/Tasks/AzurePowerShellV5/task.loc.json b/Tasks/AzurePowerShellV5/task.loc.json index 1dd77a92ffab..06c1fec68d49 100644 --- a/Tasks/AzurePowerShellV5/task.loc.json +++ b/Tasks/AzurePowerShellV5/task.loc.json @@ -17,8 +17,8 @@ "author": "Microsoft Corporation", "version": { "Major": 5, - "Minor": 170, - "Patch": 2 + "Minor": 171, + "Patch": 0 }, "releaseNotes": "ms-resource:loc.releaseNotes", "groups": [ diff --git a/Tasks/SqlAzureDacpacDeploymentV1/task.json b/Tasks/SqlAzureDacpacDeploymentV1/task.json index a47fc480d272..61912c28ae90 100644 --- a/Tasks/SqlAzureDacpacDeploymentV1/task.json +++ b/Tasks/SqlAzureDacpacDeploymentV1/task.json @@ -16,8 +16,8 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 167, - "Patch": 5 + "Minor": 171, + "Patch": 0 }, "demands": [ "sqlpackage" diff --git a/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json b/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json index cd4efc934807..3f202feff520 100644 --- a/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json +++ b/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json @@ -16,8 +16,8 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 167, - "Patch": 5 + "Minor": 171, + "Patch": 0 }, "demands": [ "sqlpackage"