Created
April 14, 2022 16:18
-
-
Save johnlokerse/033a92ad85dde67565fdd97f4de87321 to your computer and use it in GitHub Desktop.
Validate_Bicep.yml for bicep validation blog
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