logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

Logic app standard - local development in vscode parametrization of connections.json

Open ykursav opened this issue 3 years ago • 1 comments

Hi all,

I have parametrized connections.json in the root directory of project. When you try to open with designer in vscode it throws below error: (It is same like issue https://github.com/Azure/logicapps/issues/463 but in local development environment.)

I tried multiple options like putting parameters instead of appsettings etc. nothing works.

image

It would be nice to be able to use same parametrized connections.json file for local development and deploying to azure.

ykursav avatar Apr 28 '22 08:04 ykursav

What works for me (only works on local, this will throw errors on portal):

Don't reference to appsettings directly, instead; reference to the parameters.json first like: @{parameters('WORKFLOWS_SUBSCRIPTION_ID')}

Then reference to your appsettings inside your parameters.json like: @{appsetting('WORKFLOWS_SUBSCRIPTION_ID')}

erwinkramer avatar May 27 '22 12:05 erwinkramer

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 20 '22 21:10 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Oct 27 '22 22:10 github-actions[bot]

Please re open

erwinkramer avatar Oct 27 '22 22:10 erwinkramer

Hey all, Support for parameterization in local without burly braces was made in Sep 7th (from 1.0.40 version). Meaning that connections.json can support both types of parameterization: @{parameters('WORKFLOWS_SUBSCRIPTION_ID')} & @parameters('WORKFLOWS_SUBSCRIPTION_ID')

As for now Portal does only support parameterization with curly braces. Meaning that connections.json can only support: @{appsetting('WORKFLOWS_SUBSCRIPTION_ID')}

ccastrotrejo avatar Oct 27 '22 22:10 ccastrotrejo