@@ -76,29 +76,28 @@ runs:
7676 fi
7777 shell : bash
7878
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-
88- az login \
89- --allow-no-subscription \
90- --federated-token ${{ github.token }} \
91- --service-principal \
92- --tenant ${{ inputs.azure-tenant-id }} \
93- --username ${{ inputs.azure-client-id }}
94- shell : bash
95-
96- # - uses: azure/login@v2
97- # with:
98- # allow-no-subscriptions: true
99- # client-id: ${{ inputs.azure-client-id }}
100- # enable-AzPSSession: true
101- # 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+
88+ # az login \
89+ # --allow-no-subscription \
90+ # --federated-token ${{ github.token }} \
91+ # --service-principal \
92+ # --tenant ${{ inputs.azure-tenant-id }} \
93+ # --username ${{ inputs.azure-client-id }}
94+ # shell: bash
95+
96+ - uses : azure/login@v2
97+ with :
98+ allow-no-subscriptions : true
99+ client-id : ${{ inputs.azure-client-id }}
100+ tenant-id : ${{ inputs.azure-tenant-id }}
102101
103102 # - id: run-pipeline
104103 # uses: azure/cli@v2
0 commit comments