From 593f52145dff03bf62284f7a2808a70c6fe88997 Mon Sep 17 00:00:00 2001 From: James B Date: Thu, 31 Oct 2024 13:35:04 +0000 Subject: [PATCH] Postgres servers are Flexible Servers now; need to change deploy --- .github/workflows/workflow.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index a9bc12f9..ec668e1b 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -118,10 +118,10 @@ jobs: --ssh-key-values ${{ secrets.DEV_PUB_KEYS }} && \ export NEW_IP=$(az vm list-ip-addresses --name "${{ env.STAGE }}-${{ env.NAME }}-${{ env.NEW_COLOUR }}" --resource-group "${{ env.STAGE }}-${{ env.NAME }}-${{ env.NEW_COLOUR }}" --query [].virtualMachine.network[].publicIpAddresses[][].ipAddress --output tsv) && \ echo "NEW_IP=$NEW_IP" >> $GITHUB_ENV && \ - az postgres server firewall-rule update \ + az postgres flexible-server firewall-rule create \ --resource-group "${{ secrets.DEV_PSQL_RESOURCE_GROUP }}" \ - --server-name "${{ secrets.DEV_PSQL_NAME }}" \ - --name "${{ env.STAGE }}-${{ env.NAME }}-${{ env.NEW_COLOUR }}" \ + --name "${{ secrets.DEV_PSQL_NAME }}" \ + --rule-name "${{ env.STAGE }}-${{ env.NAME }}-${{ env.NEW_COLOUR }}" \ --start-ip-address $NEW_IP \ --end-ip-address $NEW_IP && \ az network nsg rule create \ @@ -332,10 +332,10 @@ jobs: --ssh-key-values ${{ secrets.DEV_PUB_KEYS }} && \ export NEW_IP=$(az vm list-ip-addresses --name "${{ env.STAGE }}-${{ env.NAME }}-${{ env.NEW_COLOUR }}" --resource-group "${{ env.STAGE }}-${{ env.NAME }}-${{ env.NEW_COLOUR }}" --query [].virtualMachine.network[].publicIpAddresses[][].ipAddress --output tsv) && \ echo "NEW_IP=$NEW_IP" >> $GITHUB_ENV && \ - az postgres server firewall-rule update \ + az postgres flexible-server firewall-rule create \ --resource-group "${{ secrets.PROD_PSQL_RESOURCE_GROUP }}" \ - --server-name "${{ secrets.PROD_PSQL_NAME }}" \ - --name "${{ env.STAGE }}-${{ env.NAME }}-${{ env.NEW_COLOUR }}" \ + --name "${{ secrets.PROD_PSQL_NAME }}" \ + --rule-name "${{ env.STAGE }}-${{ env.NAME }}-${{ env.NEW_COLOUR }}" \ --start-ip-address $NEW_IP \ --end-ip-address $NEW_IP && \ az network nsg rule create \