Skip to content

Commit

Permalink
template(spec): fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
autocloudarc committed Jan 9, 2024
1 parent 81944b9 commit 13d7df4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion exercises-dev/.github/workflows/deploy-az-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions exercises-dev/main-exercises-dev.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 13d7df4

Please sign in to comment.