none
Data Factory Command User Access Level

    Question

  • I have a Batch Service pipeline I'm trying to build, and need to execute the commands as admin.  Any ideas for how to implement this?

    When I go to the Batch JSON file (after the job fails), I see the command line, and Batch assigns userIdentity as follows:

    "userIdentity": {
    "autoUser": {
    "elevationLevel": "nonadmin"
    }

    Any way to change this? Either by default, or by passing in a JSON parameter from Data Factory?

    Thanks.

    Tuesday, May 1, 2018 6:21 PM

All replies

  • Hello,

    I do not see a way to specify a Auto user or Named user options on the ADF side.  However, on the Batch side, you can configure the Auto user with elevated admin permissions to execute a command:

    https://docs.microsoft.com/en-us/azure/batch/batch-user-accounts#auto-user-accounts

    In this scenario, you would create a program, such as the ones in the examples, where you would elevate the Auto user's permissions then call the command from within the program.  In ADF, you would then call the program to execute the command, instead of calling the command directly. 

    Thursday, May 31, 2018 10:51 PM
    Moderator