-
Notifications
You must be signed in to change notification settings - Fork 754
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
Azure Portal: languageVersion 2.0 nullable
parameters are incorrectly marked as required
#13838
Comments
@jurjenoskam Are you able to set the parameter explicitly to |
@stephaniezyen Can you triage this with the portal team? |
@majastrz Unfortunately I haven't found a way to work around it, because anything you enter in the input field is not interpreted and simply becomes part of the literal contents of the string. For example, entering The same problem occurs in uiDefinition specifications by the way: if the uiDefinition does not explicitly output a value for a |
Nullable is currently not supported in Custom Deployment. The Portal team has added this ask to their backlog, however no ETA on when this will be available. |
A parameter that is marked as
nullable
by using?
in the Bicep template will be incorrectly shown by the Azure Portal as a required parameter. (This is in the new functionality that was just introduced by the update that fixes #11096.)To reproduce, publish the following (minimal but complete) Bicep template to a Template Spec and then try to deploy that Template Spec from the Portal:
You will notice that the Portal shows an
*
next to the parameter calledTest
, indicating that it is a required parameter. It will not accept leaving the input field empty, and refuse to deploy the template. There is no way to get the template output to be the stringnothinghere
(other than to supply exactly that string in the input field obviously).Transpiling that template to ARM gives the following result. This is also the template that's shown when viewing the contents of the Template Spec.
The text was updated successfully, but these errors were encountered: