Skip to content

Commit d0483f0

Browse files
Refactor Azure Developer CLI installation to use official action in deployment workflow
1 parent 6598280 commit d0483f0

1 file changed

Lines changed: 6 additions & 18 deletions

File tree

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

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -276,21 +276,15 @@ jobs:
276276
- name: Checkout Code
277277
uses: actions/checkout@v4
278278

279+
- name: Install Azure Developer CLI
280+
uses: Azure/setup-azd@v1.0.0
281+
279282
- name: Setup Azure CLI
280283
shell: bash
281284
run: |
282285
# Azure CLI is pre-installed on Windows GitHub runners
283286
az --version # Verify installation
284287
285-
- name: Install Azure Developer CLI
286-
shell: powershell
287-
run: |
288-
Write-Host "Installing Azure Developer CLI..."
289-
powershell -ex AllSigned -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1' | Invoke-Expression"
290-
291-
# Verify installation
292-
azd version
293-
294288
- name: Login to Azure
295289
shell: bash
296290
run: |
@@ -818,21 +812,15 @@ jobs:
818812
- name: Checkout Code
819813
uses: actions/checkout@v4
820814

815+
- name: Install Azure Developer CLI
816+
uses: Azure/setup-azd@v1.0.0
817+
821818
- name: Setup Azure CLI
822819
shell: bash
823820
run: |
824821
# Azure CLI is pre-installed on Windows GitHub runners
825822
az --version # Verify installation
826823
827-
- name: Install Azure Developer CLI
828-
shell: powershell
829-
run: |
830-
Write-Host "Installing Azure Developer CLI..."
831-
powershell -ex AllSigned -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1' | Invoke-Expression"
832-
833-
# Verify installation
834-
azd version
835-
836824
- name: Login to Azure
837825
shell: bash
838826
run: |

0 commit comments

Comments
 (0)