Azure VM 上の SQL Server に移行する場合は、SSIS/DTS パッケージ、ジョブ、リンク サーバー、拡張イベント (XE) セッション、監査などの、データベース以外のサイズ要素を検討してください。 これらのコンポーネントはストレージ要件に大きな影響を与える可能性があるため、キャパシティ プランニングに組み込む必要があります。 移行の詳細については、「Azure VM 上の SQL Server 移行ガイド」を確認してください
Premium SSD v2 を使用して SQL Server VM を作成する
Azure portal で Ebdsv5 または Ebsv5 仮想マシンに SQL Server を Azure VM にデプロイする場合は、Premium SSD v2 を使用します。 そのためには、次の手順に従います。
[SQL 仮想マシン] で、ドロップダウンを使用して、無料 SQL Server ライセンス: Windows Server 2022 の SQL Server 2022 Developer などの SQL Server イメージを選択します。 [作成] を選択して、[仮想マシンの作成] ページを開きます。
既定では、IOPS、処理能力、ディスク数は、SQL Server VM のすべてのドライブ間で均等に分散されます。 累積構成値が選択した VM サイズの最大値を超えると、上限とパフォーマンスの問題が発生する可能性があります。 構成済みの値が VM の制限を超えると、黄色の警告が表示されます。
ストレージ コスト見積もりは現在、従量課金制 (PAYG) サブスクリプションでのみ使用できます。 Azure 料金計算ツール を使用して、他のサブスクリプションのストレージ コストを見積もります。
[SQL Server の設定] タブと [タグ] タブで、再メイン設定を変更します。 [確認 + 作成] を選択して SQL Server VM の設定を確認し、[作成] を選択して SQL Server VM をデプロイします。
# Define the resource group and VM name$resourceGroupName = '<resource group name>'$vmName = '<name of the VM>'# replace with your VM name$diskNames = @('AzureSQLVMwithPSSDv2_DataDisk_0', 'AzureSQLVMwithPSSDv2_DataDisk_1')
処理能力を調整するには、次の PowerShell サンプルを使用します:
PowerShell
## This script updates the throughput for all the disks associated with the VM and RG:# Get the VM$vm = Get-AzVM -ResourceGroupName$resourceGroupName -Name$vmName# Get all the disks attached to the VM$disks = $vm.StorageProfile.DataDisks
# Loop through each disk and update the throughputforeach ($diskin$disks) {
# Update the disk$diskUpdateConfig = New-AzDiskUpdateConfig -DiskMBpsReadWrite550Update-AzDisk -ResourceGroupName$resourceGroupName -DiskName$disk.Name -DiskUpdate$diskUpdateConfig
}
# Confirm the updateforeach ($diskin$disks) {
# Get the updated disk$updatedDisk = Get-AzDisk -ResourceGroupName$resourceGroupName -DiskName$disk.Name
# Output the updated IOPSWrite-Output ("Disk '{0}' throughput: {1}" -f$updatedDisk.Name, $updatedDisk.DiskMBpsReadWrite)
}
IOPS を調整するには、次の PowerShell サンプルを使用します:
PowerShell
## This script updates the IOPS for a set list of the disks associated with a RG:# Loop through each disk and update the IOPSforeach ($diskNamein$diskNames) {
# Get the disk$disk = Get-AzDisk -ResourceGroupName$resourceGroupName -DiskName$diskName# Update the disk$diskUpdateConfig = New-AzDiskUpdateConfig -DiskIOPSReadWrite5000Update-AzDisk -ResourceGroupName$resourceGroupName -Disk$disk -DiskUpdate$diskUpdateConfig
}
# Confirm the updateforeach ($diskNamein$diskNames) {
# Get the updated disk$updatedDisk = Get-AzDisk -ResourceGroupName$resourceGroupName -DiskName$diskName# Output the updated IOPSWrite-Output ("Disk '{0}' IOPS: {1}" -f$updatedDisk.Name, $updatedDisk.DiskIOPSReadWrite)
}
制限事項
Azure portal で Azure VM に SQL Server をデプロイする場合、Premium SSD v2 は次の場合のみです:
新規 SQL Server VM で使用できます。 既存の SQL Server VM は、ストレージを Premium SSD v2 に変更できません。