Azure 虛擬機器上的 SQL Server 是什麼?What is SQL Server on Azure Virtual Machines? (Windows)(Windows)

Azure 虛擬機器上的 SQL Server 可讓您在雲端使用完整的 SQL Server 版本,而不需要管理任何內部部署硬體。SQL Server on Azure virtual machines enables you to use full versions of SQL Server in the Cloud without having to manage any on-premises hardware. 當您使用預付型方案時,SQL Server VM 也會簡化授權成本。SQL Server VMs also simplify licensing costs when you pay as you go.

Azure 虛擬機器會在全球許多不同的地理區域中執行。Azure virtual machines run in many different geographic regions around the world. 此外,也提供各種機器大小They also offer a variety of machine sizes. 虛擬機器映像庫可讓您使用正確的版本、版次及作業系統建立 SQL Server VM。The virtual machine image gallery allows you to create a SQL Server VM with the right version, edition, and operating system. 這可讓虛擬機器成為許多不同 SQL Server 工作負載的適合選項。This makes virtual machines a good option for a many different SQL Server workloads.

自動化更新Automated updates

SQL Server Azure VM 可以使用 自動修補 來排程維護期間,以便自動安裝重要的 Windows 和 SQL Server 更新。SQL Server Azure VMs can use Automated Patching to schedule a maintenance window for installing important windows and SQL Server updates automatically.

自動備份Automated backups

SQL Server Azure VM 可以利用 自動備份,以定期建立資料庫的備份至 Blob 儲存體。SQL Server Azure VMs can take advantage of Automated Backup, which regularly creates backups of your database to blob storage. 您也可以手動使用此技術。You can also manually use this technique. 如需詳細資訊,請參閱 使用 Azure 儲存體進行 SQL Server 備份與還原For more information, see Use Azure Storage for SQL Server Backup and Restore.

高可用性High availability

如果您需要高可用性,請考慮設定 SQL Server 可用性群組。If you require high availability, consider configuring SQL Server Availability Groups. 這牽涉到虛擬網路中多個 SQL Server Azure VM。This involves multiple SQL Server Azure VMs in a virtual network. 您可以手動設定高可用性解決方案,也可以在 Azure 入口網站使用範本進行自動設定。You can configure your high availability solution manually, or you can use templates in the Azure portal for automatic configuration. 如需所有高可用性選項的概觀,請參閱 Azure 虛擬機器中的 SQL Server 高可用性和災害復原For an overview of all high availability options, see High Availability and Disaster Recovery for SQL Server in Azure Virtual Machines.

效能Performance

Azure 虛擬機器提供不同的機器大小,以符合各種工作負載需求。Azure virtual machines offer different machine sizes to meet various workload demands. SQL VM 也會提供已針對您的效能需求而最佳化的自動化儲存體組態。SQL VMs also provide automated storage configuration, which is optimized for your performance requirements. 如需為 SQL VM 設定儲存體的詳細資訊,請參閱 SQL Server VM 的儲存體組態For more information about configuring storage for SQL VMs, see Storage configuration for SQL Server VMs. 若要微調效能,請參閱 Azure 虛擬機器中的 SQL Server 效能最佳做法To fine-tune performance, see the Performance best practices for SQL Server in Azure Virtual Machines.

開始使用 SQL VMGet started with SQL VMs

若要開始使用,請選擇具有您所需版本、版次及作業系統的 SQL Server 虛擬機器映像。To get started, choose a SQL Server virtual machine image with your required version, edition, and operating system. 下列各節提供 Azure 入口網站中 SQL Server 虛擬機器資源庫映像的直接連結。The following sections provide direct links to the Azure portal for the SQL Server virtual machine gallery images.

提示

如需了解 SQL 映像定價的詳細資訊,請參閱 SQL Server Azure VM 的定價指導方針

預付型方案Pay as you go

下表提供預付型 SQL Server 映像的對照表。The following table provides a matrix of pay-as-you-go SQL Server images.

VersionVersion 作業系統Operating System 版本Edition
SQL Server 2017SQL Server 2017 Windows Server 2016Windows Server 2016 EnterpriseStandardWebExpressDeveloperEnterprise, Standard, Web, Express, Developer
SQL Server 2016 SP2SQL Server 2016 SP2 Windows Server 2016Windows Server 2016 EnterpriseStandardWebExpressDeveloperEnterprise, Standard, Web, Express, Developer
SQL Server 2014 SP2SQL Server 2014 SP2 Windows Server 2012 R2Windows Server 2012 R2 EnterpriseStandardWebExpressEnterprise, Standard, Web, Express
SQL Server 2012 SP4SQL Server 2012 SP4 Windows Server 2012 R2Windows Server 2012 R2 EnterpriseStandardWebExpressEnterprise, Standard, Web, Express
SQL Server 2008 R2 SP3SQL Server 2008 R2 SP3 Windows Server 2008 R2Windows Server 2008 R2 EnterpriseStandardWebExpressEnterprise, Standard, Web, Express

若要查看可用的 Linux SQL Server 虛擬機器映像,請參閱 Azure 虛擬機器 (Linux) 上的 SQL Server 概觀To see the available Linux SQL Server virtual machine images, see Overview of SQL Server on Azure Virtual Machines (Linux).

注意

現在已可將 SQL Server VM 的依使用量付費授權模式變更成使用自己的授權。 如需詳細資訊,請參閱如何變更 SQL VM 的授權模型

