Bicep support #854
Locked
Elinora White (ElinoraWhite)
announced in
Announcements
Replies: 1 comment 2 replies
|
Hi 👋 I know this is still an experimental feature, but I'm trying to run a pre-flight validation on my bicep code, using Azure Pipelines. My repo structure looks like this: I have all of my bicep code in a single The stage which runs the pre-flight validation: - stage: Validate
jobs:
- job: ValidateBicepCode
displayName: Validate Bicep code
steps:
- task: ps-rule-install@0
displayName: Install PSRule.Rules.Azure
inputs:
module: 'PSRule.Rules.Azure'
- task: ps-rule-assert@0
displayName: Analyze Azure template files
inputs:
inputType: 'inputPath'
inputPath: './deploy/main.bicep'
modules: 'PSRule.Rules.Azure'
outputFormat: NUnit3
outputPath: reports/ps-rule-resources.xml
- task: PublishTestResults@2
displayName: 'Publish PSRule results'
inputs:
testRunTitle: 'PSRule'
testRunner: NUnit
testResultsFiles: 'reports/ps-rule-results.xml'
condition: succeededOrFailed()Running the stage goes fine,, however the The full task output: What am I missing here? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
We just added support for Bicep. Expansion of Bicep source files is currently experimental. You can try it out by installing PSRule for Azure v1.6.0 or newer.
https://azure.github.io/PSRule.Rules.Azure/using-bicep/
https://azure.github.io/PSRule.Rules.Azure/install-instructions/
https://azure.github.io/PSRule.Rules.Azure/creating-your-pipeline/
Let us know how you go.
Updated: Bicep support is generally available for use as of PSRule for Azure v1.11.0.
All reactions