Skip to content

Commit 51cd9ba

Browse files
Remove az login
1 parent 0d893fd commit 51cd9ba

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

tools/releaseBuild/azureDevOps/templates/release-CreateGitHubDraft.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ steps:
1717
$azcopy = Find-AzCopy
1818
Write-Verbose -Verbose "Found AzCopy: $azcopy"
1919
20-
& $azcopy login --service-principal --application-id $(PowerShellReleaseSPN)
2120
& $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion) $(System.ArtifactsDirectory) --recursive
2221
2322
$packagesPath = Get-ChildItem -Path $(System.ArtifactsDirectory)\*.deb -Recurse -File | Select-Object -First 1 -ExpandProperty DirectoryName
@@ -27,7 +26,7 @@ steps:
2726
displayName: Download Azure Artifacts
2827
retryCountOnTaskFailure: 2
2928
env:
30-
AZCOPY_SPA_CLIENT_SECRET: $(PowerShellReleaseSPNSecret)
29+
AZCOPY_AUTO_LOGIN_TYPE: MSI
3130

3231
- pwsh: |
3332
Get-ChildItem $(System.ArtifactsDirectory)\* -recurse | Select-Object -ExpandProperty FullName

tools/releaseBuild/azureDevOps/templates/release-ValidatePackageNames.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ steps:
1616
$azcopy = Find-AzCopy
1717
Write-Verbose -Verbose "Found AzCopy: $azcopy"
1818
19-
& $azcopy login --service-principal --application-id $(PowerShellReleaseSPN)
20-
2119
& $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)/* $(System.ArtifactsDirectory) --recursive
2220
2321
displayName: Download Azure Artifacts
2422
env:
25-
AZCOPY_SPA_CLIENT_SECRET: $(PowerShellReleaseSPNSecret)
23+
AZCOPY_AUTO_LOGIN_TYPE: MSI
2624

2725
- pwsh: |
2826
Get-ChildItem $(System.ArtifactsDirectory)\* -recurse | Select-Object -ExpandProperty Name

tools/releaseBuild/azureDevOps/templates/vpackReleaseJob.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,13 @@ jobs:
3838
Import-module '$(BUILD.SOURCESDIRECTORY)/build.psm1'
3939
$azcopy = Find-AzCopy
4040
Write-Verbose -Verbose "Found AzCopy: $azcopy"
41-
42-
& $azcopy login --service-principal --application-id $(PowerShellReleaseSPN)
43-
4441
Write-Host "running: $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)/PowerShell-$(Version)-win-${{ parameters.architecture }}.zip $(System.ArtifactsDirectory)"
4542
4643
& $azcopy cp https://$(StorageAccount).blob.core.windows.net/$(AzureVersion)/PowerShell-$(Version)-win-${{ parameters.architecture }}.zip $(System.ArtifactsDirectory)
4744
displayName: 'Download Azure Artifacts'
4845
retryCountOnTaskFailure: 2
4946
env:
50-
AZCOPY_SPA_CLIENT_SECRET: $(PowerShellReleaseSPNSecret)
47+
AZCOPY_AUTO_LOGIN_TYPE: MSI
5148
5249
- pwsh: 'Get-ChildItem $(System.ArtifactsDirectory)\* -recurse | Select-Object -ExpandProperty Name'
5350
displayName: 'Capture Artifact Listing'

0 commit comments

Comments
 (0)