创建 Azure 自动化帐户Create an Azure Automation account

可以使用 Azure 门户通过 Azure 创建 Azure 自动化帐户。Azure 门户是一个基于浏览器的用户界面,在其中可以访问许多资源。You can create an Azure Automation account through Azure, using the Azure portal, a browser-based user interface allowing access to a number of resources. 一个自动化帐户可以跨所有区域和订阅管理给定租户的资源。One Automation account can manage resources across all regions and subscriptions for a given tenant.

本快速入门将引导你创建一个自动化帐户,并在该帐户中运行 Runbook。This quickstart guides you in creating an Automation account and running a runbook in the account. 如果没有 Azure 订阅,请在开始前创建一个试用 Azure 帐户If you don't have an Azure subscription, create a Trial Azure account before you begin.

登录 AzureSign in to Azure

登录 AzureSign in to Azure.

创建自动化帐户Create Automation account

  1. 为你的 Azure 帐户选择一个名称。Choose a name for your Azure account. 自动化帐户名称在每个区域和资源组中是唯一的。Automation account names are unique per region and resource group. 已删除的自动化帐户的名称可能无法立即可用。Names for Automation accounts that have been deleted might not be immediately available.

    Note

    在用户界面中输入帐户名称后,无法对其进行更改。You can't change the account name once it has been entered in the user interface.

  2. 单击 Azure 门户左上角的“创建资源”按钮。 Click the Create a resource button found in the upper left corner of Azure portal.

  3. 搜索“自动化” ,然后选择“自动化” 。Search Automation, and then select Automation.

  4. 输入帐户信息,包括所选的帐户名称。Enter the account information, including the selected account name. 对于“创建 Azure 运行方式帐户”,请选择“是”,以便自动启用可简化向 Azure 进行的身份验证的项目。 For Create Azure Run As account, choose Yes so that the artifacts to simplify authentication to Azure are enabled automatically. 填写信息后,单击“创建”以启动自动化帐户部署。 When the information is complete, click Create to start the Automation account deployment.

    在页面中输入有关自动化帐户的信息

    Note

    有关可将自动化帐户部署到的位置的更新列表,请参阅各区域的产品可用性For an updated list of locations that you can deploy an Automation account to, see Products available by region.

  5. 部署完成后,单击“所有服务”。 When the deployment has completed, click All Services.

  6. 选择“自动化帐户”,然后选择你创建的自动化帐户。 Select Automation Accounts and then choose the Automation account you've created.

    自动化帐户概览

运行 RunbookRun a runbook

运行一个教程 Runbook。Run one of the tutorial runbooks.

  1. 单击“流程自动化”下的“Runbook”。 Click Runbooks under Process Automation. 此时会显示 Runbook 列表。The list of runbooks is displayed. 默认情况下,帐户中已启用多个教程 Runbook。By default, several tutorial runbooks are enabled in the account.

    自动化帐户 Runbook 列表

  2. 选择 AzureAutomationTutorialScript Runbook。Select the AzureAutomationTutorialScript runbook. 此操作打开 Runbook 概览页。This action opens the runbook overview page.

    Runbook 概览

  3. 单击“启动”,然后在“启动 Runbook”页上,单击“确定”以启动 Runbook。 Click Start, and on the Start Runbook page, click OK to start the runbook.

    Runbook 作业页

  4. 在作业状态变为 Running 后,单击“输出”或“所有日志”以查看 Runbook 作业输出。 After the job status becomes Running, click Output or All Logs to view the runbook job output. 对于此教程 Runbook,输出是 Azure 资源的列表。For this tutorial runbook, the output is a list of your Azure resources.

后续步骤Next steps

在本快速入门中,你已部署了自动化帐户、启动了 Runbook 作业并查看了作业状态。In this quickstart, you've deployed an Automation account, started a runbook job, and viewed the job results. 若要详细了解 Azure 自动化,请继续阅读快速入门中有关如何创建第一个 Runbook 的内容。To learn more about Azure Automation, continue to the quickstart for creating your first runbook.