Skip to content
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

Portal does not accept an empty value for string parameters #796

Open
Yvand opened this issue Sep 9, 2021 · 0 comments
Open

Portal does not accept an empty value for string parameters #796

Yvand opened this issue Sep 9, 2021 · 0 comments

Comments

@Yvand
Copy link
Contributor

Yvand commented Sep 9, 2021

When creating an environment from an ARM template using the DevTest Labs portal, I get error The value must not be empty if I pass an empty value for a string parameter.

This example allows to reproduce the issue:

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "incomingIPAllowedForRDP": {
      "type": "string",
      "defaultValue": "*",
      "minLength": 0,
      "metadata": {
        "description": "Specify which IP addresses are allowed to use RDP to connect to the VMs:<br>- If empty: Firewall denies all incoming RDP traffic from Internet.<br>- If '*' (default): Firewall accepts all incoming RDP traffic from Internet.<br>- If 'IPAddress': Firewall accepts incoming RDP traffic only from the specified 'IPAddress'."
      }
    }
  },
  "variables": {
  },
  "resources": [
  ],
  "outputs": {
  }
}

More info:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants