Azure VM では、ディスクコントローラとして、SCSI と NVMe の二種類があり、どちらのディスクコントローラが利用されるかは、VM サイズ (VM SKU) と、DiskControllerTypes の指定で決まっています。
補足
一部の VM SKU では、両方のディスクコントローラが利用できるような SKU もあります。
このディスクコントローラの違いによって、VMサイズの変更が難しい場合があり、このVMサイズの変更について、Azure IaaS のサポートチームの方が、ブログ(NVMe ディスクコントローラー必須の Azure VM サイズについて(Dsv5 から Dsv6 サイズへの変更など))にまとめていただいています。
本ブログでは、このサポートチームのブログの補足となる情報をまとめてみたいと思います。
重要
ブログの初版の時点では、Windows OS への対応が記載されていませんでしたが、2026/08/15 時点において、Windows OS 用のページもできていましたので、これに沿って再検証および情報更新しました。
TL;DR
(Updated: 2026/08/15) 公式ドキュメントにも Windows での変換方法が記載されたため、それに沿って更新
- NVMeに対応したVMサイズは、2025年2月時点で40ファミリが存在する
- SCSI から NVMe に変更するためには、第二世代のVMであり、セキュリティの種類が「標準」(トラステッド起動ではない)であることと、OS がNVMeをサポートしている必要がある
- 既存の Azure Gen1 VM を信頼された起動にアップグレードするが公開されているが、この手順では、Gen2 に変換できるものの、同時にセキュリティの種類が「トラステッド起動」になるため、NVMe には変更できない
- Azure Disk Encryption (ADE) を利用している場合は、ADE がサポートしている VM サイズであることを事前に確認する必要がある
- (Updated: 2026/09/19) 2026/08/26 の修正版で、Windows Server 2022 においても、SCSI から NVMe への変換が可能になった
上記の内容から、SCSI の仮想マシンを NVMe 必須のサイズ、もしくは NVMe を利用したサイズに変更したい場合は、以下の通りとなります。

NVMe ディスクコントローラが利用可能なVMサイズ
Azure IaaS サポートチームのブログでは、Azure CLI や Azure PowerShell を利用した、NVMe の利用可能サイズの一覧を取得する方法が記載されています。
以下に、Azure CLI を利用して取得した、2025年2月時点での NVMe ディスクコントローラが利用可能な VM サイズのファミリについて、一覧を示します。
確認した時点では、全部で 40 ファミリが NVMe ディスクコントローラに対応していました。
NVMe ディスクコントローラが利用可能なVMサイズファミリ一覧
- StandardDadsv7Family
- StandardDaldsv7Family
- StandardDalsv7Family
- StandardDasv7Family
- StandardDdsv6Family
- StandardDldsv6Family
- StandardDlsv6Family
- StandardDsv6Family
- StandardEadsv7Family
- StandardEasv7Family
- StandardEdsv6Family
- StandardEsv6Family
- StandardFXmdsv2Family
- StandardFXmsv2Family
- StandardFadsv7Family
- StandardFaldsv7Family
- StandardFalsv6Family
- StandardFalsv7Family
- StandardFamdsv7Family
- StandardFamsv6Family
- StandardFamsv7Family
- StandardFasv6Family
- StandardFasv7Family
- StandardMBDSMediumMemoryv3Family
- StandardMBSMediumMemoryv3Family
- standardDadv6Family
- standardDaldv6Family
- standardDalv6Family
- standardDav6Family
- standardEBDSv5Family
- standardEBSv5Family
- standardEIBDSv5Family
- standardEIBSv5Family
- standardEadv6Family
- standardEav6Family
- standardLaosv4Family
- standardLasv4Family
- standardLsv4Family
- standardMDSMediumMemoryv3Family
- standardMSMediumMemoryv3Family
注意
上記のリストは、「2025年2月時点」に取得したリストであり、必ず最新のものをコマンドで確認ください。
NVMe ディスクコントローラを利用するための注意点
NVMe ディスクコントローラを利用するための前提条件は、Azure IaaS サポートチームのブログにてまとめていただいている通り、以下の要件があります。
- VM が第二世代のVMであること
- VM OS が、NVMe ディスクコントローラをサポートしていること
- イメージが、NVMeをサポートしているマーク済みのイメージであること
なお、上記以外の観点でも、二点ほど注意点があります。
1: トラステッド起動で構成された VM を SCSI から NVMe に変更することはできない
Azure IaaS サポートチームのブログに記載はありませんが、MSLearn ドキュメント上でも、トラステッド起動で構成された VM は、NVMe ディスクコントローラを利用する VM サイズに変更できない旨の記載があります。
公式ドキュメント抜粋
トラステッド起動で構成された VM を SCSI から NVMe に移行することはできますか?
いいえ。トラステッド起動で構成された VM を SCSI から NVMe に移行することはできません。
つまり、この制約がありますので、SCSIから NVMe に変更するためには、既存の VM が **第二世代の VM であり、かつセキュリティの種類が標準(トラステッド起動ではない)**である VM のみとなります。
2: Azure Disk Encryption (ADE) でサポートされていないサイズがある
Azure Disk Encryption (ADE) を利用している場合にも、注意が必要となります。
例えば、Windows OSの場合、公式ドキュメント 記載の通り、ADE では、一時ディスクを使用した v6 シリーズや、v7 シリーズ以降の VM サイズの暗号化をサポートしていません。
公式ドキュメント抜粋
Azure Disk Encryption は、次のシナリオ、機能、およびテクノロジには対応していません。
・「一時ディスクを使用した v6 シリーズ VM の暗号化 (Ddsv6、Dldsv6、Edsv6、Dadsv6、Daldsv6、Eadsv6、Dpdsv6、Dpldsv6、Epdsv6、Endsv6)。 詳細については、「Azure の仮想マシンのサイズ」に記載されている各 VM サイズの個別のページを参照してください」
・V7 シリーズ以降の VM サイズの暗号化。
また、Linux OSの場合も、具体的な VM SKU ファミリの記載は見受けられませんが、公式ドキュメント に、v6 シリーズや v7 シリーズ以降の VM では、ADE がサポートされていない旨の記載があります。
公式ドキュメント抜粋
「Azure Disk Encryption は 、Basic、A シリーズ VM、v6 シリーズ VM、v7 シリーズ VM、またはそれ以降、または次の最小メモリ要件を満たしていない仮想マシンでは使用できません。」
つまり、Azure Disk Encryption を利用している場合は、NVMe ディスクコントローラを利用する VM サイズへの変更ができない可能性がありますので、注意が必要です。
Azure IaaS サポートのブログで紹介されている Azure NVMe Utilities の実装においても、2026年2月時点で確認した範囲では、Linux OS は 「Azure Disk Encryption for Linux はNVMe ディスクをサポートしていない」ということで、エラーが出力されるような実装になっています。
Azure Disk Encryption は既に非推奨となっており、Azure VM のディスク暗号化には、ホストでの暗号化に移行することが推奨されています。Microsoft の公式ドキュメント(Azure VM のディスク暗号化)によると、Azure Disk Encryption は2028年9月15日に廃止される予定です。
詳細は、公式の廃止に関するドキュメントでご確認ください。
結果として、NVMe に変更するためには、既存の VM が少なくとも、第二世代の VM であり、かつ セキュリティの種類が標準(トラステッド起動ではない) であること、さらに Azure Disk Encryption を利用している場合は、ADE がサポートされている VM サイズであることを事前に確認しておく必要があります。
Azure NVMe Utilities を実際に試してみる
Azure IaaSチームのブログでも紹介されている、Azure NVMe Utilities で公開されているスクリプトは、Azure VM で利用するディスクコントローラ を SCSI から NVMe に変更するための PowerShell スクリプトです。
このスクリプトを実行すると、 Azure リソースの構成だけでなく、RunCommand を利用して、OS上の設定も変更されます。
今回検証する Azure-NVMe-Utils は、MIT ライセンスで公開されているオープンソース ソフトウェアです。Microsoft から公開されていますが、公式のサポートが提供されるものではなく、自己責任での利用が必要となります。
Azure NVMe Utilities 利用に必要な権限
Azure NVMe Utilities のPowerShell スクリプトでは、VMの情報を取得しての必要な設定変更に関する検証、アクション 実行コマンドを利用した OS 上での設定変更、および VM サイズを指定したサイズに変更するといった操作を一括で実行してくれます。
そのため、具体的には以下の権限が必要になります。
- VM の閲覧権限
- VM のサイズ変更に必要な権限
- VM の停止に関する権限
- VM の RunCommand 実行に関する権限
上記のすべてを実行できる組み込みのロールは、仮想マシン共同作成者 ロールとなります。
Linux OS で試してみる
Azure リソース上の設定変更
Azure NVMe Utilities では、Linux OS上の設定変更に加えて、Azure リソース上の以下の設定を変更します。
- VM のディスクコントローラの種類の値を NVMe に変更
- VM のサイズを指定のサイズに変更
- VM にアタッチされた OS ディスクの diskControllerTypes プロパティを "SCSI, NVMe" に変更
実際の実行結果
実際に、RedHat Enterprise Linux 9.7 の VM をイメージからデプロイして検証します。
検証当初の VM の構成は以下の通りです。
| 項目 | 値 |
|---|---|
| VM サイズ | Standard_D2s_v4 |
| 世代 | 第二世代 |
| セキュリティの種類 | 標準 |
| ディスクコントローラ | SCSI |
| OS | RedHat Enterprise Linux 9.7 |
実際に OS にログインして、確認したバージョン等の情報はこちら
$ cat /etc/redhat-release
Red Hat Enterprise Linux release 9.7 (Plow)
$ uname -a
Linux nvme-rhel-vm 5.14.0-611.24.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jan 10 05:12:47 EST 2026 x86_64 x86_64 x86_64 GNU/Linux
## 現状の Disk はSCSIで認識されている
$ ls -l /sys/class/block | grep sd
lrwxrwxrwx. 1 root root 0 Feb 6 12:34 sda -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/VMBUS:00/f8b3781a-1e82-4818-a1c3-63d806ec15bb/host0/target0:0:0/0:0:0:0/block/sda
lrwxrwxrwx. 1 root root 0 Feb 6 12:34 sda1 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/VMBUS:00/f8b3781a-1e82-4818-a1c3-63d806ec15bb/host0/target0:0:0/0:0:0:0/block/sda/sda1
lrwxrwxrwx. 1 root root 0 Feb 6 12:34 sda2 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/VMBUS:00/f8b3781a-1e82-4818-a1c3-63d806ec15bb/host0/target0:0:0/0:0:0:0/block/sda/sda2
lrwxrwxrwx. 1 root root 0 Feb 6 12:34 sda3 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/VMBUS:00/f8b3781a-1e82-4818-a1c3-63d806ec15bb/host0/target0:0:0/0:0:0:0/block/sda/sda3
lrwxrwxrwx. 1 root root 0 Feb 6 12:34 sda4 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/VMBUS:00/f8b3781a-1e82-4818-a1c3-63d806ec15bb/host0/target0:0:0/0:0:0:0/block/sda/sda4
## SCSI で認識されているため、NVMe のディスクはない
$ nvme list
Node Generic SN Model Namespace Usage Format FW Rev
--------------------- --------------------- -------------------- ---------------------------------------- ---------- -------------------------- ---------------- --------
$
実際に Azure NVMe Utilities の PowerShell スクリプトを実行して、ディスクの種類を NVMe に変更してみます。
PS > .\Azure-NVMe-Conversion.ps1 -ResourceGroupName <ResourceGroupName> -NewControllerType NVMe -VMSize Standard_D2as_v7 -VMName <VMName>
00:00 - INFO - Starting script Azure-NVMe-Conversion.ps1
00:00 - INFO - Script started at 02/06/2026 21:42:24
00:00 - INFO - Script version: 2025111001
00:00 - INFO - Script parameters:
00:00 - INFO - ResourceGroupName -> <ResourceGroupName>
00:00 - INFO - NewControllerType -> NVMe
00:00 - INFO - VMSize -> Standard_D2as_v7
00:00 - INFO - VMName -> <VMName>
00:00 - INFO - Script Version 2025111001
00:00 - INFO - Module Az.Compute is installed and the version is correct.
00:00 - INFO - Module Az.Accounts is installed and the version is correct.
00:00 - INFO - Module Az.Resources is installed and the version is correct.
00:00 - INFO - Connected to Azure subscription name: <SubscriptionName>
00:00 - INFO - Connected to Azure subscription ID: <SubscriptionID>
00:02 - INFO - VM <VMName> found in Resource Group <ResourceGroupName>
00:03 - INFO - ADE for Linux extension is NOT installed on this VM
00:03 - INFO - VM <VMName> is running
00:03 - INFO - VM <VMName> is running Linux
00:03 - INFO - VM <VMName> is running SCSI
00:03 - INFO - Not running in Azure Cloud Shell
00:03 - INFO - Authentication token is a SecureString
00:03 - INFO - Authentication token received
00:03 - INFO - Getting available SKU resources
00:03 - INFO - This might take a while ...
00:05 - INFO - Skipping resource disk support check for Linux VMs
00:05 - INFO - Found VM SKU - Checking for Capabilities
00:05 - INFO - VM SKU has supported capabilities
00:05 - INFO - VM supports NVMe
00:05 - INFO - Pre-Checks completed
00:05 - INFO - Entering Linux OS section
00:35 - INFO - Script output: Enable succeeded:
00:35 - INFO - Script output: [stdout]
00:35 - INFO - Script output: [INFO] Operating system detected: rhel
00:35 - INFO - Script output: [INFO] Checking if NVMe driver is included in initrd/initramfs...
00:35 - INFO - Script output: [INFO] NVMe driver found in initrd/initramfs.
00:35 - INFO - Script output: [INFO] Checking nvme_core.io_timeout parameter...
00:35 - INFO - Script output: [INFO] nvme_core.io_timeout is set to 240.
00:35 - INFO - Script output: [INFO] Checking /etc/fstab for deprecated device names...
00:35 - INFO - Script output: [INFO] /etc/fstab does not contain deprecated device names.
00:35 - INFO - Script output:
00:35 - INFO - Script output: [stderr]
00:35 - INFO - Script output:
00:35 - INFO - Errors: 0 - Warnings: 0 - Info: 7
00:35 - INFO - Shutting down VM nvme-rhel-vm
01:16 - INFO - VM nvme-rhel-vm stopped
01:16 - INFO - Checking if VM is stopped and deallocated
01:16 - INFO - Setting OS Disk capabilities for nvme-rhel-vm-osdisk to new Disk Controller Type to NVMe
01:16 - INFO - generated URL for OS disk update:
01:16 - INFO - https://management.azure.com/subscriptions/<SubscriptionID>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Compute/disks/nvme-rhel-vm-osdisk?api-version=2023-04-02
01:16 - INFO - OS Disk updated
01:16 - INFO - Setting new VM Size from Standard_D2s_v4 to Standard_D2as_v7 and Controller to NVMe
01:16 - INFO - Updating VM nvme-rhel-vm
01:47 - INFO - VM nvme-rhel-vm updated
01:47 - INFO - VM nvme-rhel-vm is stopped. Please start the VM manually.
01:47 - INFO - If the VM should be started automatically use -StartVM switch
01:47 - IMPORTANT - Please start the virtual machine manually and check the operating system
01:47 - INFO - You can also use -StartVM switch to start the VM automatically
01:47 - INFO - If you have any issues after the conversion you can revert the changes by running the script with the old settings
01:47 - IMPORTANT - Here is the command to revert the changes:
01:47 - INFO - .\Azure-NVMe-Conversion.ps1 -ResourceGroupName nvme-test -VMName nvme-rhel-vm -NewControllerType SCSI -VMSize Standard_D2s_v4 -StartVM
01:47 - INFO - Script ended at 02/06/2026 21:44:11
01:47 - INFO - Exiting
PS >
公式ドキュメント に記載の通りのログが出力され、無事に変更が完了しました。
変更が完了したので、起動をして、OS上でのディスクの認識状況を確認します。
$ ls -l /sys/class/block | grep sd
$ ls -l /sys/class/block | grep nvme
lrwxrwxrwx. 1 root root 0 Feb 6 12:45 nvme0n1 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/MSFT1000:00/7ad35d50-c05b-47ab-b3a0-56a9a845852b/pcic05b:00/c05b:00:00.0/nvme/nvme0/nvme0n1
lrwxrwxrwx. 1 root root 0 Feb 6 12:45 nvme0n1p1 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/MSFT1000:00/7ad35d50-c05b-47ab-b3a0-56a9a845852b/pcic05b:00/c05b:00:00.0/nvme/nvme0/nvme0n1/nvme0n1p1
lrwxrwxrwx. 1 root root 0 Feb 6 12:45 nvme0n1p2 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/MSFT1000:00/7ad35d50-c05b-47ab-b3a0-56a9a845852b/pcic05b:00/c05b:00:00.0/nvme/nvme0/nvme0n1/nvme0n1p2
lrwxrwxrwx. 1 root root 0 Feb 6 12:45 nvme0n1p3 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/MSFT1000:00/7ad35d50-c05b-47ab-b3a0-56a9a845852b/pcic05b:00/c05b:00:00.0/nvme/nvme0/nvme0n1/nvme0n1p3
lrwxrwxrwx. 1 root root 0 Feb 6 12:45 nvme0n1p4 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0004:00/MSFT1000:00/7ad35d50-c05b-47ab-b3a0-56a9a845852b/pcic05b:00/c05b:00:00.0/nvme/nvme0/nvme0n1/nvme0n1p4
$ nvme list
Node Generic SN Model Namespace Usage Format FW Rev
--------------------- --------------------- -------------------- ---------------------------------------- ---------- -------------------------- ---------------- --------
/dev/nvme0n1 /dev/ng0n1 SN: 00000 MSFT NVMe Accelerator v1.0 0x1 68.72 GB / 68.72 GB 512 B + 0 B v1.00000
$
無事に NVMe ディスクとして認識されていることが確認でき、Azure NVMe Utilities のPowerShell スクリプトを利用して、SCSI から NVMe への変更が正常に完了していることが確認できます。
Azure Disk Encryption で暗号化されている場合
Azure Disk Encryption for Linux で暗号化されている場合は、前述の通り、Azure Disk Encryption for Linux でサポートしているサイズのみが選択可能です。
そのうえで、Azure NVMe Utilities のスクリプトで、以下の部分をコメントアウトしたうえで、スクリプトを実行すると、
無事に移行することができました。
# Check if the Azure Disk Encryption for Linux is present
if ($_VM.StorageProfile.OsDisk.OsType -eq "Linux") {
try {
$extension = Get-AzVMExtension -ResourceGroupName $ResourceGroupName -VMName $VMName -Name "AzureDiskEncryptionForLinux" -ErrorAction Stop
if ($extension.ProvisioningState -eq "Succeeded") {
WriteRunLog -message "ADE for Linux extension is installed and succeeded on VM: $($extension.VMName)" -category "ERROR"
WriteRunLog -message "Azure Disk Encryption for Linux don't support NVMe disks" -category "ERROR"
WriteRunLog $_.Exception.Message "ERROR"
exit
} else {
WriteRunLog -message "ADE for Linux extension is installed but provisioning state is: $($extension.ProvisioningState)" -category "ERROR"
WriteRunLog -message "If the VM has not been encrypted remove the extension and try again" -category "ERROR"
WriteRunLog $_.Exception.Message "ERROR"
exit
}
}
catch {
WriteRunLog -message "ADE for Linux extension is NOT installed on this VM"
}
}
注意
この方法は、Azure NVMe Utilities のソースコードを書き換えてチェック機構を無効化することで、Azure Disk Encryption を利用していても変換可能にするものであり、自己責任で実施する必要のある利用方法です。
Azure Disk Encryption 自体がすでにサービス終了が公表されているものでもあり、一度 Azure Disk Encryption を解除してからの変換が推奨されます。
補足
ADE に関しては、2026/08/15 時点で、Linux OS 向けにだけ記載があり、Windows OS向けには上記は関係ないものと見受けられます。
(2026/09/19 Updated) Windows OS で試してみる
8/15 に検証した際は、BSoD が発生して OS が起動できない状況となりましたが、GitHub にて Issue を作成して、原因とワークアラウンドを報告したところ、8/26 に修正バージョンがリリースされました。
そのため、今回は、8/26 にリリースされた最新のバージョンを用いて、実際に Windows OS を用いて検証してみます。
※結論を先に記載しますと、無事に NVMe ディスクとして認識され、OS も正常に起動することが確認できました。
補足
実際に、GitHub 上の変更内容 にも、修正の対応を実施いただいたことが記載されています。
検証当初のVMの構成は以下の通りです。
| 項目 | 値 |
|---|---|
| VM サイズ | Standard_D2s_v4 |
| 世代 | 第二世代 |
| セキュリティの種類 | 標準 |
| ディスクコントローラ | SCSI |
| OS | Windows Server 2022 Datacenter |
実際に、Azure NVMe Utilities の PowerShell スクリプトを実行して、ディスクの種類を NVMe に変更してみます。
今回は、VM のディスクコントローラを SCSI から NVMe に変更する場合に必要となる、OS 上の設定変更も同時に実施してもらうために、 -FixOperatingSystemSettings オプションを付与して実行します。
実行ログ全文
> .\Azure-NVMe-Conversion.ps1 -ResourceGroupName rg-test-nvme -VMName nvme-win2022-vm -NewControllerType NVMe -VMSize Standard_D2s_v6 -StartVM -FixOperatingSystemSettings
00:00 - INFO - Starting script Azure-NVMe-Conversion.ps1
00:00 - INFO - Script started at 09/19/2026 14:48:49
00:00 - INFO - Script version: 2026082514
00:00 - INFO - Script parameters:
00:00 - INFO - ResourceGroupName -> rg-test-nvme
00:00 - INFO - VMName -> nvme-win2022-vm
00:00 - INFO - NewControllerType -> NVMe
00:00 - INFO - VMSize -> Standard_D2s_v6
00:00 - INFO - StartVM -> True
00:00 - INFO - FixOperatingSystemSettings -> True
00:00 - INFO - Script Version 2026082514
00:00 - INFO - Module Az.Compute is installed and the version is correct.
00:00 - INFO - Module Az.Accounts is installed and the version is correct.
00:00 - INFO - Module Az.Resources is installed and the version is correct.
00:00 - INFO - Connected to Azure subscription name: <SubscriptionName>
00:00 - INFO - Connected to Azure subscription ID: <SubscriptionID>
00:02 - INFO - VM nvme-win2022-vm found in Resource Group rg-test-nvme
00:02 - INFO - VM details:
00:02 - INFO - Location / Zone: japaneast / None
00:02 - INFO - Current VM size: Standard_D2s_v4
00:02 - INFO - Current disk controller: SCSI
00:02 - INFO - Security type: Standard
00:02 - INFO - OS type: Windows
00:02 - INFO - Image: MicrosoftWindowsServer:WindowsServer:2022-datacenter-g2:latest
00:02 - INFO - Managed data disks: 0
00:02 - INFO - Availability Set: None
00:02 - INFO - Proximity Placement Group: None
00:02 - INFO - Azure identity: <UserPrincipalName> (User)
00:02 - INFO - Checking effective Azure permissions on virtual machine 'nvme-win2022-vm'
00:02 - INFO - [PASS] Microsoft.Compute/virtualMachines/read
00:02 - INFO - [PASS] Microsoft.Compute/virtualMachines/write
00:02 - INFO - [PASS] Microsoft.Compute/virtualMachines/instanceView/read
00:02 - INFO - [PASS] Microsoft.Compute/virtualMachines/deallocate/action
00:02 - INFO - [PASS] Microsoft.Compute/virtualMachines/runCommand/action
00:02 - INFO - [PASS] Microsoft.Compute/virtualMachines/start/action
00:02 - INFO - [PASS] Microsoft.Compute/virtualMachines/restart/action
00:02 - INFO - Checking effective Azure permissions on OS disk 'nvme-win2022-vm-osdisk'
00:02 - INFO - [PASS] Microsoft.Compute/disks/read
00:02 - INFO - [PASS] Microsoft.Compute/disks/write
00:03 - INFO - OS disk details:
00:03 - INFO - Name: nvme-win2022-vm-osdisk
00:03 - INFO - Resource group: rg-test-nvme
00:03 - INFO - SKU: StandardSSD_LRS
00:03 - INFO - Size: 127 GB
00:03 - INFO - Hyper-V generation: V2
00:03 - INFO - Supported controller types: SCSI, NVMe
00:03 - INFO - Runtime details:
00:03 - INFO - Power state: PowerState/running
00:03 - INFO - Provisioning state: ProvisioningState/succeeded
00:03 - INFO - VM Agent status: Ready
00:03 - INFO - VM Agent version: 2.7.41491.1216
00:03 - INFO - VM nvme-win2022-vm is running
00:03 - INFO - VM Agent is running on VM nvme-win2022-vm
00:03 - INFO - Detected OS: Windows Server 2022 Datacenter 10.0.20348.5622
00:03 - INFO - VM nvme-win2022-vm is running Windows
00:03 - INFO - Windows Version: 2022-datacenter-g2
00:03 - INFO - Detected Windows Version: 2022
00:03 - INFO - VM nvme-win2022-vm is running SCSI
00:03 - INFO - Getting available SKU resources
00:03 - INFO - This might take a while ...
00:05 - INFO - Checking resource disk support for Windows VMs
00:05 - INFO - Resource disk support matches between original VM size and new VM size.
00:05 - INFO - Found VM SKU - Checking for Capabilities
00:05 - INFO - VM SKU has supported capabilities
00:05 - INFO - VM supports NVMe
00:05 - INFO - Pre-Checks completed
00:05 - INFO - Starting OS section
00:05 - INFO - Checking if operating system is prepared for NVMe migration
00:35 - INFO - [INFO] OS: Microsoft Windows Server 2022 Datacenter (10.0.20348)
00:35 - INFO - [PASS] stornvme.sys - version 10.0.20348.5386 (WinBuild.160101.0800)
00:35 - INFO - [INFO] ControlSets: ControlSet001, ControlSet002 (Current=1 LastKnownGood=2)
00:35 - INFO - [INFO] --- ControlSet001 ---
00:35 - INFO - [PASS] ControlSet001\stornvme Start - 0 (Boot)
00:35 - ERROR - [FAIL] ControlSet001\stornvme StartOverride - present (value=3) overrides Start to demand-start
00:35 - INFO - [PASS] ControlSet001\stornvme IoTimeoutValue - 240 seconds
00:35 - INFO - [PASS] ControlSet001\stornvme BusType - 17 (NVMe)
00:35 - INFO - [PASS] ControlSet001\stornvme StorageSupportedFeatures - 3
00:35 - INFO - [PASS] ControlSet001\stornvme PnpInterface\5 - 1
00:35 - INFO - [PASS] ControlSet001\vpci Start - 0 (Boot)
00:35 - ERROR - [FAIL] ControlSet001\vpci StartOverride - present (value=3) blocks virtual PCI enumeration
00:35 - INFO - [PASS] ControlSet001\pci Start - 0 (Boot)
00:35 - INFO - [PASS] ControlSet001\pci StartOverride - present (0=3, 1=3) - allowed
00:35 - INFO - [INFO] --- ControlSet002 ---
00:35 - INFO - [PASS] ControlSet002\stornvme Start - 0 (Boot)
00:35 - ERROR - [FAIL] ControlSet002\stornvme StartOverride - present (value=3) overrides Start to demand-start
00:35 - INFO - [PASS] ControlSet002\stornvme IoTimeoutValue - 240 seconds
00:35 - INFO - [PASS] ControlSet002\stornvme BusType - 17 (NVMe)
00:35 - INFO - [PASS] ControlSet002\stornvme StorageSupportedFeatures - 3
00:35 - INFO - [PASS] ControlSet002\stornvme PnpInterface\5 - 1
00:35 - INFO - [PASS] ControlSet002\vpci Start - 0 (Boot)
00:35 - ERROR - [FAIL] ControlSet002\vpci StartOverride - present (value=3) blocks virtual PCI enumeration
00:35 - INFO - [PASS] ControlSet002\pci Start - 0 (Boot)
00:35 - INFO - [PASS] ControlSet002\pci StartOverride - present (0=3) - allowed
00:35 - INFO - [INFO] --- Boot Driver Chain ---
00:35 - INFO - [PASS] vpci - Start=0 (Boot)
00:35 - INFO - [PASS] pci - Start=0 (Boot)
00:35 - INFO - [PASS] stornvme - Start=0 (Boot)
00:35 - INFO - [PASS] partmgr - Start=0 (Boot)
00:35 - INFO - [PASS] disk - Start=0 (Boot)
00:35 - INFO - [PASS] volmgr - Start=0 (Boot)
00:35 - INFO - [PASS] volume - Start=0 (Boot)
00:35 - INFO - [PASS] volsnap - Start=0 (Boot)
00:35 - INFO - [PASS] mountmgr - Start=0 (Boot)
00:35 - INFO - === SUMMARY ===
00:35 - INFO - [INFO] Checks: 26 passed, 4 failed, 0 warnings
00:35 - ERROR - === RESULT: NEEDS_PREP ===
00:35 - INFO - Run nvme-prepare-os.ps1 before converting. Issues:
00:35 - INFO - - ControlSet001\stornvme StartOverride : present (value=3) overrides Start to demand-start
00:35 - INFO - - ControlSet001\vpci StartOverride : present (value=3) blocks virtual PCI enumeration
00:35 - INFO - - ControlSet002\stornvme StartOverride : present (value=3) overrides Start to demand-start
00:35 - INFO - - ControlSet002\vpci StartOverride : present (value=3) blocks virtual PCI enumeration
00:35 - INFO - Fixing operating system settings
00:35 - INFO - Running script to prepare Windows OS for NVMe migration
01:06 - INFO - [INFO] OS: Microsoft Windows Server 2022 Datacenter (10.0.20348)
01:06 - INFO - [INFO] stornvme.sys found (version: 10.0.20348.5386 (WinBuild.160101.0800))
01:06 - INFO - [INFO] Running sc.exe config stornvme start=boot...
01:06 - INFO - [OK] sc.exe config stornvme start=boot succeeded
01:06 - INFO - [INFO] Running sc.exe config vpci start=boot...
01:06 - INFO - [OK] sc.exe config vpci start=boot succeeded
01:06 - INFO - [INFO] Found ControlSets: ControlSet001, ControlSet002 (Current=1, LastKnownGood=2)
01:06 - INFO - [INFO] --- Processing ControlSet001 ---
01:06 - INFO - [OK] ControlSet001\stornvme Start = 0 (Boot) - correct
01:06 - INFO - [OK] ControlSet001\stornvme StartOverride not present - correct
01:06 - INFO - [OK] ControlSet001\stornvme Parameters\IoTimeoutValue = 240 - correct
01:06 - INFO - [OK] ControlSet001\stornvme Parameters\BusType = 17 - correct
01:06 - INFO - [OK] ControlSet001\stornvme Parameters\StorageSupportedFeatures = 3 - correct
01:06 - INFO - [OK] ControlSet001\stornvme Parameters\PnpInterface\5 = 1 - correct
01:06 - INFO - [OK] ControlSet001\vpci Start = 0 (Boot) - correct
01:06 - INFO - [OK] ControlSet001\vpci StartOverride not present - correct
01:06 - INFO - [OK] ControlSet001\pci Start = 0 (Boot) - correct
01:06 - INFO - [OK] ControlSet001\pci StartOverride present (0=3, 1=3) - allowed on native NVMe
01:06 - INFO - [INFO] --- Processing ControlSet002 ---
01:06 - INFO - [OK] ControlSet002\stornvme Start = 0 (Boot) - correct
01:06 - WARNING - [WARN] ControlSet002\stornvme StartOverride exists (value=3) - REMOVING
01:06 - INFO - [OK] ControlSet002\stornvme StartOverride removed
01:06 - INFO - [OK] ControlSet002\stornvme Parameters\IoTimeoutValue = 240 - correct
01:06 - INFO - [OK] ControlSet002\stornvme Parameters\BusType = 17 - correct
01:06 - INFO - [OK] ControlSet002\stornvme Parameters\StorageSupportedFeatures = 3 - correct
01:06 - INFO - [OK] ControlSet002\stornvme Parameters\PnpInterface\5 = 1 - correct
01:06 - INFO - [OK] ControlSet002\vpci Start = 0 (Boot) - correct
01:06 - WARNING - [WARN] ControlSet002\vpci StartOverride exists (value=3) - REMOVING
01:06 - INFO - [OK] ControlSet002\vpci StartOverride removed
01:06 - INFO - [OK] ControlSet002\pci Start = 0 (Boot) - correct
01:06 - INFO - [OK] ControlSet002\pci StartOverride present (0=3) - allowed on native NVMe
01:06 - INFO - === VALIDATION ===
01:06 - INFO - [OK] ControlSet001 : stornvme Start=0 SO=False IoTimeout=240 BusType=17 Features=3 Pnp5=1, vpci Start=0 SO=False, pci Start=0 SO=True
01:06 - INFO - [OK] ControlSet002 : stornvme Start=0 SO=False IoTimeout=240 BusType=17 Features=3 Pnp5=1, vpci Start=0 SO=False, pci Start=0 SO=True
01:06 - INFO - [INFO] Flushing SYSTEM registry hive to disk...
01:06 - INFO - [OK] Registry hive flushed to disk successfully
01:06 - INFO - [OK] Post-flush verification passed - stornvme and vpci are boot-ready in all ControlSets
01:06 - INFO - [OK] All checks passed across ALL ControlSets - VM is ready for NVMe conversion
01:06 - INFO - Verifying Windows OS preparation
01:37 - INFO - Verification: [INFO] OS: Microsoft Windows Server 2022 Datacenter (10.0.20348)
01:37 - INFO - Verification: [PASS] stornvme.sys - version 10.0.20348.5386 (WinBuild.160101.0800)
01:37 - INFO - Verification: [INFO] ControlSets: ControlSet001, ControlSet002 (Current=1 LastKnownGood=2)
01:37 - INFO - Verification: [INFO] --- ControlSet001 ---
01:37 - INFO - Verification: [PASS] ControlSet001\stornvme Start - 0 (Boot)
01:37 - INFO - Verification: [PASS] ControlSet001\stornvme StartOverride - absent
01:37 - INFO - Verification: [PASS] ControlSet001\stornvme IoTimeoutValue - 240 seconds
01:37 - INFO - Verification: [PASS] ControlSet001\stornvme BusType - 17 (NVMe)
01:37 - INFO - Verification: [PASS] ControlSet001\stornvme StorageSupportedFeatures - 3
01:37 - INFO - Verification: [PASS] ControlSet001\stornvme PnpInterface\5 - 1
01:37 - INFO - Verification: [PASS] ControlSet001\vpci Start - 0 (Boot)
01:37 - INFO - Verification: [PASS] ControlSet001\vpci StartOverride - absent
01:37 - INFO - Verification: [PASS] ControlSet001\pci Start - 0 (Boot)
01:37 - INFO - Verification: [PASS] ControlSet001\pci StartOverride - present (0=3, 1=3) - allowed
01:37 - INFO - Verification: [INFO] --- ControlSet002 ---
01:37 - INFO - Verification: [PASS] ControlSet002\stornvme Start - 0 (Boot)
01:37 - INFO - Verification: [PASS] ControlSet002\stornvme StartOverride - absent
01:37 - INFO - Verification: [PASS] ControlSet002\stornvme IoTimeoutValue - 240 seconds
01:37 - INFO - Verification: [PASS] ControlSet002\stornvme BusType - 17 (NVMe)
01:37 - INFO - Verification: [PASS] ControlSet002\stornvme StorageSupportedFeatures - 3
01:37 - INFO - Verification: [PASS] ControlSet002\stornvme PnpInterface\5 - 1
01:37 - INFO - Verification: [PASS] ControlSet002\vpci Start - 0 (Boot)
01:37 - INFO - Verification: [PASS] ControlSet002\vpci StartOverride - absent
01:37 - INFO - Verification: [PASS] ControlSet002\pci Start - 0 (Boot)
01:37 - INFO - Verification: [PASS] ControlSet002\pci StartOverride - present (0=3) - allowed
01:37 - INFO - Verification: [INFO] --- Boot Driver Chain ---
01:37 - INFO - Verification: [PASS] vpci - Start=0 (Boot)
01:37 - INFO - Verification: [PASS] pci - Start=0 (Boot)
01:37 - INFO - Verification: [PASS] stornvme - Start=0 (Boot)
01:37 - INFO - Verification: [PASS] partmgr - Start=0 (Boot)
01:37 - INFO - Verification: [PASS] disk - Start=0 (Boot)
01:37 - INFO - Verification: [PASS] volmgr - Start=0 (Boot)
01:37 - INFO - Verification: [PASS] volume - Start=0 (Boot)
01:37 - INFO - Verification: [PASS] volsnap - Start=0 (Boot)
01:37 - INFO - Verification: [PASS] mountmgr - Start=0 (Boot)
01:37 - INFO - Verification: === SUMMARY ===
01:37 - INFO - Verification: [INFO] Checks: 30 passed, 0 failed, 0 warnings
01:37 - INFO - Verification: === RESULT: READY ===
01:37 - INFO - Windows OS prepared and verified successfully for NVMe migration
01:37 - INFO - Shutting down the VM to complete preparation and proceed with migration
01:37 - INFO - Checking Power Status of VM nvme-win2022-vm
02:17 - INFO - Stop command issued for VM nvme-win2022-vm
02:17 - INFO - VM nvme-win2022-vm stopped
02:17 - INFO - Checking if VM is stopped and deallocated
02:17 - INFO - OS Disk found: nvme-win2022-vm-osdisk
02:17 - INFO - OS Disk already supports NVMe, no update needed
02:17 - INFO - Setting new VM Size from Standard_D2s_v4 to Standard_D2s_v6 and Controller to NVMe
02:18 - INFO - VM update request returned HTTP 200
02:23 - INFO - VM nvme-win2022-vm updated
02:23 - INFO - Start after update enabled for VM nvme-win2022-vm
02:23 - INFO - Waiting for 15 seconds before starting the VM
02:38 - INFO - Starting VM nvme-win2022-vm
03:59 - INFO - VM nvme-win2022-vm start operation completed; validating guest boot
04:14 - INFO - Boot validation: power=PowerState/running, agentReady=True, elapsed=15s
04:14 - INFO - VM nvme-win2022-vm boot and guest agent verified
04:14 - INFO - Reapplying Windows NVMe settings after first NVMe boot
05:14 - INFO - Post-boot fix: [INFO] OS: Microsoft Windows Server 2022 Datacenter (10.0.20348)
05:14 - INFO - Post-boot fix: [INFO] stornvme.sys found (version: 10.0.20348.5386 (WinBuild.160101.0800))
05:14 - INFO - Post-boot fix: [INFO] Running sc.exe config stornvme start=boot...
05:14 - INFO - Post-boot fix: [OK] sc.exe config stornvme start=boot succeeded
05:14 - INFO - Post-boot fix: [INFO] Running sc.exe config vpci start=boot...
05:14 - INFO - Post-boot fix: [OK] sc.exe config vpci start=boot succeeded
05:14 - INFO - Post-boot fix: [INFO] Found ControlSets: ControlSet001, ControlSet002 (Current=1, LastKnownGood=2)
05:14 - INFO - Post-boot fix: [INFO] --- Processing ControlSet001 ---
05:14 - INFO - Post-boot fix: [OK] ControlSet001\stornvme Start = 0 (Boot) - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet001\stornvme StartOverride not present - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet001\stornvme Parameters\IoTimeoutValue = 240 - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet001\stornvme Parameters\BusType = 17 - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet001\stornvme Parameters\StorageSupportedFeatures = 3 - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet001\stornvme Parameters\PnpInterface\5 = 1 - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet001\vpci Start = 0 (Boot) - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet001\vpci StartOverride not present - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet001\pci Start = 0 (Boot) - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet001\pci StartOverride present (0=3, 1=3) - allowed on native NVMe
05:14 - INFO - Post-boot fix: [INFO] --- Processing ControlSet002 ---
05:14 - INFO - Post-boot fix: [OK] ControlSet002\stornvme Start = 0 (Boot) - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet002\stornvme StartOverride not present - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet002\stornvme Parameters\IoTimeoutValue = 240 - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet002\stornvme Parameters\BusType = 17 - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet002\stornvme Parameters\StorageSupportedFeatures = 3 - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet002\stornvme Parameters\PnpInterface\5 = 1 - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet002\vpci Start = 0 (Boot) - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet002\vpci StartOverride not present - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet002\pci Start = 0 (Boot) - correct
05:14 - INFO - Post-boot fix: [OK] ControlSet002\pci StartOverride present (0=3) - allowed on native NVMe
05:14 - INFO - Post-boot fix: === VALIDATION ===
05:14 - INFO - Post-boot fix: [OK] ControlSet001 : stornvme Start=0 SO=False IoTimeout=240 BusType=17 Features=3 Pnp5=1, vpci Start=0 SO=False, pci Start=0 SO=True
05:14 - INFO - Post-boot fix: [OK] ControlSet002 : stornvme Start=0 SO=False IoTimeout=240 BusType=17 Features=3 Pnp5=1, vpci Start=0 SO=False, pci Start=0 SO=True
05:14 - INFO - Post-boot fix: [INFO] Flushing SYSTEM registry hive to disk...
05:14 - INFO - Post-boot fix: [OK] Registry hive flushed to disk successfully
05:14 - INFO - Post-boot fix: [OK] Post-flush verification passed - stornvme and vpci are boot-ready in all ControlSets
05:14 - INFO - Post-boot fix: [OK] All checks passed across ALL ControlSets - VM is ready for NVMe conversion
06:15 - INFO - Post-boot Windows NVMe settings verified
06:15 - INFO - Restarting VM to activate and persist post-boot Windows NVMe settings
07:21 - INFO - Post-fix reboot validation: power=PowerState/running, agentReady=True, elapsed=15s
08:21 - INFO - Post-fix reboot and Windows NVMe persistence verified
08:21 - INFO - As the virtual machine got started using the script you can check the operating system now
08:21 - INFO - If you have any issues after the conversion you can revert the changes by running the script with the old settings
08:21 - IMPORTANT - Here is the command to revert the changes:
08:21 - INFO - .\Azure-NVMe-Conversion.ps1 -ResourceGroupName rg-test-nvme -VMName nvme-win2022-vm -NewControllerType SCSI -VMSize Standard_D2s_v4 -StartVM
08:21 - INFO - Script ended at 09/19/2026 14:57:11
08:21 - INFO - Exiting
>
コマンドは、無事に終了して、OS 上でもNVMe のコントローラが認識されるようになりました。

また、PowerShell コマンドを利用して、ディスクの情報を確認すると、BusType が NVMe となっていることが確認できます。
> Get-PhysicalDisk | Select FriendlyName, BusType
FriendlyName BusType
------------ -------
Virtual_Disk NVME StandardSSD NVMe
>
補足
公式ドキュメントでは Standard NVM Express Controller と記載されていますが、今回の環境では ASAP NVM Express Controller と表示されました。
以前の検証記事:古いPowerShell スクリプトを利用している場合はこちらを確認ください
(2026/08/15 Updated) 旧バージョンのスクリプトでの検証結果(BSoD 発生)
実際にWindows OS を用いて検証してみます。
なお、検証には、Windows Server 2022 Datacenter と Windows Server 2025 Datacenter を利用して検証しましたが、両方とも同様の結果となりました。
結論から書きますと、同様に実行した結果、PowerShellスクリプトは正常に完了し、Azure リソース上の設定は変更されますが、OSの起動に失敗して、起動できませんでした。
ブート診断のシリアルログを確認したところ、以下のログが確認できます。
Your device ran into a problem and needs to restart.
If you call a support person, give them this info:
INACCESSIBLE_BOOT_DEVICE
0xFFFFA307E10071C8
0xFFFFFFFFC0000034
0x0000000000000000
0x0000000000000001
つまり、INACCESSIBLE_BOOT_DEVICE エラーが発生しており、OS がブートできない状態になっています。
OS がブートできない原因について
この事象について、最新のスクリプトの実装と、最近のスクリプトの変更を調査したところ、一部の残存設定に起因して、ドライバがロードされず、NVMe ディスクが読み込めないために発生していることがわかりました。
具体的には、原因としては、「vpci(Microsoft Hyper-V Virtual PCI Bus)サービスに StartOverride」のようでした。
この問題に関しては、Azure NVMe Utilities のリポジトリに、Issue として報告済みになります。
ワークアラウンド
調査の結果、原因としては、「vpci(Microsoft Hyper-V Virtual PCI Bus)サービスに StartOverride」と見受けられます。
そのため、以下の手順で変換を実施することで、ワークアラウンドとなり、変換が正常に可能であることを確認済みとなります。
手順:
- 変換したいWindows VM を起動する
- 変換したいWindows VM 上で以下のコマンドを実行する
$ErrorActionPreference = 'Stop' $sets = @() Get-ChildItem 'HKLM:\SYSTEM' | ForEach-Object { if ($_.PSChildName -match '^ControlSet\d+$') { $sets += $_.PSChildName } } Write-Output ('ControlSets found: ' + ($sets -join ', ')) foreach ($cs in $sets) { $p = 'HKLM:\SYSTEM\' + $cs + '\Services\vpci\StartOverride' if (Test-Path $p) { $k0 = Get-Item $p foreach ($n in $k0.GetValueNames()) { Write-Output ('BEFORE ' + $cs + ' vpci StartOverride ' + $n + ' = ' + $k0.GetValue($n)) } Remove-Item -Path $p -Recurse -Force Write-Output ('REMOVED ' + $cs + '\Services\vpci\StartOverride') } else { Write-Output ('ABSENT ' + $cs + '\Services\vpci\StartOverride (nothing to do)') } # RegistryKey.Flush() でディスクへ確実に書き出す $k = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey('SYSTEM\' + $cs + '\Services\vpci', $true) if ($k) { $k.Flush(); $k.Close() } } Write-Output '--- VERIFY ---' foreach ($cs in $sets) { $exists = Test-Path ('HKLM:\SYSTEM\' + $cs + '\Services\vpci\StartOverride') Write-Output ('VERIFY ' + $cs + ' StartOverride exists = ' + $exists) } $svc = Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\vpci' Write-Output ('vpci Start = ' + $svc.Start + ' (0 = boot start, expected)') - VM の再起動を実施せずに、以下のコマンドを実行する
# 最新のスクリプトをダウンロード Invoke-WebRequest -Uri "https://raw.githubusercontent.com/Azure/SAP-on-Azure-Scripts-and-Utilities/refs/heads/main/Azure-NVMe-Utils/Azure-NVMe-Conversion.ps1" -OutFile ".\Azure-NVMe-Conversion.ps1" # 実行 .\Azure-NVMe-Conversion.ps1 -ResourceGroupName <your-RG> -VMName <your-VMname> -NewControllerType <NVMe/SCSI> -VMSize <new-VM-SKU> -StartVM -FixOperatingSystemSettings
まとめ
今回、NVMe ディスクコントローラを利用したサイズへの変更を調査、検証しました。
前提条件を満たした状態で、最新のスクリプトを使うことで、Linux / Windows ともに SCSI から NVMe への変換が可能でした。
ただし、SCSI から NVMe への変更は、制約が大きく、第二世代のVMのごく一部の場合しか移行が困難なようです。
もし、NVMe への変更をする場合は、再構築が無難と思われます。