From 13d7df47dc3102106b7226d2ba9b7fd9d1492b4d Mon Sep 17 00:00:00 2001 From: autocloudarc Date: Tue, 9 Jan 2024 10:32:17 -0500 Subject: [PATCH] template(spec): fix deploy --- exercises-dev/.github/workflows/deploy-az-resources.yml | 2 +- exercises-dev/main-exercises-dev.bicep | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/exercises-dev/.github/workflows/deploy-az-resources.yml b/exercises-dev/.github/workflows/deploy-az-resources.yml index 3b99fc5..8af2529 100644 --- a/exercises-dev/.github/workflows/deploy-az-resources.yml +++ b/exercises-dev/.github/workflows/deploy-az-resources.yml @@ -98,7 +98,7 @@ jobs: az --version az account show az account set --subscription ${{ secrets.AZURE_SUBSCRIPTION_ID }} - az ts create --name ${{ env.templateSpecName }} --version ${{ env.templateSpecVersion }} --location ${{ env.location }} --description ${{ env.templateSpecDescription }} --template-file ${{ env.templateSpecSourceFile }} --yes --verbose + az ts create --resource-group ${{ env.rgpIacName }} --name ${{ env.templateSpecName }} --version ${{ env.templateSpecVersion }} --location ${{ env.location }} --template-file ${{ env.templateSpecSourceFile }} --version-description ${{ env.templateSpecDescription }} --yes --verbose sleep 20 id=$(az ts show --name ${{ env.templateSpecName }} --resource-group ${{ env.rgpIacName }} --version ${{ env.templateSpecVersion }} --query 'id') az deployment group create --resource-group ${{ env.rgpIacName }} --template-spec $id --parameters ${{ env.templateSpecParamFile }} --verbose diff --git a/exercises-dev/main-exercises-dev.bicep b/exercises-dev/main-exercises-dev.bicep index b2e7ffe..e1be4fa 100644 --- a/exercises-dev/main-exercises-dev.bicep +++ b/exercises-dev/main-exercises-dev.bicep @@ -10,7 +10,6 @@ param labResourceGroup string = 'rgp-lab' // param keyVaultSecret string param iacResourceGroup string = 'rgp-iac' param kvtName string = 'iac-kvt-01' -param secretName string = 'kvtPw' resource resourceGroup 'Microsoft.Resources/resourceGroups@2023-07-01' = { name: labResourceGroup @@ -65,7 +64,6 @@ output staAccountId3 string = lab.outputs.staAccountId3 output staAccountId string = lab.outputs.storageAccountId output logAnalyticsId string = lab.outputs.lawId output keyVaultId string = kvt.id -output keyVaultSecretName string = secretName output labStaAccountIds array = lab.outputs.staAccountIds output labStorageAccountInfo array = lab.outputs.storageInfo output labExtraStorageAccountId string = lab.outputs.additionalStaId