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

Parameter types are not being persisted #6013

Open
las3r opened this issue Nov 1, 2024 · 0 comments
Open

Parameter types are not being persisted #6013

las3r opened this issue Nov 1, 2024 · 0 comments
Assignees

Comments

@las3r
Copy link

las3r commented Nov 1, 2024

Describe the Bug with repro steps

  1. Deploy a logic app that contains parameters.
  2. Open the logic app in the azure portal using the new designer
  3. Click the code view tab

You will now see that the parameter types that have been defined are gone from the code code that defines the logic app definition.

If you try saving the logic app from the code view (after deployment, unchanged), an error will popup:

Image

IF you manually add the type to the code view (in the json), the file will save properly, and you can make manual edits fine.

If you refresh the page, the error will appear again (and this data will be gone from the code view again.

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

Bicep for rolling out:

resource logicApp 'Microsoft.Logic/workflows@2019-05-01' = {
  name: logicAppName
  location: location
  tags: {
    displayName: logicAppName
    createdBy: releaseInfo
  }
  identity: {
    type: 'SystemAssigned'
  }
  properties: {
    definition: json(loadTextContent('./logicapp-definitions/logicapp-case-definition.json'))
    parameters: {
      infra: {
        type: 'Object' // I am defining the parameter in the parameters object on the logic app itself here from bicep. This one is removed after deployment.
        value: infra 
      }
    }
  }
  dependsOn: []
}

Redacted content of my workflow file

{
    "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
    "contentVersion": "1.0.0.0",
    "triggers": {
       "some": "trigger"
    },
    "actions": {},
    "outputs": {},
    "parameters": {
        "infra": {
            "type": "Object" // This one is properly transferred to the logic app.
        }
    }
}

Browser

Edge

Additional context

The old designer did not have this problem.

@Eric-B-Wu Eric-B-Wu self-assigned this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants