运行 Azure 备份服务器的无人参与安装

本文介绍如何运行 Azure 备份服务器的无人参与安装。

如果要安装较旧版本的 Azure 备份服务器(如 MABS V1、V2 和 V3),则这些步骤不适用。

安装备份服务器

若要安装备份服务器,请运行以下命令:

  1. 通过在提升的命令提示符下运行以下命令,确保 Program Files 下有一个名为“Microsoft Azure Recovery Services Agent”的目录。

    mkdir "C:\Program Files\Microsoft Azure Recovery Services Agent"
    
  2. 在提升的命令提示符中提前安装 MABS 的先决条件。 以下命令可能会导致服务器自动重启,但如果未发生,建议手动重启。

    start /wait dism.exe /Online /Enable-feature /All /FeatureName:Microsoft-Hyper-V /FeatureName:Microsoft-Hyper-V-Management-PowerShell /quiet
    
  3. 在承载 Azure 备份服务器 V4 或更高版本的服务器上,创建一个文本文件。 (可以在记事本或其他文本编辑器中创建该文件。)将该文件保存为 MABSSetup.ini。

  4. 将以下代码粘贴在 MABSSetup.ini 文件中。 将括号 (<>) 内的文本替换为来自你环境的值。 以下文本是一个示例:

    注意

    Azure 建议使用最安全的可用身份验证流。 本过程中介绍的身份验证流程需要非常高的信任度,并携带其他流中不存在的风险。 确保在安装完成后删除 MABSSetup.ini 文件。

    [OPTIONS]
    UserName=administrator
    CompanyName=<Microsoft Corporation>
    SQLMachineName=localhost
    SQLInstanceName=<SQL instance name>
    SQLMachineUserName=administrator
    SQLMachinePassword=<admin password>
    SQLMachineDomainName=<machine domain>
    ReportingMachineName=localhost
    ReportingInstanceName=SSRS
    SqlAccountPassword=<admin password>
    ReportingMachineUserName=<username>
    ReportingMachinePassword=<reporting admin password>
    ReportingMachineDomainName=<domain>
    VaultCredentialFilePath=<vault credential full path and complete name, without spaces in both>
    SecurityPassphrase=<passphrase>
    PassphraseSaveLocation=<passphrase save location, an existing directory where the passphrase file can be created>
    UseExistingSQL=<1/0 use or do not use existing SQL>
    
  5. 保存文件。 然后在安装服务器上的提升的命令提示符处,输入以下命令:

    start /wait <cdlayout path>/Setup.exe /i  /f <.ini file path>/setup.ini /L <log path>/setup.log
    

可以使用以下标志进行安装:
/f:.ini 文件路径
/l:日志路径
/i:安装路径
/x:卸载路径

后续步骤

安装备份服务器之后,了解如何准备服务器或开始保护工作负载。