Skip to content

Commit

Permalink
Support user ID
Browse files Browse the repository at this point in the history
  • Loading branch information
vplauzon committed Jul 11, 2024
1 parent b09a61e commit e5779a7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/exec-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Azure Login
run: az login --service-principal -u ${{ secrets.deploy_sp_id }} -p ${{ secrets.deploy_sp_secret }} --tenant ${{ secrets.tenant_id }}
- name: Azure Subscription Selection
run: az account set -n "${{ secrets.TEST_SUB }}"
# Using the user MI as exposed in https://yourazurecoach.com/2022/12/29/use-github-actions-with-user-assigned-managed-identity/
- name: Log into Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.TEST_CLIENT_ID }}
tenant-id: ${{ secrets.TEST_TENANT_ID }}
subscription-id: ${{ secrets.TEST_SUB }}
# Add Kusto extension to Azure CLI
- name: Install Kusto extension
run: az extension add -n kusto
Expand Down

0 comments on commit e5779a7

Please sign in to comment.