Skip to content

Commit 0a6fd8e

Browse files
Update Azure Developer CLI setup to use the official action and enhance authentication process
1 parent d45e1a2 commit 0a6fd8e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/deploy-v2-windows.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,16 +281,17 @@ jobs:
281281
run: |
282282
# Azure CLI is pre-installed on Windows GitHub runners
283283
az --version # Verify installation
284-
285-
- name: Try setup-azd action
284+
285+
- name: Setup Azure Developer CLI
286286
uses: Azure/setup-azd@v2
287287

288288
- name: Login to Azure
289+
id: login-azure
289290
shell: bash
290291
run: |
291292
az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}
292-
az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }}
293-
293+
azd auth login --client-id ${{ secrets.AZURE_CLIENT_ID }} --client-secret ${{ secrets.AZURE_CLIENT_SECRET }} --tenant-id ${{ secrets.AZURE_TENANT_ID }}
294+
294295
- name: Run Quota Check
295296
id: quota-check
296297
shell: bash

0 commit comments

Comments
 (0)