createuidefinition output parameter part not working as expected If condition are not getting evaluated

Ankur Jain 21 Reputation points

Hi Team,

I am stuck in publishing, and tried this but on portal and sandbox no error it just say below paramter is missing value in template that means UI is not passing parameter value to template when i used IF but without this working fine.

"fipStartAddress": "[if(contains(steps('Networking').DeploymentType,'dedicated'),'','')]"


"virtualNetworkName": "[if(contains(steps('Networking').DeploymentType,'asaservice'),'(steps('Networking')','(steps('Networking')')]"

Could some one please help to identify if there is any issue in above I am coding or known issue ??


Ankur Jain

Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
99 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 22,831 Reputation points Microsoft Employee

    Hi @Ankur Jain

    Based off the information you provided, I would suggest setting the actual value property as follows:

    "outputs": {
        "fipStartAddress": {
            "type": "string",
            "value": "[if(equals(steps('Networking').DeploymentType, 'dedicated'), '', '')]"

    The value may be implied in the portal and sandbox but not during publishing. If you still getting the error message, please share more of your createUiDefinition.json so we can gain a better understanding of what you're doing.

    0 comments No comments