https://pulumi.com logo
#general
Title
# general
w

white-architect-1595

12/27/2022, 3:36 PM
Hello everyone! My team is trying to use Pulumi to create Azure Logic Apps (Standard) that have multiple workflows under one Standard Logic App. We can find details on how to create a logic app, but we want to create multiple workflows under one standard logic app. Has anyone done this before? We have looked over all Pulumi documentation and none of it is helpful in creating one standard logic app with multiple workflows under it. The documentation is only for creating the logic app in itself. Thanks in advance!
m

many-telephone-49025

12/27/2022, 6:21 PM
Hi Tucker, Is this not under the
actions
tag in the workflow definition, that you can add multiple actions? https://www.pulumi.com/registry/packages/azure-native/api-docs/logic/workflow/
I assume, you are using the
azure-native
provider
w

white-architect-1595

12/27/2022, 6:35 PM
Yes to Azure Native, and to your point. I dont think actions accomplish what I want. We want to create one Logic App Standard that contains multiple different workflows. Actions seems to be a specific element in an workflow (correct me if wrong)
m

many-telephone-49025

12/27/2022, 6:37 PM
Would help if you had a tutorial or example I can look at from using the CLI / Portal / ARM you name it so I can have a look! I never worked with the Logic Apps.
w

white-architect-1595

12/27/2022, 6:42 PM
An example of what we are trying to accomplish?
m

many-telephone-49025

12/27/2022, 6:45 PM
From creating multiple workflows under one logic app. Maybe there is an example or so I can look at.
I tried to google but I see so many different versions
and some examples are very basic.
w

white-architect-1595

12/27/2022, 6:47 PM
Don’t bother, we tried to Google as well and we havn’t found anything. Which is why I came to this group
m

many-telephone-49025

12/27/2022, 6:48 PM
Can you do this via the Portal UI?
w

white-architect-1595

12/27/2022, 6:48 PM
Azure native piggy backs off the Azure SDK right?
m

many-telephone-49025

12/27/2022, 6:48 PM
Yes, I saw this too in one medium.com article
NO
w

white-architect-1595

12/27/2022, 6:49 PM
Yes, you can do this in the portal UI at Portal.Azure
but wed like to do via Pulumi
m

many-telephone-49025

12/27/2022, 6:49 PM
It's directly on the Azure ARM API
Question: Can you export the UI example to Azure ARM? There should be an option
that could be a good starting point to build it in Pulumi too. As azure-native uses the ARM API
w

white-architect-1595

12/27/2022, 6:51 PM
taking a look ill get back to you
m

many-telephone-49025

12/27/2022, 6:51 PM
kk, and sorry for this. I should do more with Logic App! 😄
w

white-architect-1595

12/27/2022, 6:52 PM
No prob, we are at a stand still right now so anything to investigate is a plus
ARM stands for Azure Resource Manager right
m

many-telephone-49025

12/27/2022, 6:55 PM
yes
I have to test this now too!
Now you got me hooked 😄
w

white-architect-1595

12/27/2022, 7:27 PM
Ok I figured out how I can export the template
m

many-telephone-49025

12/27/2022, 7:37 PM
I could create a Standard logic app to with multiple wrkflows
now I try to understand how to link multiple definitions to one logic app
I think you have to add the defintions files to the storage (into the table)
w

white-architect-1595

12/27/2022, 7:45 PM
You where able to do that within Portal.Azure?
m

many-telephone-49025

12/27/2022, 8:02 PM
My defintions are stored in a file share inside the storageaccount
under site/wwwroot/
w

white-architect-1595

12/27/2022, 8:04 PM
but did you do all this via portal.azure or pulumi
m

many-telephone-49025

12/27/2022, 8:04 PM
to upload them to the storage
w

white-architect-1595

12/27/2022, 8:05 PM
so you did all this using Pulumi?
m

many-telephone-49025

12/27/2022, 8:08 PM
No currently digging through the ARM and the portal
w

white-architect-1595

12/27/2022, 8:11 PM
cool
m

many-telephone-49025

12/27/2022, 8:18 PM
If you did not done it already, I will write 2morrow a little demo program to try out
the investigation
w

white-architect-1595

12/27/2022, 8:19 PM
I have dont done already working through, But is your thought you create a resource group and a storage account and then a standard logic app and then the workflows stored in the Storage account?
m

many-telephone-49025

12/27/2022, 8:19 PM
yes
you can set the so called parameter field in the worflow resource
there you can set the StorageAccountName
But it's all vague and I have to try out
w

white-architect-1595

12/27/2022, 8:22 PM
ok
m

many-telephone-49025

12/28/2022, 9:27 PM
HI @white-architect-1595, Here is the demo Pulumi code to deploy a Azure Logic App (Standard) and a example on uploading the files via Azure CLI It is important that you sent your Azure Subscription ID as config value. See README.md for examples! https://github.com/dirien/quick-bites/tree/main/pulumi-azure-logic-apps