Skip to content

Commit cb82ae0

Browse files
refactor: remove Curl Azure CLI setup steps and replace with Azure setup actions
1 parent 2e15a18 commit cb82ae0

3 files changed

Lines changed: 3 additions & 33 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ jobs:
3535
- name: Checkout Code
3636
uses: actions/checkout@v5
3737

38-
- name: Setup Azure CLI
39-
run: |
40-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
41-
az --version # Verify installation
4238

4339
- name: Login to Azure
4440
run: |
@@ -141,10 +137,7 @@ jobs:
141137
run: |
142138
set -e
143139
echo "Fetching deployment output..."
144-
145-
# Install azd (Azure Developer CLI)
146-
curl -fsSL https://aka.ms/install-azd.sh | bash
147-
140+
148141
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
149142
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
150143
@@ -304,9 +297,6 @@ jobs:
304297
AZURE_LOCATION: ${{ needs.deploy.outputs.AZURE_LOCATION }}
305298
ENVIRONMENT_NAME: ${{ needs.deploy.outputs.ENVIRONMENT_NAME }}
306299
steps:
307-
- name: Setup Azure CLI
308-
run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
309-
310300
- name: Login to Azure
311301
run: |
312302
az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}

.github/workflows/job-cleanup-deployment.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,6 @@ jobs:
199199
200200
echo ""
201201
echo "✅ All input parameters validated successfully!"
202-
203-
- name: Setup Azure CLI
204-
shell: bash
205-
run: |
206-
if [[ "${{ runner.os }}" == "Linux" ]]; then
207-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
208-
fi
209-
az --version
210202
211203
- name: Login to Azure
212204
shell: bash

.github/workflows/job-deploy-linux.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -197,17 +197,8 @@ jobs:
197197
echo "🔧 Configuring Non-WAF deployment - using default main.parameters.json..."
198198
fi
199199
200-
- name: Setup Azure CLI
201-
shell: bash
202-
run: |
203-
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
204-
205-
- name: Setup Azure Developer CLI (Linux)
206-
if: runner.os == 'Linux'
207-
shell: bash
208-
run: |
209-
curl -fsSL https://aka.ms/install-azd.sh | sudo bash
210-
azd version
200+
- name: Install azd
201+
uses: Azure/setup-azd@v2
211202

212203
- name: Login to AZD
213204
id: login-azure
@@ -235,9 +226,6 @@ jobs:
235226
echo "Starting azd deployment..."
236227
echo "EXP: $EXP"
237228
echo "Using Docker Image Tag: $IMAGE_TAG"
238-
239-
# Install azd (Azure Developer CLI)
240-
curl -fsSL https://aka.ms/install-azd.sh | bash
241229
242230
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
243231
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")

0 commit comments

Comments
 (0)