services | platforms | author |
---|---|---|
data-lake-analytics |
powershell |
matt1883 |
Data Lake Analytics - Using Azure PowerShell to get input and output paths of a U-SQL job
This script returns a list of input or output paths of a Data Lake Analytics U-SQL job. These paths can be any combination of U-SQL catalog paths, WASB file paths, or ADLS file paths.
Included script
Prerequisites
- Install Azure PowerShell on a Windows machine
- Open a new PowerShell session.
- Log in using
Login-AzureRmAccount -SubscriptionId <SUBSCRIPTION-ID>
How to run the script
- Copy the contents of the sample script to a new local file called
Get-AdlJobIoPath.ps1
- In PowerShell, navigate to the folder containing the script.
- Run
Get-AdlJobIoPath.ps1
using the syntax below.
Syntax
.\Get-AdlJobIoPath.ps1 [-Account] <string> [-Id] <Guid> [-Direction] {Input | Output}
Example
.\Get-AdlJobIoPath.ps1 -Account contosoadla -Id c3426e86-85f5-4521-b376-e4b3e8d32d8c -Direction Output