MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

John Dole PS example script doesn't work when deployed #119833

Closed damianvandoom closed 8 months ago

damianvandoom commented 9 months ago

The power shell example (https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/deployment-script-bicep?tabs=PowerShell#monitor-and-troubleshoot-a-deployment-script) produces an error when deployed to Azure.

The provided script failed with the following error: System.Management.Automation.ParameterBindingException: Cannot bind parameter 'ForegroundColor'. Cannot convert value "John Dole" to type "System.ConsoleColor". Error: "Unable to match the identifier name John Dole to a valid enumerator name. Specify one of the following enumerator names and try again: Black, DarkBlue, DarkGreen, DarkCyan, DarkRed, DarkMagenta, DarkYellow, Gray, DarkGray, Blue, Green, Cyan, Red, Magenta, Yellow, White"


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Naveenommi-MSFT commented 9 months ago

@lab44Hub Thanks for your feedback! We will investigate and update as appropriate.

MonikaReddy-MSFT commented 8 months ago

@lab44Hub - Thanks for reaching out to us. Can you please provide more information on how you deployed the Bicep file, and provide a copy of your Bicep file if possible? so we can investigate it further. thank you

MonikaReddy-MSFT commented 8 months ago

@lab44Hub - Since we have not heard back from you, we will now proceed to close this thread. However, if you can share additional information as requested and circle back on this thread, we will gladly reopen the issue and continue the discussion. Thank you.