Skip to content

Azure DevOps pipeline build not showing warnings #4067

Answered by kevball2
everton-o asked this question in Q&A
Discussion options

You must be logged in to vote

I would not worry about build the file for validation, but rather just running validation and let the CLI transpile the bicep file for you

steps:
  - task: AzureCLI@2
    displayName: 'Validate Bicep File"
    inputs:
      azureSubscription: '${{ parameters.azureServiceConnection }}'
      scriptType: 'bash'
      scriptLocation: 'inlineScript'
      inlineScript: |
        az --version
        az deployment sub validate \
        --name 'Validation Deployment Name' \
        --location '<location>' \
        --template-file 'template.bicep' \
        --parameters 'parameterfile.json' 

You can also run the same type of validation for group deployments as well
it would also be good to hav…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@everton-o
Comment options

@brwilkinson
Comment options

@everton-o
Comment options

Answer selected by everton-o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants