- リリース ノート
- 基本情報
- UiPath Assistant
- インストールとアップグレード
- ロボットの種類
- Robot のコンポーネント
- ライセンス
- Robot を Orchestrator に接続する
- プロセスとアクティビティ
- ログ
- Robot JavaScript SDK
- 特定のシナリオ
- ガバナンス
- トラブルシューティング
Unattended ロボットは、人間の監督を必要としないタスクの自動化に使用され、通常は専用のマシン上にある仮想環境で実行されます。また、オートメーションは Orchestrator から制御されます。
無人オートメーションは必要に応じて Orchestrator から手動で開始できますが、タスクを特定の間隔 (毎日、毎時、毎週など) または特定の日時 (週末など) に開始する必要がある場合には、スケジュールを設定することもできます。
このページでは、Community ライセンスでアクティベーションされた UiPath 製品を使用して、無人オートメーションをはじめて実行する際のプロセスについて説明します。このプロセスには、オートメーションの構築の開始から、環境の設定、無人プロセスの実行までが含まれます。
無人オートメーションを実行するには、以下の手順を行う必要があります。
1. オートメーションを作成して、Orchestrator にパブリッシュする
実際的な例を示すために、毎日午前 9 時にサーバー上にログ ファイルのバックアップを作成する必要があると仮定しましょう。そのためには、その日のログ ファイルを別のフォルダーにコピーする必要があります。この例では、「Logs.txt」という名前のファイルを「Logs」フォルダーから「Old Logs」フォルダーにコピーし、毎回バックアップを上書きします。
-
新しいプロセスを作成し、[ファイルをコピー] アクティビティを追加します。フィールド/ファイルへのパスを設定し、[上書き] オプションを選択して、以前のファイルを新規にコピーされたファイルで毎日置き換えるようにします。
-
プロセスを Orchestrator にパブリッシュします。
-
Studio のリボンの右のほうにある [パブリッシュ] ボタンをクリックします。
-
[パッケージのプロパティ] タブで、パッケージ名を入力します。
-
[パブリッシュのオプション] タブの [パブリッシュ先] オプションで [Orchestrator テナント プロセス フィード] を選択して、Unattended ロボットがオートメーションにアクセスできる場所を指定します。
-
[パブリッシュ] をクリックします。
For more information, see About Publishing Automation Projects in the Studio Guide.
-
Orchestrator で、Unattended ロボットがオートメーションの実行に使用するプロセスを作成します。
-
https://cloud.uipath.com からお使いの Automation Cloud インスタンスにアクセスし、Orchestrator テナントを選択します。
-
Orchestrator で、[Shared] フォルダー > [プロセス] の順に選択し、画面右のプラスボタンをクリックして、[プロセスを追加] ページを開きます。
-
パッケージを選択して [作成] をクリックし、[Shared] フォルダーにプロセスを追加します。
注:このプロセスでは 2 つのエンティティを扱っている点に留意してください。1 つ目のエンティティは、プロセスを作成およびパブリッシュする開発者です。2 つ目のエンティティは、無人マシンでオートメーションとロボットを実行するユーザーです。
2. Unattended ロボットを実行する Windows マシンをセットアップする
Set up a Windows machine on which to run the unattended robot, ideally this would be a cloud virtual machine that matches the Hardware and Software Requirements. Make sure that the screen saver is disabled on the Windows machine.
For example, you can host your virtual machine in Azure. For details on how to set up a Windows virtual machine in Azure, see Windows VMs Overview.
Other environments such as AWS, VMware, or Citrix are supported as well if they match the Hardware and Software Requirements.
3. Orchestrator で Unattended ロボットを作成する
Unattended ロボットは、アカウントとジョブを実行するマシンの 2 つのコンポーネントで構成されています。アカウントは権限を付与し、ロボットに対してジョブをトリガーするために使用されるアイデンティティであり、マシンはジョブを実行するための計算能力を提供します。
-
アカウントを作成および設定します。
-
Creating the account: For unattended automations, we recommend creating a robot account, which is a service-type identity that does not require an email address. However, if the job must run under a particular user's identity (for permissions or audit purposes), you can opt for creating a user account instead.
-
Add the account to folders which contain the jobs it needs to run.
-
マシン テンプレートを作成します。
注:While you could opt to create a single standard machine, for this example we are creating a machine template instead. Machine templates make it easier to deploy several machines by defining the configuration once and then using a single set of client credentials to allow multiple robots to connect to Orchestrator.
-
In Orchestrator, go to Tenant > Folders.
-
Select the target folder from the list, and then select the Machines tab.
-
In the top right, click Manage Machines in Folder.
-
On the Manage Machines in Folder page, click the Add machine in the top right and select Machine template.
-
Configure the machine template and assign one unattended runtime only. For detailed instructions, see Adding a machine template.
-
後で使用するためにマシン キーをコピーします。
If this machine template should be used to run jobs from several folders, add the machine template you created to all the necessary folders. For instructions, see Assigning machine objects to folders.
4) 無人マシン上に UiPath Studio をインストールする
In order to run unattended automations on a machine with a Community License, you need to install UiPathStudio.msi on the unattended machine. If you opt for the Quick Setup during installation, the Robot is deployed in User Mode, meaning that it runs under the user that started it, and has the exact rights as that particular user.
UiPathStudio.msi インストーラーは、リソース センターから、または Automation Cloud のホーム ページから直接ダウンロードできます。
Orchestrator からジョブを開始するには、Windows ユーザーがマシンにログオンしている必要があります。Robot が Windows Server にインストールされているかどうかに関わらず、ユーザー モードの Robot は異なるユーザーで同時に複数のジョブを実行できません。
Community バージョンの UiPath Studio と Robot をダウンロードしたら、Orchestrator インスタンスに接続する必要があります。無人オートメーションの場合は、マシン キーによる接続をお勧めします。
5. Robot を Orchestrator に接続する
Studio から
インストールが完了すると、[はじめに] 画面が表示され、既定で認証を行うように求められます。[マシン キーを使用] を選択します。これは Unattended ロボットに推奨される設定です。マシン名は自動的に入力されるため、Orchestrator URL (https://cloud.uipath.com/organisation/tenant の形式) と、マシン テンプレートを作成したときに保存したマシン キーを入力して、[続行] をクリックします。
UiPath Assistant から
Robot と Orchestrator 間の接続は UiPath Assistant からも確立できます。以下の手順を実行します。
-
UiPath Assistant を開きます。
-
[設定] メニューで、[設定] を選択します。
-
[Orchestrator の設定] に移動します。
-
[Orchestrator URL] フィールドで、Orchestrator の URL を入力します。
-
In the Machine Key field, enter the key you copied earlier when you created the machine template in Orchestrator.
For details about the differences between machine entities in Orchestrator and when to use each one, see Machines in the Orchestrator Guide.
-
[接続] をクリックします。ステータスが「接続済み、ライセンス済み」と表示されます。
注:マシンのセットアップを仮想環境に基づいて行う場合はリモート セッションを切断できますが、無人プロセスを実行するユーザーはマシンにログオンしたままにしておく必要があります。そうすることで、Orchestrator への接続がアクティブなままになります。
6. オートメーションをテストする
-
Orchestrator で、[Shared] フォルダー > [オートメーション] > [プロセス] の順に選択します。手順 1 でデプロイしたプロセスの右側にある [ジョブを開始] ボタンをクリックして、[ジョブを開始] ページを開きます。
-
以前に設定したユーザーとマシンを選択して、[開始] をクリックします。
これにより、選択した無人プロセスが選択したマシン上で開始されます。Orchestrator の [Shared] フォルダーの [ジョブのステータス] セクションで、ジョブを監視できます。
7. オートメーションのスケジュールを設定する
この例では、オートメーションが毎日午前 9 時に実行されるようにスケジュールを設定してみましょう。
-
Orchestrator で、[Shared] フォルダー > [トリガー] の順に選択し、画面右の [追加] ボタンをクリックして、[トリガーを作成] ページを開きます。
-
[時間] が選択されていることを確認し、必要な情報を入力します。トリガーの名前を入力し、プロセスとユーザーを選択し、毎日午前 9 時に繰り返されるように設定します。
-
[追加] をクリックします。
上のスクリーンショットのようにスケジュールを設定すると、選択したユーザーに代わって、毎日午前 9 時 (UTC) に無人マシン上で Logs.Backup プロセスの実行がトリガーされます。