Moodle 移轉資源Moodle migration resources

當您使用 Azure Resource Manager (ARM) 範本來遷移 Moodle 時,部署會在 Azure 中建立資源。When you use an Azure Resource Manager (ARM) template to migrate Moodle, the deployment creates resources within Azure. 在此部署程式中,其他部署會自動透過子範本執行。As part of this deployment process, additional deployments automatically run through child templates. 下列各節說明這些部署以及它們所建立的資源。The following sections describe these deployments and the resources they create.

網路範本Network template

網路範本部署會建立下列資源:The network template deployment creates the following resources:

  • Azure 虛擬網路:在雲端中表示您自己的網路。Azure Virtual Network: A representation of your own network in the cloud. 虛擬網路是專屬於您訂用帳戶的 Azure 雲端邏輯隔離。Virtual network is a logical isolation of the Azure cloud that's dedicated to your subscription. 當您建立虛擬網路時,您內的服務和虛擬機器可以直接且安全地在雲端中進行通訊。When you create a virtual network, your services and virtual machines within it can communicate directly and securely in the cloud. 網路範本建立的虛擬網路包括虛擬網路名稱、API 版本、位置、DNS 伺服器名稱和位址空間。The virtual network that the network template creates includes the virtual network name, API version, location, DNS server name, and address space. 位址空間包含子網可使用的 IP 位址範圍。The address space contains a range of IP addresses that subnets can use.

  • 網路安全性群組 (NSG) :網路篩選器或防火牆,其中包含安全性規則的清單。Network security group (NSG): A networking filter, or firewall, that contains a list of security rules. 這些規則可允許或拒絕連線至虛擬網路之資源的網路流量。These rules allow or deny network traffic to resources connected to a virtual network.

  • 網路介面: azure 虛擬機器可用於與網際網路、Azure 和內部部署資源通訊的介面。Network interface: An interface that an Azure virtual machine can use to communicate with the internet, Azure, and on-premises resources.

  • 子網:大型網路內的較小網路。Subnet: A smaller network inside a large network. 子網也稱為子網。Subnets are also known as subnetworks. 根據預設,子網中的 IP 位址可以與虛擬網路內的任何其他 IP 位址通訊。By default, an IP address in a subnet can communicate with any other IP address inside the virtual network.

  • 公用 ip 位址: Azure 資源用來與網際網路通訊的 ip 位址。Public IP address: An IP address that an Azure resource uses to communicate with the internet. 此位址是 Azure 資源專屬的位址。The address is dedicated to the Azure resource.

  • Azure Load Balancer:負載平衡器,可有效率地將網路或應用程式流量分散到伺服器陣列中的多部伺服器。Azure Load Balancer: A load balancer that efficiently distributes network or application traffic across multiple servers in a server farm. 負載平衡器只會將要求傳送到線上的伺服器,以確保高可用性和可靠性。Load balancer ensures high availability and reliability by only sending requests to servers that are online.

  • Azure 應用程式閘道: Load Balancer 的替代方案。Azure Application Gateway: An alternative to Load Balancer. 所有四個預先定義的 ARM 範本都會部署 Load Balancer。All four predefined ARM templates deploy Load Balancer. 如果您使用完全可設定的部署,而不是 ARM 範本,您可以選擇應用程式閘道,而不是 Load Balancer。If you use a fully configurable deployment instead of an ARM template, you can choose Application Gateway instead of Load Balancer. 應用程式閘道是網路流量負載平衡器,可讓您用來管理 web 應用程式的流量。Application Gateway is a web-traffic load balancer that you can use to manage traffic to your web applications. 應用程式閘道可以根據 HTTP 要求的其他屬性(例如 URI 路徑或主機標頭)進行路由決策。Application Gateway can make routing decisions based on the additional attributes of an HTTP request, such as a URI path or host header.

  • Azure Cache for Redis:以開放原始碼軟體 Redis 為基礎的記憶體中資料存放區。Azure Cache for Redis: An in-memory data store based on the open-source software redis. Redis 可改善大量儲存後端資料之應用程式的效能和擴充性。Redis improves the performance and scalability of an application that heavily stores back-end data. 它可以藉由將經常存取的資料保存在伺服器記憶體中,來處理大量的應用程式要求。It can process large volumes of application requests by keeping frequently accessed data in the server memory. 這種資料可以快速寫入和讀取。This data can be written to and read from quickly.

