Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created April 19, 2022 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlokerse/0d4dc8d51256da9f4f7b419b46a8619d to your computer and use it in GitHub Desktop.
Save johnlokerse/0d4dc8d51256da9f4f7b419b46a8619d to your computer and use it in GitHub Desktop.
Blog content
jobs:
- job: Checkout
steps:
- checkout: git://bicep-validation/bicep-validation@$(Build.SourceBranch)
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.SourcesDirectory)
artifactName: drop
- job: Validation_Step_PR
displayName: "Validating Bicep in PR"
dependsOn: Checkout
steps:
- task: DownloadPipelineArtifact@2
inputs:
artifact: drop
- task: AzureCLI@2
displayName: Validate
inputs:
azureSubscription: publish-my-iac
scriptType: pscore
scriptLocation: inlineScript
inlineScript: >
az deployment group validate
--resource-group rg-we-prod-validation
--template-file Infrastructure/Templates/virtualNetwork.bicep
--parameters Infrastructure/Parameters/virtualNetwork.parameters.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment