-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-AzResourceGroupDeployment : needs to show Bicep error message on console #14508
Comments
@BethanyZhou FYI. |
According to Azure/bicep#1757, we need to show output of Bicep on PowerShell console. |
As of today (in a fresh environment, so everything should be up to date)... still getting the cryptic error of |
Thanks for reporting @dcorbin-wintellect . What's your Az.Resources version. Please try to get that by |
PS D:\Data-Lakes-Factories-Bricks> Get-Module Az.Resources
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 5.3.0 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}
***@***.***
***@***.***
From: Beisi Zhou ***@***.***>
Sent: Wednesday, February 16, 2022 9:05 PM
To: Azure/azure-powershell ***@***.***>
Cc: David Corbin ***@***.***>; Mention ***@***.***>
Subject: Re: [Azure/azure-powershell] New-AzResourceGroupDeployment : needs to show Bicep error message on console (#14508)
Thanks for reporting @dcorbin-wintellect<https://github.com/dcorbin-wintellect> . What's your Az.Resources version. Please try to get that by Get-Module
—
Reply to this email directly, view it on GitHub<#14508 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AT3Q5VDIQKGU4ZWCOK7UHVLU3RJUPANCNFSM4Y6TQNGA>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Thanks for your help. @dcorbin-wintellect
|
@BethanyZhou -- It was an old install of bicep .... Had not realized that "c:>bicep" and "c:>az bicep" invoked completely different installations... |
Ok, could you run your command with -Verbose -Debug to show us more information? |
@BethanyZhou - The machine has since been updated. |
Description
The deployment cmdlet won't work if a Bicep file contains errors. I would expect it to print out the compilation errors. Also, if a Bicep file is valid but has warnings, the warnings will not be printed.
Steps to reproduce
Environment data
Module versions
Debug output
Error output
The text was updated successfully, but these errors were encountered: