question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Login consistently takes 30s-60s to complete

See original GitHub issue

Is this a function of the VMs that github provisions, this action, or the az cli itself?

az login 27s (UP TO 60 seconds)
Login successful.
Run azure/login@v1
C:\windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" --version"
WARNING: You have 2 updates available. Consider updating your CLI installation. Instructions can be found at https://docs.microsoft.com/en-us/cli/azure/install-azure-cli
azure-cli                          2.2.0 *

command-modules-nspkg              2.0.3
core                               2.2.0 *
nspkg                              3.0.4
telemetry                          1.0.4

Extensions:
azure-devops                      0.17.0

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Program Files\Common Files\AzureCliExtensionDirectory'

Python (Windows) 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal




Please let us know how we are doing: https://aka.ms/clihats
Login successful.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:27 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
JAlvarezMSIcommented, Jan 7, 2021

@aksm-ms Is there any update or timeline on this, having the potential of time wasted on logging in has caused us to not even want to use this action

2reactions
justinyoocommented, Oct 11, 2020

As a workaround, I use the following combination of actions, which is much quicker (around 30-40 secs).

    - name: Install Azure PowerShell
      shell: pwsh
      run: |
        Install-Module -Name Az -RequiredVersion ((Find-Module -Name Az)[0].Version) -AllowClobber -Scope CurrentUser -Force

    - name: Do something
      shell: pwsh
      env:
        AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
      run: |
        # LOGIN TO AZURE
        $clientId = ($env:AZURE_CREDENTIALS | ConvertFrom-Json).clientId
        $clientSecret = ($env:AZURE_CREDENTIALS | ConvertFrom-Json).clientSecret | ConvertTo-SecureString -AsPlainText -Force
        $tenantId = ($env:AZURE_CREDENTIALS | ConvertFrom-Json).tenantId
        $credentials = New-Object System.Management.Automation.PSCredential($clientId, $clientSecret)
        $connected = Connect-AzAccount -ServicePrincipal -Credential $credentials -Tenant $tenantId

        # DO SOMETHING HERE
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Simtek Sensors
Back Not receiving alerts Not receiving alerts consistently, each time Alerts taking longer than 30s-60s to receive Can't download the app Can't subscribe ......
Read more >
G-E-Series-quick-start-guide.pdf
Connect one end of the network cable to the encoder Ethernet port. ... process will take about 30s-60s(the time will be different according...
Read more >
Managing Connections - Aspera
Add and manage the remote fasp servers. To connect to a remote computer or to a server in the cloud, you need to...
Read more >
What photo/video modes do my camera support and what ...
Intervals: 0.5s, 1s, 2s, 5s, 10s, 30s, 60s. Loop: Record a new video that will always wipe out and replace the last recorded...
Read more >
Discussion with a customer, a useful read for all - Myithlete
But more importantly – because your app only takes a 55s reading (and ... I've compared them to two other leading HRV apps...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found