有没有办法将变量从 Power Automate 获取到 Powershell?

问题描述 投票:0回答:1

您好,我正在 Power Automate 云中创建一个入职流程,它将创建一个用户,将他们分配到一个部门并将他们添加到他们部门的通讯组列表中,并根据他们的电子邮件地址生成别名。

为了实现这一点,我需要使用在 Azure Automation Runbook 中运行的 Powershell 脚本,因为 Power Automate 不允许我将某人分配到通讯组列表。

我已经成功地创建了一个创建用户的 Power Automate 流程,以及一个 Powershell 脚本,该脚本使用户可以访问通讯组列表并创建别名。但是我不知道如何“将这两者联系在一起”。我知道我需要在 Power Automate 中为 Azure Automate 使用“创建作业”操作,但是我不知道如何让 powershell 准确识别 Power Automate 生成的变量。

azure powershell power-automate azure-automation azure-runbook
1个回答
0
投票

您可以使用适用于 Power Automate Premium Class 的 Azure 自动化连接器。有关更多信息,请参阅thisthis 文档。

© www.soinside.com 2019 - 2024. All rights reserved.