Skip to content

Commit 1313d86

Browse files
committed
Remove 'az devops login'
1 parent e464366 commit 1313d86

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

scripts/azure-devops/convert_azurerm_service_connection_to_oidc.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ if (!(az extension list --query "[?name=='azure-devops'].version" -o tsv)) {
8383
Write-Host "Adding Azure CLI extension 'azure-devops'..."
8484
az extension add -n azure-devops -y -o none
8585
}
86-
# Write-Output $accessToken | az devops login --organization $OrganizationUrl
87-
# $env:AZURE_DEVOPS_EXT_PAT = $accessToken
88-
# az devops configure --defaults organization=$OrganizationUrl
8986
if ($lastexitcode -ne 0) {
9087
Write-Error "$($account.user.name) failed to log in to Azure DevOps organization '${OrganizationUrl}'"
9188
exit $lastexitcode

0 commit comments

Comments
 (0)