订阅

UiPath Orchestrator

UiPath Orchestrator 指南

Automation Cloud™ Robot - VM

UiPath Automation Cloud TM Robot - VM(简称 Cloud Robot - VM),使您可以轻松设置运行自动化所需的基础架构。
我们在幕后处理所有工作,并为您提供运行自动化的虚拟机。 您唯一需要做的就是配置虚拟机并运行作业。

 

Running unattended automations using cloud robots - VM

步骤 1. 创建 Cloud Robot 池


您必须创建类型为 Cloud Robot - VM 的新计算机模板。

计算机模板允许您配置将应用于所有由此创建的 Cloud Robot - VM 计算机的属性。然后,每当您需要计算机时,我们都会根据需要创建与模板完全相同的计算机。

  1. 导航到“租户”>“计算机”。

  2. 单击右上角的“添加计算机”,然后选择“Cloud Robot - VM”。

    系统将打开“添加 Cloud Robot - VM”页面:

1330

一般详细信息

  1. 填写“名称”字段,(可选的)并填写计算机模板的“说明”字段。

计算机管理详细信息

  1. 选择计算机池的管理类型:
    • 手动 - 允许您在计算机上创建和删除计算机、使用远程桌面、添加自定义软件或实施自定义配置。系统会在您后续登录时保留您所做的更改。
    • 自动 - 我们为您创建和删除计算机。允许您远程登录这些计算机以进行调试,但您所做的更改将在注销时停止。

📘

创建计算机池后,计算机管理详细信息将成为确定性详细信息,您无法对其进行编辑。

  1. 单击“下一步”以进入下一步。系统将显示虚拟机和运行时详细信息页面。
1319

Virtual machine (VM) details

  1. Under Pool Environment, select if you want to run your robots in a Production or a Test/NonProduction environment. Different RU consumption rates apply depending on your selection. See Robot units for more details.
    Note: To use Test/NonProduction environment, you must be on the Enterprise, Pro, or Pro Trial licensing plan.
  2. 虚拟机大小列表中,选择具有所需技术规格的计算机类型。有关更多信息,请参阅我应该选择哪种计算机尺寸?
  3. 计算机映像下,从以下列表中选择一个计算机映像:
    • “标准”,如果您要使用标准虚拟机(规格)。
    • 自定义,如果您要使用其中一台现有的自定义计算机
  4. 在“IP 地址”下,选择是否要让计算机使用动态 IP 地址或静态 IP 地址。
    默认情况下,虚拟机使用动态 IP 地址,这意味着每次启动时都会获取不同的 IP 地址。要使用相同的 IP 地址,请将此设置更改为“静态”。
  5. 为您的计算机选择计算机可用性配置文件。您可以借此通过关闭闲置时间超过所选持续时间的计算机来恢复 Robot Units:
  • 平衡 – 默认配置文件。您的计算机将在闲置超过 30 分钟后关闭。
  • 快速 – 您的计算机在闲置超过 60 分钟后关闭。向平衡成本配置文件添加 500 个 RU。
  • 始终 - 无论其闲置时间长短,您的计算机都不会关闭。向平衡成本配置文件添加 1,000 个 RU。
    注意:您的选择会立即更新 Robot Units 消耗量,因此请确保您有足够的 Robot Units 来运行所选配置文件。

📘

  • 计算机可用性配置文件适用于池中的所有计算机,无论其规格如何。
  • If the Accept jobs option is enabled, the machine shuts down after 12 hours, regardless of what you selected as a machine availability profile.

Runtime 详细信息

  • “每台计算机的执行插槽”字段将自动设置为 1,您无法更改它。这意味着从此模板创建的任何计算机一次只能运行一个作业。
  • Runtime 许可证:Robot Units (RU) - 使用此模板创建的每台计算机都需要多个 Robot Units (RU)。确保为租户分配足够的 Robot Units,否则将无法创建计算机。

📘

在 RU 消耗方面,手动托管的计算机优先于自动托管的池:如果 Robot Units 不足以供所有计算机使用,则系统会将可用的 RU 分配给手动托管的计算机。

  1. 如果您在步骤 4 中选择了“自动”选项,请输入您希望我们代表您创建的最大虚拟机数量。这会影响创建自动池所需的 Robot Units 数量。
  2. 单击“下一步”以配置池。

池配置

  1. (Optional) If you want to set a periodic timeframe for installing push updates on VMs that belong to this template, switch on the Enable maintenance window toggle.
    系统将显示维护窗口页面。在这里,您可以设置属于此模板的所有计算机进入维护模式,并可以接收推送更新(例如 Windows 安全更新)的时间跨度。有关详细信息,请参阅常见问题解答
    a. 从“时区”列表中,选择用于安排维护时段的时区。
    b. 在“重复周期”下,选择维护时段的频率,然后填写所选选项的字段。
    c. 在“其他选项”下,选择您所需的时段时长。
    窗口将按照“重复周期”下的指示开始,并在您在此处选择的时间后结束。
    d. 如果要确保按计划执行维护,请选中“时段开始时终止正在运行的进程”复选框。

  2. (可选)如果您已为此租户设置 VPN 网关,并且希望允许属于此模板的计算机访问防火墙后的公司资源,请执行以下操作:
    a. Switch on the Enable VPN Integration toggle.
    系统将显示“VPN 网关”部分。
    b. 在“VNet 的地址空间”字段中,使用 CIDR 表示法添加从网络管理员处收到的保留 IP 地址,掩码为 /24

  3. 单击“完成”以创建模板。

在“计算机”页面上,顶部会显示一条成功消息,您可以在列表中看到新模板。

 

Step 2. Adding machines for manually managed VM pools


After you have configured the manually managed cloud robot pool, you can add machines to it.

  1. 导航到“租户”>“计算机”。
  2. At the right of the pool row, click More Actions and select Add or Manage VMs:
1800

系统将打开“管理 Cloud Robot - VM”页面。

  1. 单击右上角的“添加虚拟机”。
    系统将打开“添加虚拟机”页面。

📘

如果底部的“成本”以红色字体显示,则表示租户中可用的机器人单元 (RU) 不足,您无法创建新计算机。
如果您是 Automation Cloud 中的组织管理员,则可以单击“向租户余额添加更多机器人单元”,以转到“管理员”>“租户”,然后将所需的 RU 分配给该租户。
否则,请联系您的组织管理员以请求其他 RU。

VM aliases

  1. (Optional) Fill in the Alias field with a name to help you distinguish the machine. If you have enough RUs, the Add more VMs option becomes available, allowing you to add multiple machines in the pool and provision them.
    4.1. (Optional) Click Add more VMs to add as many VMs as you need.
    4.2. If you reconsider the number of VMs, you can remove the ones you do not need by clicking the bin icon in the alias name field.

📘

The RU cost is immediately updated to reflect the number of VMs. If the cost exceeds your RU balance, the Add more VMs option becomes unavailable.

1333

Admin Account

  1. Fill in the username and password fields with the administrator credentials used to connect to the VM(s). Every VM in the pool shares the same credentials.
  2. Click Provision. A pop-up box asks you to confirm the number of machines to provision.

Back on the Manage Virtual Machines page, a success message is displayed at the top of the page, and the machines appear in the list with the Provisioning status.
可能需要几分钟才能完成配置。在完成计算机配置之前,所有计算机选项都不可用。

配置完成后,计算机状态将更改为“正在运行”。

 

步骤 3. 自定义计算机(可选)


在计算机运行时,您可以通过 Windows 远程桌面连接到它并自定义其配置。

  1. 导航到“租户”>“计算机”。
  2. 单击池行右侧的 ,然后选择“管理虚拟机”。
  3. 在“管理虚拟机”页面上,检查计算机的“计算机状态”列是否显示“正在运行”。
    如果计算机已停止,请单击行右侧的 ,然后选择“启动虚拟机”。等待几分钟,直到状态更改为“正在运行”。
  4. (可选)如果计算机的“接受作业”列显示为“已启用”,请单击 ,然后选择“禁用接受作业”。等待几分钟,状态将变为“已禁用”。
    我们建议您这样做,以防止我们的自动缩放引擎在您连接到计算机时关闭计算机。如果计算机空闲,即使您已连接到计算机,也可能会发生这种情况。
  5. 检查计算机的“远程桌面”列是否显示为“已启用”。
    如果已禁用,请单击行右侧的 ,然后选择“启用远程桌面”。等待至“远程桌面”值更改为“已启用”。
  6. In the Remote Desktop column, click the info icon to see the Public IP address for the machine and copy it.
    In this step, you can edit the Access IP address used to access the remote desktop. By inputting a different value than the existing one, you can access your remote desktop only from the newly saved IP address.

📘

The Access IP is the IPv4 address of the machines used to access the VM.
The Public IP is the IPv4 address of the VM machine.

📘

Orchestrator recognizes only IPv4 address types.
If an IPv6 address type is detected, an error message is displayed, and a pop-up window prompts you to enter the corresponding IPv4 address. One way to find out what your what your IPv4 address is is to check it on this website.

  1. 使用 Windows 远程桌面连接到计算机,如下所示:
    • use the machine's IPv4 address; If the Public IP address is null, the VM may be off. In this case, restart the VM and refresh the VM list.
475
  • 使用您为计算机定义的管理员凭据;如果您不记得凭据,可以重置凭据
  1. 现在,您可以根据需要通过安装或更新软件或更改其配置来自定义计算机。

📘

我们提供的计算机预装了 UiPath 机器人软件和受支持的网页浏览器。

不要在计算机上修改 UiPath 软件,因为这些更改可能会导致问题。

  1. (可选)完成配置后,注销计算机,然后从 Orchestrator 禁用计算机的远程桌面。
    24 小时后,计算机上的远程桌面将自动禁用。
  2. 如果您之前禁用了计算机的“接受作业”,请在“管理虚拟机”页面上,单击 ,然后选择“启用接受作业”以重新启用它。

If you want to use this customized machine for a machine template, you can create a customized image. You can then use the customized image when creating new cloud robot pools, instead of a standard machine image.

 

步骤 4. 准备使用 Cloud Robot


为了能够使用新的 Cloud Robot 运行自动化,需要在 Orchestrator 中进行一些设置:

步骤 4a. 接受计算机上的作业

默认情况下,新配置的计算机未设置为接受作业。完成要执行的任何配置并且计算机准备就绪后,您必须手动将其设置为接受作业。

要允许使用计算机运行作业,请执行以下操作:

  1. 导航到“租户”>“计算机”。
  2. 单击池行右侧的 ,然后选择“管理虚拟机”。
  3. 在“管理虚拟机”页面上,单击计算机行右侧的 ,然后选择“启用接受作业”。

顶部将显示一条成功消息,“接受作业”列将显示“正在启用”。
等待片刻后,当状态更改为“已启用”时,即可使用计算机运行分配有池的文件夹中的作业。

👍

自动缩放

将计算机设置为接受作业后,我们的自动缩放引擎将获得控制权,并能够自动关闭和启动计算机。

步骤 4b. 将池添加到文件夹

Add the Cloud Robots - VM machine template to folders which contain unattended automations that you want to run using cloud robots.

步骤 4c. 使用 Cloud Robot 运行作业

现在,您和您的用户可以开始使用 Cloud Robot 运行无人值守的自动化。

To run a job using cloud robots: Start a job as you normally would, but for the Runtime license select Cloud Robot - VM.

  • 运行时为 Cloud Robot - VM 时不适用的某些字段不可用或无法编辑。使用可用选项配置作业执行。
  • 对于 Cloud Robot,选中“在作业恢复时保留帐户/计算机分配”复选框意味着作业将在根据同一模板创建的计算机上恢复,不一定是完全相同的计算机。

该作业将在分配给文件夹的计算机模板中的其中一台可用计算机上运行。

 

重用自定义的计算机映像


如果您有一台根据自动化需求自定义的计算机,并且要重用它,则可以创建该自定义计算机的映像。这将创建一个磁盘捕获,可在新的 Cloud Robot - VM 模板中用作自定义计算机。

要创建自定义计算机的映像:

  1. 导航到“租户”>“计算机”。
  2. At the right of the pool row, click and select Add or manage VMs.
  3. 在“管理虚拟机”页面上,检查计算机的“计算机状态”列是否显示“已停止”。
    如果计算机正在运行,请单击行右侧的 ,然后选择“停止虚拟机”。等待至状态更改为“已停止”。
  4. 检查计算机的“接受作业”列是否显示“已禁用”。
    如果已启用,请单击行右侧的 ,然后选择“禁用接受作业”。等待至状态更改为“已禁用”。
  5. 单击计算机行右侧的 ,然后选择“捕获映像”。
    您最多可以创建 20 个自定义映像。如果您无法新建映像,请考虑删除自定义映像,以便新建。
    系统将打开“捕获计算机作为基本映像”对话框:
500
  1. 填写“映像名称”字段,此为可选字段,并填写“说明”字段。
  2. (可选)使用您希望虚拟机默认使用的用户名填写“隐式用户名”字段。
    如果将“隐式用户名”字段留空,则使用用户名 uirobot
  3. 单击“创建”。
  4. 重新启动计算机( > 启动计算机),然后如果您希望计算机可用于运行作业,请重新启用计算机的接受作业

创建自定义映像后,您可以在创建新模板时为计算机映像选择“自定义”,将其用作 Cloud Robot - VM 计算机模板的基本映像。

管理自定义映像

您最多可以拥有 20 个 Cloud robot 计算机的自定义映像。
如果您无法再新建映像,请考虑删除一些未使用的映像,如下所述。

要查看和管理 Cloud Robot - VM 的自定义计算机映像,请执行以下操作:

  1. 转到“租户”>“设置”,然后选择“Cloud Robot 映像”选项卡:
977

所有现有映像都将在页面上列出。

  1. 在映像行的右侧,单击 并选择:
    • “编辑映像”以更改映像的名称或说明。
    • 如果要删除映像,使其不再可用,请单击“删除映像”。

 

重置计算机凭据


如果您忘记了其中一台计算机的管理员凭据,则可以设置新的用户名和密码。

  1. 导航到“租户”>“计算机”。
  2. At the right of the pool row, click More Actions and select Add or manage VMs.
  3. On the Manage Virtual Machines page, at the right of the machine row, click More Actions and select Reset Admin Account.
  4. 在“重置管理员帐户”页面上,为计算机的管理员帐户定义新的用户名和密码。
    重置后,旧凭据将不再有效。
  5. 单击“更新”

 

监控


您可以在以下页面监控 Cloud Robot 以检查错误:

  • 您可以在“作业”页面上看到正在等待可用计算机的待定作业。
  • 您可以在新式文件夹的“监控”页面上的 Orchestrator 中查看已创建的虚拟机。计算机可用后,虚拟机会连接到 Orchestrator,从而运行下一个待定作业。
    如果未创建虚拟机,请在 Orchestrator 中检查 Cloud Robot 池的配置。
  • On the Alerts page in Orchestrator, you can set the State filter to All to see details about the Cloud Robots component and see as new robots are created or any errors. To see alerts, you need to have the Alerts - View and Machines - View permissions from a role that is directly assigned to your account (not inherited from groups), and to be added to the folders where cloud robots are used.
  • 您可以查看特定虚拟机的日志,如下所述。

查看计算机的日志

日志是管理员用于对计算机进行诊断和故障排除的重要报告。这些日志可提供有关计算机上发生的重要事件的详细报告,例如计算机事件、作业事件或 Azure 问题。

日志将保留 30 天。这意味着最早的日志条目是在保留期结束时删除的第一个日志条目。

要查看计算机的日志,请执行以下操作:

  1. 导航到“租户”>“计算机”。
  2. At the right of the pool row, click More Actions and select Add or manage - VM.
  3. 管理 Cloud Robot - VM 页面上,单击计算机行右侧的“更多操作”,然后选择“查看日志”。
1334
  1. 计算机事件日志页面上,您可以查看为该计算机生成的日志,系统会优先显示最新日志。
  2. 如要查看其中一个日志的详情,请单击日志行右侧的“显示详细信息”。“日志详细信息”窗口会显示有关该特定事件的详细报告。
1336

 

常见问题


关于计算机

标准计算机包括哪些内容?

All standard machines that we provide are Microsoft Azure virtual machines of the type Standard_E2s_v4, which have sufficient computing power for basic automations.

此外,所有标准虚拟机都附带:

  • 预装的 UiPath Robot 软件(详情如下)
  • 可能需要用于运行自动化的受支持的网页浏览器。