儲存體範本Storage template

儲存體帳戶範本部署會建立 FileStorage 類型的 Azure 儲存體帳戶。The storage account template deployment creates an Azure Storage account of type FileStorage. 此帳戶具有 premium 效能、本機冗余儲存體 (LRS) 複寫,以及 1 tb (TB 的儲存體) 。The account has premium performance, locally redundant storage (LRS) replication, and 1 terabyte (TB) of storage. 預先定義的範本會設定成讓具有 Azure 檔案儲存體的儲存體帳戶建立檔案共用。The predefined template is configured so that a storage account with Azure Files creates file shares.

Azure 儲存體帳戶包含 Azure 儲存體的資料物件,例如 blob、檔案、佇列、資料表和磁片。An Azure Storage account contains Azure Storage data objects, such as blobs, files, queues, tables, and disks. 儲存體帳戶會為您的 Azure 儲存體資料提供唯一的命名空間,此命名空間可透過 HTTP 或 HTTPS 從世界各地存取。The storage account provides a unique namespace for your Azure Storage data that's accessible from anywhere in the world over HTTP or HTTPS. 可用的 Azure 儲存體帳戶類型如下: General-Purpose v1、General-Purpose v2、BlockBlobStorage、FileStorage 和 Blob 儲存體。The following types of Azure storage accounts are available: General-Purpose v1, General-Purpose v2, BlockBlobStorage, FileStorage, and Blob Storage. 複寫類型可以是異地冗余或 LRS 和區域多餘的儲存體。The replication type can be geo-redundant or LRS and zone-redundant storage. 效能類型為 standard 和 premium,而個別儲存體帳戶最多可儲存 500 TB 的資料,就像任何其他 Azure 服務一樣。The performance types are standard and premium, and an individual storage account can store up to 500 TB of data, like any other Azure service.

ARM 範本支援下列儲存體帳戶類型:ARM templates support the following storage account types:

  • 網路檔案系統 (NFS) :遠端主機可用來透過網路掛接檔案系統的帳戶類型。Network File System (NFS): An account type that a remote host can use to mount file systems over a network. 遠端主機可以與這些檔案系統互動,就好像它們是在本機掛接一樣。The remote host can interact with those file systems as though they're mounted locally. 透過這項設計,系統管理員可以將資源合併到網路中的集中式伺服器。With this design, system administrators can consolidate resources into centralized servers in the network.

  • GlusterFS:開放原始碼分散式檔案系統,可在建立區塊的方式中向外延展,以儲存多達數 pb 的資料。GlusterFS: An open-source distributed file system that can scale out in building-block fashion to store multiple petabytes of data.

  • Azure 檔案儲存體:唯一可提供安全、SMB 和完全受控雲端檔案共用的公用雲端檔案儲存體,也可以在內部部署中快取以獲得效能和相容性。Azure Files: The only public cloud file storage that delivers secure, SMB-based, and fully managed cloud file shares that can also be cached on-premises for performance and compatibility. 針對 NFS 和 GlusterFS,複寫是標準 LRS,儲存體類型是一般用途 v1。For NFS and GlusterFS, the replication is standard LRS, and the storage type is general-purpose v1. 針對 Azure 檔案儲存體,複寫是 premium LRS,而類型為 FileStorage。For Azure Files, the replication is premium LRS, and the type is FileStorage.

根據您選擇的部署而定,這些儲存機制會有所不同。These storage mechanisms differ depending on which deployment you choose. NFS 和 GlusterFS 會建立容器,Azure 檔案儲存體建立檔案共用。NFS and GlusterFS create a container, and Azure Files creates a file share. 針對最小和最短的 Moodle 大小,此範本支援 NFS。For minimal and short-to-mid Moodle sizes, the template supports NFS. 針對大型和最大的大小,範本支援 Azure 檔案儲存體。For large and maximal sizes, the template supports Azure Files. 若要存取容器和檔案共用,請移至 Azure 入口網站,然後選取資源群組中的儲存體帳戶。To access the containers and file shares, go to the Azure portal, and select the storage account in the resource group.

