-
Notifications
You must be signed in to change notification settings - Fork 380
Open
Labels
Azure CliFor Azure CLI issue.For Azure CLI issue.performance-issuePerformance improvement requiredPerformance improvement required
Description
Possibly related to any of these issues (some open, some closed):
#456
#449
actions/runner-images#10110
We're running Azure/login@v2 on Github-hosted Actions Runners using the Github provided/default Ubuntu 24.04 image.
It seems when using Hosted Compute Networking, the Azure/login@v2 action takes a long time to complete.
My first theory was "maybe there's an NSG rule doing something weird", but then when I saw just running an az version beforehand speeds things up so much, I feel like something else is at play?
Added context:
- for Hosted Compute Networking we're using the default NSG rules listed in here: https://docs.github.com/en/enterprise-cloud@latest/admin/configuring-settings/configuring-private-networking-for-hosted-compute-products/configuring-private-networking-for-github-hosted-runners-in-your-enterprise#prerequisites The important part: we don't have a "block all Internet" NSG rule
- we're using
allow-no-subscriptions: trueas this setup is relying on the Flexible Federated Identity Credentials (Preview) which isn't supported on User-Assigned Managed Identities yet, only App Registrations.
Any additional debugging steps that can be suggested would be appreciated - I can run further tests to try isolate the root cause with maintainer input.
Examples:
- just running login, nothing else, 43-49 seconds
- note the
runs-on
- note the
on:
push:
branches:
- main
permissions:
id-token: write
jobs:
azure-cli-startup:
runs-on: ubuntu-latest-2core--azure-vnet
steps:
- name: Azure login
uses: Azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
allow-no-subscriptions: true
- if we run
az versionbefore a login, that drops to 7 seconds aggregate, 4 seconds foraz versionand 3 seconds for the login 🤯
on:
push:
branches:
- main
permissions:
id-token: write
jobs:
azure-cli-startup:
runs-on: ubuntu-latest-2core--azure-vnet
steps:
- name: Run az version
run: |
az version
- name: Azure login
uses: Azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
allow-no-subscriptions: true
- if we run this without Hosted Compute Networking, its a 5 second execution time
- note the
runs-on
- note the
on:
push:
branches:
- main
permissions:
id-token: write
jobs:
azure-cli-startup:
runs-on: ubuntu-latest
steps:
- name: Azure login
uses: Azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
allow-no-subscriptions: true
dannybarnes, krsilas, 27pchrisl, bournai-martin, oysteinje and 2 more
Metadata
Metadata
Assignees
Labels
Azure CliFor Azure CLI issue.For Azure CLI issue.performance-issuePerformance improvement requiredPerformance improvement required



