Storage blob content read in logic app

asked 2023-01-17T13:42:37.0033333+00:00
Azuretech 0 Reputation points

I have a logic app which is linked with automation runbook where we have defined parameters variables.

I want to add these parameter value from a blob storage , can we add this in logic app which reads a blob file(csv, json) and add the param value .

vmname, rg

vm1 , rg1

I want to read the value vm1 and rg1.

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

1 answer

Sort by: Most helpful
  1. answered 2023-01-24T06:06:57.27+00:00
    MayankBargali-MSFT 49,431 Reputation points Microsoft Employee

    @Azuretech Thanks for reaching out. Azure logic app does have Azure Automation connector and you can leverage Create Job action to run your job and pass the dynamic parameter that is accepted by your job in the body property of the action.

    To get the content from the blob you can leverage the Get Blob content (V2) action then will return the base64 string and depending on the file type it can directly provide you the actual string or base64string and now you can convert this base64string to string content using base64String function. If it is json content string then you can use Parse JSON action to get the user-friendly fields or tokens for those properties. Now you can pass this value to your Create Job action.

    Feel free to get back to me if you need any assistance.

    No comments