at Microsoft.Graph.PowerShell.Runtime.PowerShell.GetScriptCmdlet.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecordat Microsoft.Graph.PowerShell.Runtime.PowerShell.GetScriptCmdlet.ProcessR
PowerShell/src/System.Management.Automation/engine/Utils.cs:line 760
at Microsoft.PowerShell.CommandLineParameterParser.GetConfigurationNameFromGroupPolicy() in /PowerShell/src/Microsoft.PowerShell.C
我目前正忙着将我的Azure AD PowerShell脚本转换为。我已经有了一些脚本,我想在Azure自动化中运行,但是我试图弄清楚如何连接到Azure自动化。使用Azure AD PowerShell,我在Azure自动化中有一个连接的服务帐户。使用Microsoft,我尝试使用Azure自动化帐户中的RunAs帐户,其连接如下:
$Connection = Get-AutomationConnection -Name AzureRunAsConnection# Connect to the