Created
April 19, 2022 14:56
-
-
Save johnlokerse/0d4dc8d51256da9f4f7b419b46a8619d to your computer and use it in GitHub Desktop.
Blog content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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