Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Azure login in DevOps pipelines #20

Open
fawohlsc opened this issue Feb 23, 2021 · 0 comments
Open

Align Azure login in DevOps pipelines #20

fawohlsc opened this issue Feb 23, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@fawohlsc
Copy link
Owner

Azure Login should be:

'''
$password = ConvertTo-SecureString $env:AZURE_SUBSCRIPTION_CLIENT_SECRET -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential($env:AZURE_SUBSCRIPTION_CLIENT_ID, $password)
Connect-AzAccount -Subscription $env:AZURE_SUBSCRIPTION_ID -Tenant $env:AZURE_SUBSCRIPTION_TENANT_ID -ServicePrincipal -Credential $credential -Scope CurrentUser > $null
'''

Why?`

  • Standardization
  • Faster - ~3 min vs. ~5 seconds
@fawohlsc fawohlsc added the enhancement New feature or request label Feb 23, 2021
@fawohlsc fawohlsc added this to the v1.2 milestone Feb 23, 2021
@fawohlsc fawohlsc self-assigned this Feb 23, 2021
@fawohlsc fawohlsc changed the title Align Azure Login methods Align Azure Login Feb 23, 2021
@fawohlsc fawohlsc changed the title Align Azure Login Align Azure Login in DevOps pipelines Feb 23, 2021
@fawohlsc fawohlsc changed the title Align Azure Login in DevOps pipelines Align Azure login in DevOps pipelines Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant