Skip to content

Commit

Permalink
feat: helper script restarts app
Browse files Browse the repository at this point in the history
overwrite our flag setting with the execution timestamp
  • Loading branch information
thekaveman committed Oct 11, 2023
1 parent aafef1e commit 06d9029
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions terraform/restart-app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -e

if [ $# -ne 1 ]; then
echo "Usage: $0 D|T|P"
exit 1
fi

ENV="$1"
APP="AS-CDT-PUB-VIP-CALITP-$ENV-001"
RG="RG-CDT-PUB-VIP-CALITP-$ENV-001"
NOW=$(date --utc)

az webapp config appsettings set --name "$APP" --resource-group "$RG" --settings change_me_to_refresh_secrets="$NOW"

0 comments on commit 06d9029

Please sign in to comment.