了解自动化共享资源

已完成

Azure 自动化包含全局可用的共享资源,可与 Runbook 关联或在 Runbook 中使用。

目前共有八种共享资源类别:

  • 计划:用于定义一次性计划或定期计划。
  • 模块:包含 Azure PowerShell 模块。
  • 模块库:用于识别 PowerShell 模块并将其导入 Azure 自动化帐户。
  • Python 包。 允许你通过上传 .whl 或 tar.gz 包来导入 Python 包。
  • 凭据:用于创建用户名和密码凭据。
  • 连接:用于指定 Azure、Azure 经典证书或 Azure 服务主体连接。
  • 证书:用于上传 .cer 或 pfx 格式的证书。
  • 变量:用于定义 String、Boolean、DateTime、Integer 等类型或非特定类型的加密或未加密变量。

Screenshot of the shared resources section in the Azure Automation account pane. Eight shared resources display, Schedules, Modules, Modules gallery, Python 2 packages, Credentials, Connections, Certificates, and Variables.

作为最佳做法,应始终尝试创建跨 Runbook 使用的全局资产。

它可以节省时间并减少单个 Runbook 中的手动编辑次数。