If you need additional software or to set up the VM in a certain way, you can further customize it.

我应该选择什么规格的机器?

选择计算机规格时,需要考虑以下几点:

  • 您的数据集规模如何?
  • 您计划运行哪些类型的应用程序,它们的要求是什么?
  • 您计划利用多少个应用程序?
  • 您会利用 ML 技能和 AI 包吗?
  • 计算机将运行哪些类型的作业 - 小型例行任务、繁重任务、一次性设置、调试?

根据答案,您可能可以使用小型计算机,也可能需要功能更强大的计算机。

可供选择的各类计算机的技术规格如下:

SizevCPUMemory (GiB)Max data disksMax uncached disk throughput (IOPS/MBps)Max burst uncached disk throughput (IOPS/MBps)Max NICsExpected network bandwidth (Mbps)
Small 21643200/484000/20025,000
Standard 43286400/968000/200210,000
Medium 8641612800/19216000/400412,500
Large 161283225600/38432000/800812,500

何时应用 UiPath Robot 更新?

我们会在新版本发布后的大约 2 周内更新您的虚拟机,以便您使用最新版本的 UiPath Robot。
更新时机:

  • 首次启动需要更新的计算机时
  • 在正在运行作业的计算机关闭之前
  • 对于持续使用且自更新可用后 2 周内无法接收更新的计算机,我们会在计算机上安排一个较短的维护时段来应用更新。

在哪里创建虚拟机?

所有虚拟机均在我们的 Microsoft Azure 订阅中创建和托管。

虚拟机托管在哪个区域?

All virtual machines are created and hosted in the tenant region.
Organization administrators can see what the region is for a tenant in Tenant Settings (Admin > Tenants).

关于维护窗口

我创建的计算机映像是否会自动更新为最新的 Windows 版本和更新版本?

否。如果要安装最新的 Windows 版本和更新,您可以:

  • 使用 RDP 连接到计算机以手动更新 Windows。
    然后,如果需要,您还可以创建自定义计算机的映像,并在其他计算机模板中使用它。
  • 为模板配置维护窗口,以便将更新推送到所有计算机。

维护窗口是否适用于所有计算机?

只有属于已配置维护窗口且已启用“接受作业”的计算机模板才能进入维护窗口。
未运行的计算机将在维护窗口内自动启动。

机器人单元是否在维护窗口内消耗?

所需的 Robot Units 每月在计算机首次启动时消耗一次。之后,计算机可以在整个月内无限期地运行,而不会消耗额外的 Robot Units。

禁用计算机

为什么我的计算机处于禁用状态?

如果最近创建的计算机使用的 Robot Units 数量超过租户的可用数量,我们会自动禁用这些计算机。

如何重新启用已禁用的计算机?

您必须为该计算机向租户添加足够的 Robot Units。系统将使用这些 RU,并且已遭禁用的计算机将在大约 30 分钟内自动重新启用。
如果您没有分配足够的 Robot Units 来重新启用所有已禁用的计算机,则只会重新启用部分计算机。我们从最旧的计算机开始启用,然后逐步过渡到最新的计算机。

After being re-enabled, a machine is in a stopped state. To use it to run jobs, you must start the machine.

禁用的计算机是否会消耗 Robot Units?

是的。如果您已禁用计算机并为租户添加 Robot Units,则系统会自动使用 RU 以重新启用已禁用的计算机。

如何防止已禁用的计算机使用新添加的 Robot Units?

例如,如果您想要为 Automation Cloud Robot - Serverless 的租户分配更多 Robot Units,则需要确保没有会使用这些 Robot Units 的已禁用计算机。
为防止出现这种情况,您必须先删除已禁用的 Cloud Robot - VM 计算机,然后再将 Robot Units 分配给租户。

自动虚拟机池的 Robot Units 消耗量

定义自动计算机模板时,请确保您有足够的 Robot Units (RU) 来运行计算机。计算机池无法部分使用 Robot Units。

If you do not have enough RUs, the following consumption restrictions apply:

  • 如果您的 Robot Units 数与池中定义的最大虚拟机数量不符,我们将删除池中的所有计算机并停止创建新计算机,直到您分配足够的 Robot Units 来支持最大数量的计算机。

📘

我们建议减少池中的最大虚拟机数量,而不是添加更多 Robot Units。

  • 在没有足够 RU 的计算机上运行的作业会生成以下警示:“由于 Robot Units 不足,<Pool_name> 中没有虚拟机。”
  • 只要可用 Robot Units 充足,系统就会自动使用。
  • 如果您有多个池处于过度消耗状态,我们会将所有可用的 Robot Units 分配给最后创建的池子集。
    示例:您有五个池,每个池最多包含三台计算机,总共 15 台计算机。您的 RU 可以支持两台计算机,这意味着所有五个池现在都处于过度消耗状态,因此您无法使用它们。
    • 添加再支持五台计算机所需的 RU。现在,您总共可以使用七台计算机。
    • 此时可使用两个池,这两个池使用六台计算机的 RU(两个池,每个池三台计算机)。
    • 三个池仍处于过度使用状态,可用的 RU 仅可再为一台计算机提供服务。因此,以最后创建的两个池优先。

释放和重用 Robot Units

  • 自动池创建完毕后,该池即会使用分配的 RU。
  • When a pool is deleted, the corresponding RUs are released and can be consumed by other pools.

Domain-joined machines

To avoid managing different accounts on each VM, and to use a single set of credentials for authentication, you can join your VMs to a domain. This way you can integrate your machines with an existing identity infrastructure, and your cloud robots can run jobs under a domain user.

There are three mainly used identity solutions, summarized in the following table, along with the corresponding domain connection approach and the current availability in UiPath:

Identity solutionAvailability in UiPathConnection to the domain
Active Directory Domain Services (AD DS)via site-to-site VPN Gateway
Azure Active Directory Domain Services (Azure AD DS)via site-to-site VPN Gateway
Azure Active Directory

This solution is currently under development.

Active Directory 域服务 (AD DS)

Use this solution to manage identity and access in on-premises environments.
AD DS allows your cloud robots to authenticate and access on-premises network resources via on-premises domain controllers. The site-to-site connection to the domain controller is established through the VPN Gateway service.
You continue to maintain all of the associated infrastructure and directory components.

📘

To integrate your on-premises Active Directory with Azure, connect your on-premises environment to an Azure AD domain in the cloud via site-to-site VPN Gateway.

Read the Azure documentation for more details.

Azure Active Directory Domain Services (Azure AD DS)

Use this solution to manage domain services such as domain join, group policy, LDAP, or Kerberos/NTLM authentication, the same as you would use for an on-premises Active Directory.
Azure AD DS allows your Automation Cloud robots to authenticate and access cloud network resources via Azure AD DS managed domains. Additionally, you can join and manage VMs in Azure. The site-to-site connection to the Azure AD DS managed domains is established through the VPN Gateway service.
You do not need to deploy or maintain the AD DS infrastructure for components such as VMs, Windows servers, or domain controllers.

To join a Automation Cloud Robot - VM to an Azure AD DS managed domain:

📘

The following procedure is the same for connecting a computer to an on-premises AD DS domain.

  1. Sign in to your VM.
  2. Access Server Manager.
  3. On the left-side panel of the Server Manager, select Local Server, then select WORKGROUP.
502
  1. In the System Properties > Computer Name tab, click Change. The Computer Name/Domain Changes window opens.
  2. In the Domain field, specify the name of your managed domain. For example, aaddscontoso.com.
500
  1. To join the domain, provide the credentials of a user that is part of the managed domain.
    Note 1: The user account must exist in your managed domain or in your Azure AD tenant. During domain joining, accounts from external directories associated with your Azure AD tenant cannot authenticate correctly.
    Note 2: Account credentials can be specified either in the UPN format, which is the recommended format, or in an SAMAccountName format. For example, user "VMadmin" in UPN format is "vmadmin@contosoaadds.com", and in SAMAccountName format is "AADDSCONTOSO\vmadmin".
  2. Click OK. Wait a few seconds until the VM is joined to the managed domain. If successful, a welcome message box is displayed.
  3. Restart the VM to complete the domain-join process.

Updated 18 days ago


Automation Cloud™ Robot - VM


建议的编辑仅限用于 API 参考页面

您只能建议对 Markdown 正文内容进行编辑,而不能建议对 API 规范进行编辑。