Azure 資源管理

認識 Microsoft Azure 的管理與治理

Maarten Van den Broeck

Senior Content Developer at DataCamp

資源群組

  • 資源群組

    • 將相關資源分組
    • 可整體管理
    • 可在群組層級指派資源標籤與存取角色等屬性
  • 可類比為公司內不同團隊

Screenshot of resource groups

認識 Microsoft Azure 的管理與治理

Azure Resource Manager(ARM)

  • Azure Portal 的資源管理層
    • 建立、更新或刪除資源
    • 管理存取控制與資源屬性
  • 重要功能:
    • 資源提供者
    • 範本

Screenshot of the resource creation process

認識 Microsoft Azure 的管理與治理

資源提供者

  • 提供並管理特定類型的資源
    • 例:Microsoft.Compute 供虛擬機器使用
  • Azure Resource Manager 依賴提供者執行資源工作
  • 可比擬為由建築師/總承包商(Azure Resource Manager)統籌專業工種,如電工(資源提供者)

Screenshot of resource providers

認識 Microsoft Azure 的管理與治理

Azure Resource Manager 範本

  • 定義並設定資源(例如資源群組)以便重複使用

    • 模組化:可組合多個範本進行複雜部署
    • 可與 Azure DevOps 結合,透過 pipelines 自動化
    • 採用基礎架構即程式碼(IaC),例如支援版本控管
  • 可用內建範本,或用 Bicep 語法自製範本

Screenshot of template creation

認識 Microsoft Azure 的管理與治理

情境範例:旺季流量的自動擴縮

你正在為一家公司諮詢。該公司在節日時網站流量季節性飆升,需要能依需求自動調整資源的部署方案

ARM 範本可用來:

  • 在虛擬機器等資源中定義自動調整,讓其自動因應負載
  • 定義可調參數以提高彈性

GIF of creating an ARM template

認識 Microsoft Azure 的管理與治理

一起來練習吧!

認識 Microsoft Azure 的管理與治理

Preparing Video For Download...