@@ -33,16 +33,16 @@ jobs:
3333
3434 - name : Login to Azure
3535 run : |
36- az login --service-principal -u ${{ secrets.AZURE_MAINTENANCE_CLIENT_ID }} -p ${{ secrets.AZURE_MAINTENANCE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}
37- az account set --subscription ${{ secrets.AZURE_MAINTENANCE_SUBSCRIPTION_ID }}
36+ az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}
37+ az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3838
3939 - name : Run Quota Check
4040 id : quota-check
4141 run : |
42- export AZURE_MAINTENANCE_CLIENT_ID =${{ secrets.AZURE_MAINTENANCE_CLIENT_ID }}
42+ export AZURE_CLIENT_ID =${{ secrets.AZURE_CLIENT_ID }}
4343 export AZURE_TENANT_ID=${{ secrets.AZURE_TENANT_ID }}
44- export AZURE_MAINTENANCE_CLIENT_SECRET =${{ secrets.AZURE_MAINTENANCE_CLIENT_SECRET }}
45- export AZURE_MAINTENANCE_SUBSCRIPTION_ID ="${{ secrets.AZURE_MAINTENANCE_SUBSCRIPTION_ID }}"
44+ export AZURE_CLIENT_SECRET =${{ secrets.AZURE_CLIENT_SECRET }}
45+ export AZURE_SUBSCRIPTION_ID ="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
4646 export GPT_MIN_CAPACITY="100"
4747 export AZURE_REGIONS="${{ vars.AZURE_REGIONS }}"
4848
@@ -301,8 +301,8 @@ jobs:
301301
302302 - name : Login to Azure
303303 run : |
304- az login --service-principal -u ${{ secrets.AZURE_MAINTENANCE_CLIENT_ID }} -p ${{ secrets.AZURE_MAINTENANCE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}
305- az account set --subscription ${{ secrets.AZURE_MAINTENANCE_SUBSCRIPTION_ID }}
304+ az login --service-principal -u ${{ secrets.AZURE_CLIENT_ID }} -p ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ secrets.AZURE_TENANT_ID }}
305+ az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }}
306306
307307 - name : Delete Bicep Deployment
308308 if : always()
@@ -459,7 +459,7 @@ jobs:
459459
460460 echo "Processing KeyVault: $keyvault_name"
461461 # Check if the KeyVault is soft-deleted
462- deleted_vaults=$(az keyvault list-deleted --query "[?name=='$keyvault_name']" -o json --subscription ${{ secrets.AZURE_MAINTENANCE_SUBSCRIPTION_ID }})
462+ deleted_vaults=$(az keyvault list-deleted --query "[?name=='$keyvault_name']" -o json --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }})
463463
464464 # If the KeyVault is found in the soft-deleted state, purge it
465465 if [ "$(echo "$deleted_vaults" | jq length)" -gt 0 ]; then
0 commit comments