获取ADLAJob无法在Azure Run Book中工作 [英] Get ADLAJob not working in azure run book

查看:68
本文介绍了获取ADLAJob无法在Azure Run Book中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个PowerShell脚本,该脚本生成一个在夜间过程中失败的所有U-SQL作业的列表.

I am trying to create a PowerShell Script which generates a list of the all the U-SQL Jobs failed over a night process.

该命令可在PowerShell中运行,但是当尝试在Azure自动化中运行它时,出现以下错误.

The command works in PowerShell, however when trying to run it within azure automation I get the following error.

Cannot find the 'Get-AdlJob' command. If this command is defined as a workflow, ensure it is defined before the workflow that calls it. If it is a command intended to run directly within Windows PowerShell (or is not available on this system), place it in an InlineScript: 'InlineScript { Get-AdlJob }'

脚本是

工作流程 U-SQLDEV
workflow U-SQLDEV

推荐答案

身份验证在您的帐户中看起来如何Runbook?

How does the authentication look like in your runbook?

一个例子如下:


Conn = Get-AutomationConnection -Name AzureRunAsConnection Add-AzureRMAccount -ServicePrincipal -Tenant
Conn = Get-AutomationConnection -Name AzureRunAsConnection Add-AzureRMAccount -ServicePrincipal -Tenant


Conn.TenantID -ApplicationId
Conn.TenantID -ApplicationId


这篇关于获取ADLAJob无法在Azure Run Book中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