Azure IaaS 虚拟机与规模集部署

Your company plans to deploy several custom applications to Azure. The applications will provide invoicing services to the customers of the company. Each application will have several prerequisite applications and services installed.

You need to recommend a cloud deployment solution for all the applications.

What should you recommend?

提供答案和解答


针对这个应用需求提供 IaaS 服务。

答案:
选择 IaaS:在 Azure 上使用虚拟机(可配合自定义映像与虚拟机规模集)

解答:

  • 每个应用都有多种先决软件与服务需要安装,这需要对操作系统和运行环境拥有完全控制权。IaaS(Azure Virtual Machines)允许你在 OS 层面自由安装、配置所有依赖。
  • PaaS(如 App Service)对可安装的组件和系统访问受限,不适合此类复杂依赖的自定义应用;SaaS更不适用。
  • 实施建议:
    • 先制作包含所有先决条件的自定义 VM 映像(Azure Image Gallery 管理)。
    • 通过 ARM/Bicep 模板或Terraform统一部署;需要弹性伸缩时使用虚拟机规模集(VMSS)。
    • 可用 VM 扩展/脚本自动化安装更新与配置,配合 Azure DevOps/GitHub Actions 持续交付。