自備授權Bring your own license

您也可以自備授權 (BYOL)。You can also bring your own license (BYOL). 在此案例中,您只需支付 VM 費用,而 SQL Server 授權不需任何額外的費用。In this scenario, you only pay for the VM without any additional charges for SQL Server licensing. 長期下來,自備授權可以讓您節省連續生產工作負載的成本。Bringing your own license can save you money over time for continuous production workloads. 如需使用此選項的相關需求,請參閱 SQL Server Azure VM 的價格指引For requirements to use this option, see Pricing guidance for SQL Server Azure VMs.

若要自備授權,您可以轉換依使用量付費的現有 SQL VM,或部署加上 {BYOL} 前置詞的映像。To bring your own license, you can either convert an existing pay-per-usage SQL VM, or you can deploy an image with the prefixed {BYOL}. 如需有關在依使用量付費和 BYOL 授權模式之間切換的詳細資訊,請參閱如何變更 SQL VM 的授權模式For more information about switching your licensing model between pay-per-usage and BYOL, see How to change the licensing model for a SQL VM.

VersionVersion 作業系統Operating system 版本Edition
SQL Server 2017SQL Server 2017 Windows Server 2016Windows Server 2016 Enterprise BYOLStandard BYOLEnterprise BYOL, Standard BYOL
SQL Server 2016 SP2SQL Server 2016 SP2 Windows Server 2016Windows Server 2016 Enterprise BYOLStandard BYOLEnterprise BYOL, Standard BYOL
SQL Server 2014 SP2SQL Server 2014 SP2 Windows Server 2012 R2Windows Server 2012 R2 Enterprise BYOLStandard BYOLEnterprise BYOL, Standard BYOL
SQL Server 2012 SP4SQL Server 2012 SP4 Windows Server 2012 R2Windows Server 2012 R2 Enterprise BYOLStandard BYOLEnterprise BYOL, Standard BYOL

較舊而無法在 Azure 入口網站中使用的 SQL Server 映像,可以使用 PowerShell 來部署。It is possible to deploy an older image of SQL Server that is not available in the Azure Portal using PowerShell. 若要使用 Powershell 檢視所有可用的映像,請使用下列命令:To view all available images using Powershell, use the following command:

Get-AzVMImageOffer -Location $Location -Publisher 'MicrosoftSQLServer'

如需使用 PowerShell 部署 SQL Server VM 的詳細資訊,請檢視如何使用 Azure PowerShell 佈建 SQL Server 虛擬機器For more information about deploying SQL Server VMs using PowerShell, view How to provision SQL Server virtual machines with Azure PowerShell.

連接至 VMConnect to the VM

建立 SQL Server VM 之後,從 SQL Server Management Studio (SSMS) 等應用程式或工具來連線該 VM。After creating your SQL Server VM, connect to it from applications or tools, such as SQL Server Management Studio (SSMS). 如需相關只是,請參閱連線到 Azure 上的 SQL Server 虛擬機器For instructions, see Connect to a SQL Server Virtual Machine on Azure.

遷移資料Migrate your data

如果您有現有的資料庫,您會想要將該資料庫移到新佈建的 SQL VM。If you have an existing database, you'll want to move that to the newly provisioned SQL VM. 如需移轉選項的清單和指引,請參閱 將資料庫移轉至 Azure VM 上的 SQL ServerFor a list of migration options and guidance, see Migrating a Database to SQL Server on an Azure VM.

SQL VM 映像重新整理原則SQL VM image refresh policy

Azure 只會針對每個支援的作業系統、版本和版次組合,維護一個虛擬機器映像。Azure only maintains one virtual machine image for each supported operating system, version, and edition combination. 這表示經過一段時間會重新整理映像,而且會移除舊的映像。This means that over time images are refreshed, and older images are removed. 如需詳細資訊,請參閱 SQL Server VM 常見問題集的「映像」一節。For more information, see the Images section of the SQL Server VMs FAQ.

客戶經驗改進計畫 (CEIP)Customer experience improvement program (CEIP)

預設會啟用「客戶經驗改進計畫」(CEIP)。The Customer Experience Improvement Program (CEIP) is enabled by default. 這會定期將報表傳送至 Microsoft 以協助改進 SQL Server。This periodically sends reports to Microsoft to help improve SQL Server. CEIP 不需要管理工作,除非您要在佈建之後將它停用。There is no management task required with CEIP unless you want to disable it after provisioning. 您可以透過遠端桌面連接到 VM,以自訂或停用 CEIP。You can customize or disable the CEIP by connecting to the VM with remote desktop. 然後執行 [SQL Server 錯誤和使用情況報告] 公用程式。Then run the SQL Server Error and Usage Reporting utility. 請遵循指示來停用報告功能。Follow the instructions to disable reporting. 如需有關資料收集的詳細資訊,請參閱 SQL Server 隱私權聲明For more information about data collection, see the SQL Server Privacy Statement.

Windows 虛擬機器Windows Virtual Machines

儲存體Storage

網路功能Networking

SQLSQL

後續步驟Next steps

在 Azure 虛擬機器上開始使用 SQL Server:Get started with SQL Server on Azure virtual machines:

獲得有關 SQL VM 常見問題的答案:Get answers to commonly asked questions about SQL VMs: