Skip to content

Commit

Permalink
ci(azure-functions): add draft to delete old resources (#4769)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
Jolg42 authored Apr 4, 2024
1 parent 703bae7 commit 08d0146
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/delete-azure-functons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Delete old Azure Functions

on:
workflow_dispatch:
inputs:
os:
description: 'Which "Group"?'
type: 'choice'
options:
- 'prisma-e2e-linux'
- 'prisma-e2e-windows'

jobs:
cleanup:
runs-on: 'ubuntu-latest'
env:
AZURE_SP_TENANT: ${{ vars.AZURE_SP_TENANT }}
AZURE_SP_PASSWORD: ${{ secrets.AZURE_SP_PASSWORD }}
AZURE_SP_NAME: ${{ vars.AZURE_SP_NAME }}

steps:
- name: Azure CLI script
uses: azure/cli@v2
with:
azcliversion: latest
inlineScript: |
which az
az --version
az login --service-principal -u "$AZURE_SP_NAME" -p "$AZURE_SP_PASSWORD" --tenant "$AZURE_SP_TENANT"
az account show

0 comments on commit 08d0146

Please sign in to comment.