Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
74 stars 80 forks source link

[Templates] can we chose between appsettings and parameters? #5475

Open Viktorh89 opened 3 weeks ago

Viktorh89 commented 3 weeks ago

Describe the Bug with repro steps

Instead of getting all env-specific values as params, is it possible to support appsettings as well?

one reason (there are many) for this is, how do we refer ex KeyVault here without avoiding

params.json:

"queueName_secret": {
    "type": "securestring",
    "value": "@appsetting('secretQueuename')"
},

maybe this is possible or solvable in other ways - if so please let me know

What type of Logic App Is this happening in?

Standard (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

No response

Screenshots or Videos

No response

Browser

chrome

Additional context

No response

zzznz27 commented 3 weeks ago

You can reference app settings directly in logic app using @appsetting('appsettingName') See here: https://learn.microsoft.com/en-us/azure/logic-apps/create-parameters-workflows?tabs=consumption#parameters-for-consumption-versus-standard-logic-app-workflows

preetriti1 commented 3 weeks ago

@divyaswarnkar - It seems the customer here want capability to choose the appsetting in the parameters tab while authoring.

@Viktorh89 - Can you confirm that is what you want or you want a toggle in each parameter that when you put the value it goes in appsetting instead of parameters.json?

FOr now you can always put the expression and go ahead with creation given you already have the appsetting saved.

Viktorh89 commented 3 weeks ago

@preetriti1 no, i want to use @appsettings instead of params ideally (not defaulting to params)