Azure Logic app : validate existance of a blob in a container

Shaunt Khalatian 1 Reputation point
2020-06-03T00:23:20.257+00:00

Hi,
I don't seem to be able to find a task in logic app to check if a blob exists in a container.
I want to avoid getting the blob list (from the container) which is a JSON and run a foreach loop and check to see if my blob name matches any of the blobs in the container. I know the alternative is using an azure function. but I would like to avoid using a function in this instance if possible.

simply if I have a variable with the blob name, I want to validate and know if that blob exists in a container

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

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,636 Reputation points Microsoft Employee
    2020-07-02T12:10:38.2+00:00

    While there is no action named as such, you should be able to use the Get blob content using path action itself.

    • **If the blob is present, ** the action will succeed with its output having the required metadata.
    • **If not, ** it would fail, and you could handle the error in a parrallel path as required
    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.