From 9324933175d9f801931ed3786f54ef5894c5b507 Mon Sep 17 00:00:00 2001 From: "Preston K. Parsard" Date: Tue, 9 Jan 2024 09:58:53 -0500 Subject: [PATCH] Update deploy-az-resources.yml Signed-off-by: Preston K. Parsard --- .github/workflows/deploy-az-resources.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-az-resources.yml b/.github/workflows/deploy-az-resources.yml index fe23508..da2e417 100644 --- a/.github/workflows/deploy-az-resources.yml +++ b/.github/workflows/deploy-az-resources.yml @@ -71,33 +71,33 @@ jobs: - name: deploy uses: azure/CLI@v1 with: - # azcliversion: latest + azcliversion: latest inlineScript: | az --version az account show - az account set --subscription -s ${{ secrets.AZURE_SUBSCRIPTION_ID }} + az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }} az stack sub create --name ${{ env.stackname }} --location ${{ env.location }} --template-file ${{ env.templateFile }} --parameters ${{ env.templateParamFile }} --deny-settings-mode none --delete-all --yes --verbose if: ${{ env.deploy == 'true' }} - name: rollback uses: azure/CLI@v1 with: - # azcliversion: latest + azcliversion: latest inlineScript: | az --version az account show - az account set --subscription -s ${{ secrets.AZURE_SUBSCRIPTION_ID }} + az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }} az stack sub delete --name ${{ env.stackname }} --location ${{ env.location }} --yes --verbose if: ${{ env.rollback == 'true' }} - name: deployTemplateSpec uses: azure/CLI@v1 with: - # azcliversion: latest + azcliversion: latest inlineScript: | az --version az account show - az account set --subscription -s ${{ secrets.AZURE_SUBSCRIPTION_ID }} + az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }} az ts create --name ${{ env.templateSpecName }} --version ${{ env.templateSpecVersion }} --location ${{ env.location }} --resource-group ${{ env.rgpIacName }} --description ${{ env.templateSpecDescription }} --template-file ${{ env.templateSpecSourceFile }} --yes --verbose sleep 20 id=$(az ts show --name ${{ env.templateSpecName }} --resource-group ${{ env.rgpIacName }} --version ${{ env.templateSpecVersion }} --query 'id')