Migrating jobs on Sql agent to azure data factory

khouloud Belhaj 91 Reputation points
2021-05-13T11:14:46.76+00:00

Hello the community,
The goal is to migrate a project that runs in production through SQL AGENT sequences and power shell scripts. The Purpose is to recover elements and save them in blob storage. I have access to the power shell file locally in my computer, which I am looking to have run these files in azure data factory. Any suggestions please ?
96345-capture33.png

Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
894 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,425 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nandan Hegde 34,856 Reputation points MVP
    2021-05-13T11:42:19.94+00:00

    Hey,
    In case if you need to execute powershell scripts in Azure, you can use the below components:

    1. Azure automation : wherein you can schedule your powershell run book similar to SQL jobs
    2. In case if you need to execute the powershell scripts via Azure data factory, there is no direct way.
      You would need to create an Azure function for Powershell wherein you would host your scripts and trigger the Azure function via https trigger through Azure data factory
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. khouloud Belhaj 91 Reputation points
    2021-05-13T12:23:04.207+00:00

    Hey,
    Thanks for you answer.
    Do you have documentation for your second proposition ? This will help me a lot!


  2. IBN HADJ, Khouloud (COLAS DIGITAL SOLUTIONS) 1 Reputation point
    2021-06-11T12:12:17.427+00:00

    @Nandan Hegde hey Nadan , I have tried to execute my script powershell with both methods. In fact, there is an issue while authentication via runbook to powerful BI. The same when I have tried to work with functions. I created a service principal and tried the active directory approach to make it work but unfortunately it failed. The reason why is the incompatibility issue between ADAL and powerful core as you can see in this post <<https://github.com/PowerShell/PowerShell/issues/10473>>

    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.