Valid format for the paramters file at Azure Logic App standards

Mohamed Hussein 715 Reputation points
2024-12-05T02:10:16.2466667+00:00

Good Day,

My question is quite trivial,

What's the correct format for the paramter file at Azure Logic App standard

I've tried the following, instructions here

https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/parameter-files#parameter-file

but did not work

Also, i think this link is not valid

https://aka.ms/LogicAppsStandardParameters

========================

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {

    "TestHusParam1": {
      "value": "TestHusVal1"
    }
  }
}

User's image

========================

Workflow validation failed

Workflow validation failed for the workflow

'HusAzFastLogicApp'. {"error":

{"code":"WorkflowParametersInvalidJson","message":"The

provided parameters file is not valid. The parameters file

should be a JSON object containing valid key-value

pairs. For more information, visit

https://aka.ms/LogicAppsStandardParameters

Help me troubleshoot

User's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

Answer accepted by question author
  1. VenkateshDodda-MSFT 25,241 Reputation points Microsoft Employee Moderator
    2024-12-05T05:03:16.6766667+00:00

    @Mohamed Hussein Thanks for reaching out to Microsoft Q&A. apologize for any inconvenience caused on this.

    I understand that you are unable to save the workflow post adding the new parameters in standard logic apps and it is failing.

    Ideally, in ARM template if you want to pass any parameter you have to declare them in azuredeploy.json file and you will initialize them by declaring their values in azuredeploy,parameters.json file.

    Since you are initializing the parameters directly before declaring them in main template that is the reason the workflow is getting failed.

    If you want to declare the parameters directly from Parameters blade, then you need to add the parameter in the below way.

    Animation_portal

    Or You can also add the parameters from the portal UI using the Parameter option in the designer blade of a particular workflow.

    User's image

    Refer to this documentation for more information about the parameters in logic apps in both Consumption and Standard.

    Hope you this helps, let me know if you have any further questions.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.