1
votes

I've created a fairly simple Azure Logic App that connects to an Office 365 subscription, searches for a user and outputs the user's details to a storage blob.

It looks like this: enter image description here

I would like to re-use this Logic App to perform the exact same steps but targeting several other Office 365 subscriptions.

Is it possible for me to parametrize the Office 365 subscription id so that I can run the same app against different subscriptions? Something like the "Change connection" feature shown above, only done programmatically?

Notes:

  1. I'm thinking it could be ideal to pass in the Office 365 subscription id into the Logic App via a manual HTTP trigger.
  2. Assume I have been granted access permissions to all Office 365 subscriptions via an Azure AD web application (multi-tenant).
2
Hi @urig, i tried answering your inquiry below. if you find the answer helpful.may you mark it as answerRami Sarieddine
Thanks @RamiSarieddine. I usually leave questions open for a few days to give more people motivation to answer. I'll review in a couple of days and will surely accept your answer assuming no one provides a better answer.urig
I hear you. thanks for the feedback nevertheless. cheers!Rami Sarieddine

2 Answers

1
votes

currently it is not possible to parametrize the Office 365 subscription id so that you can run the same app against different subscriptions. If you view the code behind this, there is 1 trigger and followed by an action, every action connects to a single SaaS app.

0
votes

I believe this is possible via a multi-tenant Azure AD app. Here is an example.