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

Azure 自动化帐户可以通过 Azure 创建。Azure Automation accounts can be created through Azure. 此方法提供一个基于浏览器的用户界面,用于创建和配置自动化帐户和相关的资源。This method provides a browser-based user interface for creating and configuring Automation accounts and related resources. 本入门介绍了如何创建自动化帐户并在帐户中运行 Runbook。This quickstart steps through 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

登录 Azure (https://portal.azure.cn)Sign in to Azure at https://portal.azure.cn

创建自动化帐户Create Automation account

  1. 单击 Azure 左上角的“创建资源”按钮。Click the Create a resource button found on the upper left-hand corner of Azure.

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

  3. 输入帐户信息。Enter the account information. 对于“创建 Azure 运行方式帐户”,请选择“是”,以便自动启用可简化向 Azure 进行的身份验证的项目。For Create Azure Run As account, choose Yes so that the artifacts to simplify authentication to Azure are enabled automatically. 需要注意的是,在创建自动化帐户时,选择它后将无法更改名称。It is important to note, that when creating an Automation Account, the name cannot be changed after it is chosen. 每个区域和资源组的自动化帐户名称都是唯一的。Automation Account names are unique per region and resource group. 已删除的自动化帐户的名称可能无法立即可用。Names for Automation Accounts that were deleted may not be immediately available. 一个自动化帐户可以跨所有区域和订阅管理给定租户的资源。One Automation Account can manage resources across all regions and subscriptions for a given tenant. 完成后,请单击创建,启动自动化帐户部署。When 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.

  4. 部署完成后,单击“所有服务”,选择“自动化帐户”并选择所创建的自动化帐户。When the deployment has completed, click All Services, select Automation Accounts and select the Automation Account you 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. 在“作业状态”变为“正在运行”后,单击“输出”或“所有日志”查看 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.