Skip to content

Commit

Permalink
Generate deploymentVariables.json in pipelines (Azure#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmusa authored Dec 16, 2021
1 parent 3ef5770 commit 29eced6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .azure-devops/nightlybuild/mlz-bicep-azurecloud-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ jobs:
--template-file $(TemplateFile) \
--parameters resourcePrefix=$datetime
- task: AzureCLI@2
displayName: "Generate deploymentVariables.json for all addons and examples"
inputs:
azureSubscription: $(ServiceConnectionName)
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
az deployment sub show \
--name $(bDeploymentName) \
--query properties.outputs \
> $(Build.SourcesDirectory)/src/bicep/examples/deploymentVariables.json
- task: AzureCLI@2
displayName: "Extract Values and Hydrate Variables for T3 Deployment"
inputs:
Expand Down
12 changes: 12 additions & 0 deletions .azure-devops/nightlybuild/mlz-bicep-azuregov-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ jobs:
--template-file $(TemplateFile) \
--parameters resourcePrefix=$datetime
- task: AzureCLI@2
displayName: "Generate deploymentVariables.json for all addons and examples"
inputs:
azureSubscription: $(GServiceConnectionName)
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
az deployment sub show \
--name $(bDeploymentName) \
--query properties.outputs \
> $(Build.SourcesDirectory)/src/bicep/examples/deploymentVariables.json
- task: AzureCLI@2
displayName: "Extract Values and Hydrate Variables for T3 Deployment"
inputs:
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"github.vscode-pull-request-github",
"timonwong.shellcheck",
"ms-azuretools.vscode-bicep",
"bierner.markdown-preview-github-styles"
"bierner.markdown-preview-github-styles",
"ms-azure-devops.azure-pipelines"
],

// Additional args to pass to the 'docker run' command
Expand Down

0 comments on commit 29eced6

Please sign in to comment.