Azure 入口網站的螢幕擷取畫面。

資料庫範本Database template

資料庫範本部署會建立 適用於 MySQL 的 Azure 資料庫 伺服器。The database template deployment creates an Azure Database for MySQL server. 適用於 MySQL 的 Azure 資料庫可以輕鬆地設定、管理和調整。Azure Database for MySQL is easy to set up, manage, and scale. 它會將基礎結構和資料庫伺服器的管理和維護自動化,包括例行更新、備份和安全性。It automates the management and maintenance of your infrastructure and database server, including routine updates, backups, and security. 適用於 MySQL 的 Azure 資料庫是以最新的 MySQL 版本所建立,包括5.6、5.7 和8.0 版。Azure Database for MySQL is built with the latest community edition of MySQL, including versions 5.6, 5.7, and 8.0. 若要存取範本所建立的資料庫伺服器,請移至 Azure 入口網站,然後開啟部署程式所提供的資源群組。To access the database server that the template creates, go to the Azure portal and open the resource group that the deployment process provides. 然後移至 適用於 MySQL 的 Azure 資料庫 serverThen go to Azure Database for MySQL server. 此範本會為資料庫伺服器提供伺服器名稱、伺服器管理員登入名稱、MySQL 版本,以及效能設定。The template gives the database server a server name, a server admin login name, a MySQL version, and a performance configuration.

虛擬機器範本Virtual machine template

虛擬機器範本部署會將虛擬機器指定為控制器虛擬機器。The virtual machine template deployment designates a virtual machine as a controller virtual machine. 控制器虛擬機器的作業系統是 Ubuntu 18.04。The operating system for the controller virtual machine is Ubuntu 18.04.

虛擬機器擴充功能是小型的應用程式,可在 Azure 虛擬機器上提供部署後設定和自動化工作。Virtual machine extensions are small applications that provide post-deployment configuration and automation tasks on Azure Virtual Machines. 虛擬機器擴充功能會執行 shell 腳本,以在控制器虛擬機器上安裝 Moodle 並捕獲記錄檔。A virtual machine extension runs a shell script that installs Moodle on the controller virtual machine and captures log files. 它會 stderr stdout 在資料夾中建立和記錄檔 /var/lib/waagent/custom-script/download/0/It creates the stderr and stdout log files in the /var/lib/waagent/custom-script/download/0/ folder. 您可以使用根使用者的形式來查看這些檔案。You can view these files as a root user.

擴展集範本Scale set template

擴展集範本部署會建立 虛擬機器擴展集The scale set template deployment creates a virtual machine scale set. 您可以使用虛擬機器擴展集來部署和管理一組自動調整虛擬機器。By using a virtual machine scale set, you can deploy and manage a set of autoscaling virtual machines. 您可以手動調整擴展集中的虛擬機器數目,或定義規則以根據資源使用量(例如 CPU、記憶體需求或網路流量)自動調整。You can scale the number of virtual machines in the scale set manually or define rules to autoscale based on resource usage like CPU, memory demand, or network traffic. 當實例擴大時,它會部署虛擬機器。When an instance scales up, it deploys a virtual machine. 然後執行會安裝 Moodle 必要條件並設定 cron 作業的 shell 腳本。Then a shell script runs that installs Moodle prerequisites and sets up cron jobs. 擴展集中的虛擬機器具有私人 IP 位址。A virtual machine in a scale set has a private IP address. 如需有關如何在擴展集中查看虛擬機器實例,以及如何存取這些實例的詳細資訊,請參閱 虛擬機器擴展集檔For more information on viewing the virtual machine instances in a scale set and how to access these instances, see the virtual machine scale set documentation.

下一步Next steps

繼續 Moodle 手動遷移步驟 ,以進行 Moodle 遷移程式中的後續步驟。Continue to Moodle manual migration steps for the next steps in the Moodle migration process.