LogicApp (Standard) - automate parameters such as tenantId

Anonymous
2022-03-21T10:45:34.693+00:00

Hi all,

I am developing a LogicApp (Standard). I am looking for a solution to get some properties (such as: TenantId, SubscriptionId, ResourceGroup) from the developed LogicApp resource.

I am not sure if it is a right approach, but I've tried to put the configuration into the paramaters section of LogicApp and tried to use the subscription() function available for ARM templates (source [template-functions-scope][1])

{
    "tenant_id": {
        "type": "String",
        "value": "[subscription()['tenantId']]"
    }
}

It does not resolve this case... Do you have any idea to extract the LogicApp properties and use them inside the workflow?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,217 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nasreen Akter 10,791 Reputation points
    2022-03-21T12:41:55.247+00:00

    Hi anonymous user,

    Thank you for the ask.

    From my understanding,

    • when you are initially developing a LogicApp, you have to add manually the values in the parameters section e.g, subscriptions, tenentId etc.
    • now after building the LogicApp, when you are going to deploy it through the ARM template, at that time you would be able to put the value dynamically.

    Please see screenshots below. Hope this will help. Thanks! :)

    185231-image.png
    185117-image.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.