-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az bicep decompile: add exit code for warning errors #25009
Copy link
Copy link
Open
Labels
Azure Deploymentsaz deployment/bicep/stack/deployment-scripts/ts/group exportaz deployment/bicep/stack/deployment-scripts/ts/group exportService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
Azure Deploymentsaz deployment/bicep/stack/deployment-scripts/ts/group exportaz deployment/bicep/stack/deployment-scripts/ts/group exportService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Related command
az bicep decompile
Is your feature request related to a problem? Please describe.
Similar to PowerShell/PSScriptAnalyzer#840
az bicep decompileseems to always return exit code 0 or at least for warningsthere should be an option to detect warning so it can update status appropriately in azure-pipelines
https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash
I'm using this command to validate my ARM templates as part of azure pipelines.
Describe the solution you'd like
Either by default, either with an option, it should be possible an exit code that could match a pipeline status (success, warn, fail/error...)
Describe alternatives you've considered
An alternative would be trapping command output and search for warning.
Additional context
N/A