Executing powershell script throuh Azure data factory

Rohit Boddu 471 Reputation points
2020-09-24T12:17:39.117+00:00

Hi Team,

I have working on one requirement where i need to execute powershell script through azure data factory.

Actually in my adls storage account i have automatically created containers by some jobs which i want to delete. i need to do clean up of containers on every 15 days.

So i want to create pipeline in azure data factory which can run the powershell script.

Could you please provide me some guidance on how to accomplish this task.

Regards,
Rohit.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} vote

Answer accepted by question author
  1. KranthiPakala-MSFT 46,737 Reputation points Microsoft Employee Moderator
    2020-09-24T16:39:32.597+00:00

    Hi @Rohit Boddu ,

    Thanks for your query.

    You can use custom activity to execute your powershell through Azure Data Factory.
    Here is the documentation about how to use Custom activity : Custom Activity in ADF

    Here is another Delete activity which can be used to delete files and folders from on-premise/cloud storage stored. Just sharing incase if you can leverage this activity based on your specific requirement : Delete Activity in Azure Data Factory

    Hope this helps. Let us know if you have further query.

    ----------

    Thank you
    Please do consider to click on "Accept Answer" and "Upvote" on the post that helps you, as it can be beneficial to other community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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