Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/azure-login-mi-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Azure Login Action Test User-MI
on:
workflow_dispatch:
push:

permissions:
id-token: write

jobs:
TestforAzclilatest:
runs-on: self-hosted
container: ubuntu:22.04
steps:
- name: Install Azure CLI
run: |
apt-get update
apt-get install -y curl
curl -sL https://aka.ms/InstallAzureCLIDeb | bash

- name: Check Azure CLI Version
run: |
az --version

- name: Login with tenant-level user-assigned managed identity with allow-no-subscriptions
uses: azure/login@sy/mi-clientid
with:
client-id: ${{ secrets.UMI_TEMP_CLIENT_ID }}
subscription-id: ${{ secrets.UMI_TEMP_SUBSCRIPTIONID }}
auth-type: IDENTITY

- name: Run Azure Cli again
run: |
az group list --output none
Loading