Start-AzLogicApp Parameters not passed to Logic App workflow definition parameters
Description
The 'Start-AzLogicApp' command has a 'Parameters' parameter that 'Specifies a parameters collection object of the logic app. Specify a hash table, Dictionary
Steps to reproduce
Example script:
$lAppParamObj = @{ 'paramRequestorFirstName' = "TestParameterPassedIn"}
Start-AzLogicApp `
-ResourceGroupName "test-rg" `
-Name "TestLogicApp" `
-Parameters $lAppParamObj `
-TriggerName "manual"
Logic App parameters definition
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
},
"paramRequestorFirstName": {
"defaultValue": "test123",
"type": "string"
}
},
Initilising a variable within Logic App definition
"Initialize_variable_2": {
"inputs": {
"variables": [
{
"name": "RequestorFirstName",
"type": "String",
"value": "@{parameters('paramRequestorFirstName')}"
}
]
},
"runAfter": {},
"type": "InitializeVariable"
},
The variable returns "test123" instead of "TestParameterPassedIn"
The 'Parameters' object doesn't seem to be used anywhere https://github.com/Azure/azure-powershell/blob/master/src/LogicApp/LogicApp/Cmdlets/LogicApp/RunAzureLogicAppCommand.cs
The API doesn't seem to accept 'Parameters' either https://docs.microsoft.com/en-us/rest/api/logic/workflowtriggers/run
@refortie It looks like this parameter is completely unused in the cmdlet - can one of you take a look?
The problem actually lies in the Swagger and SDK and how we are generating the calls used in this cmdlet. It's a bug we have in our backlog, we just need to get it prioritized.
Ran into this at a customer today. Any quick workarounds we can utilize?
Can we use Test-AzLogicApp instead?
I don't think that this problem was solved, correct?
Is this issue still not fixed? I'm desperatly trying to create a powershell script which is basically missing the connections and will not work without.
@rarayudu Do you have any updates on this issue.
I think this issue still exists. I use New-AzLogicApp and Set-AzLogicApp commands to create and update logic apps with -Parameters. It does not work. Az.LogicApp version = 1.5.0 I store the parameter value in a json file and use -ParameterFilePath argument instead
What a shame, this issue is open since... nearly 3 years.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-logicapps-team.
Issue Details
Description
The 'Start-AzLogicApp' command has a 'Parameters' parameter that 'Specifies a parameters collection object of the logic app. Specify a hash table, Dictionary
Steps to reproduce
Example script:
$lAppParamObj = @{ 'paramRequestorFirstName' = "TestParameterPassedIn"}
Start-AzLogicApp `
-ResourceGroupName "test-rg" `
-Name "TestLogicApp" `
-Parameters $lAppParamObj `
-TriggerName "manual"
Logic App parameters definition
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
},
"paramRequestorFirstName": {
"defaultValue": "test123",
"type": "string"
}
},
Initilising a variable within Logic App definition
"Initialize_variable_2": {
"inputs": {
"variables": [
{
"name": "RequestorFirstName",
"type": "String",
"value": "@{parameters('paramRequestorFirstName')}"
}
]
},
"runAfter": {},
"type": "InitializeVariable"
},
The variable returns "test123" instead of "TestParameterPassedIn"
| Author: | mehowq |
|---|---|
| Assignees: | rarayudu, refortie |
| Labels: |
|
| Milestone: | - |
@mehowq Apologies for the late reply. We are looking into this issue and we will update this thread once we have more details on this.
@Azure/azure-logicapps-team Could you please provide an update on this ? Awaiting your reply.
Just tried this, still doesn't seem to be fixed.
This is still a problem in the latest version (1.6.0). Any news when we can expect this to be fixed? It's been quite some time since it was reported. Is there any workarounds/alternatives when you want to start a logic app (with parameter data) using Powershell? @navba-MSFT
:bell: Routing this issue to @act-observability-squad.