Skip to content

Commit a2e55e6

Browse files
authored
Use az login
1 parent dd3dfb1 commit a2e55e6

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

.github/actions/azdo-build/action.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,22 @@ runs:
7676
fi
7777
shell: bash
7878

79-
- uses: azure/login@v2
80-
with:
81-
allow-no-subscriptions: true
82-
client-id: ${{ inputs.azure-client-id }}
83-
enable-AzPSSession: true
84-
tenant-id: ${{ inputs.azure-tenant-id }}
79+
- name: Azure login
80+
run: |
81+
az login \
82+
--client-id ${{ inputs.azure-client-id }} \
83+
--federated-token ${{ github.token }} \
84+
--identity \
85+
--subscription ${{ inputs.azure-subscription-id }} \
86+
--tenant ${{ inputs.azure-tenant-id }}
87+
shell: bash
88+
89+
# - uses: azure/login@v2
90+
# with:
91+
# allow-no-subscriptions: true
92+
# client-id: ${{ inputs.azure-client-id }}
93+
# enable-AzPSSession: true
94+
# tenant-id: ${{ inputs.azure-tenant-id }}
8595

8696
# - id: run-pipeline
8797
# uses: azure/cli@v2

0 commit comments

Comments
 (0)