Back to list
Azure ベルツ仮想マシンの最適化:サブネット、スケーリング、ストレージ
Optimizing Your Azure Virtual Machine: Subnets, Scaling, and Storage
Translated: 2026/3/15 4:00:31
Japanese Translation
Introduction
Virtual Machine がデプロイされた後、Azure Administrator の本格的な仕事が始まります:最適化。セキュリティ上の理由でリソースを別のネットワークセグメントへ移動させたい、処理負荷の増大に対応するために計算能力を拡張させたい、あるいはデータ重視のアプリケーション用にストレージ容量を増容させたいなどの場合、既存リソースの改変方法を理解することは不可欠です。本ガイドでは、VM を新しいサブネットへ移行させ、サイズを縦方向に拡張(スケーリング)し、追加データディスクを接続し、定期的なシャットダウンによるコスト削減の自動化を実装する手順を順を追って説明します。
Microsoft Azure にログインしてください(https://portal.azure.com)。
Azure ポータルのホーム画面から、検索ボックスに「virtual machines」と入力します。
サービスカテゴリーから「virtual machines」を選択します。
guided-project-vm という名前の Virtual Machine を選択します。
Virtual Machine が実行中である場合、「Stop」を選択してください。
注意:サブネットの変更など一部の設定変更を行う場合、VM は再起動が必要となります。VM を停止せずに変更を申請することは可能ですが、Azure は変更完了前に必ず再起動を強制します。
ステータスフィールドが更新され、「Stopped (deallocated)」と表示されるのを待ちます。
メニューの「Networking」サブセクションから「Network settings」を選択します。
Virtual Machine の「Network interface / IP configuration」ハイパーリンクを選択します。
IP Configurations ページで、Subnet を「ftpSubnet」に更新します。
「Apply」を選択します。
アパルトメントのアップグレード(サイズと設備の変更)という物理的な仕事と、それがどの階(サブネット)にあるかという問題は完全に別物です。デフォルトの階のアパルトメントを、ftpSubnet の階のアパルトメントをどうせ同様にアップグレードできます。最後の「Applying Changes」というステップ(スクリーンショットに示されている)は、VM の位置と構成を単に登録するだけです。
「Home」を選択して Azure ポータルホーム画面に戻ってください。
よくできました!VM を 1 つのサブネットから別のサブネットへ移行しました。新しいサブネットには、FTP サーバーとして機能するために特定なネットワークセキュリティルールが適用されていました。
次の Azure Administrator のタスクは VM の計算能力に関わっています。Administrator は、計算能力を向上させるために VM を縦方向にスケーリング(アップサイズ)させたいと要求しています。
Azure ポータルホーム画面から、検索ボックスに「virtual machines」と入力します。
サービスカテゴリーから「virtual machines」を選択します。
guided-project-vm という名前の Virtual Machine を選択します。
「Availability + scale」サブメニューを locate して「Size」を選択します。
新しい VM サイズ(例)として「D2s_v5」を選択してください。(注:この演習で示されたサイズが異なる場合は、類似のサイズを選択してください)
「Resize」を選択します。
注意:Azure UI では VM が再起動されるまで、VM サイズの更新が反映されない場合があります。
「Home」を選択して Azure ポータルホーム画面に戻ってください。
お疲れ様でした。より強靭なプロセッサを搭載した VM にアップサイズされたので、割り当てられた新しい役割に対応可能です。
次に、Azure Administrator は VM が FTP サーバーとして機能するためには、より大きなストレージが必要だと認識しています。Administrator は VM へ追加データディスクの接続を依頼しました。
Azure ポータルホーム画面から、検索ボックスに「virtual machines」と入力します。
サービスカテゴリーから「virtual machines」を選択します。
guided-project-vm という名前の Virtual Machine を選択します。
設定サブメニューから「Disks」を選択します。
「Create and attach a new disk」を選択します。
LUN はデフォルトのままにします。
ディスク名として「ftp-data-disk」を入力します。
ストレージタイプはデフォルトのままにします。
サイズとして「20」を入力します。
新しいストレージディスクを作成し、そのディスクを機械に接続するために「Apply」を選択します。
「Home」を選択して Azure ポータルホーム画面に戻ってください。
素敵!これで VM はいくつかのアップロードを処理するのに十分なストレージ容量を得ています。
最後の Azure Administrator の懸念事項は、コンピュータを 24 時間動作させるコストです。朝一番に実行するのは FTP サーバーの起動ですが、それよりも毎日夜 7 時(Coordinated Universal Time: UTC)に自動的にシャットダウンするよう設定してもらいたいと考えています。
Azure ポータルホーム画面から、検索ボックスに「virtual machines」と入力します。
サービスカテゴリーから「virtual machines」を選択します。
guided-proj
Original Content
Optimizing Your Azure Virtual Machine: Subnets, Scaling, and Storage
Introduction
Once a Virtual Machine is deployed, the real work of an Azure Administrator begins: optimization. Whether you need to move a resource to a more secure network segment, increase computing power to handle heavier workloads, or expand storage for data-heavy applications, knowing how to modify existing resources is critical. In this guide, we will walk through migrating a VM to a new subnet, vertically scaling its size, attaching additional data disks, and implementing cost-saving automation through scheduled shutdowns.
Login to Microsoft Azure at https://portal.azure.com.
From the Azure portal home page, in the search box, enter virtual machines.
Select virtual machines under services.
Select the guided-project-vm virtual machine.
If the virtual machine is running, select Stop.
Note: In order to make some configuration changes, such as changing the subnet, the VM will need to be restarted. You can request the change without stopping the VM, but Azure will force a restart before completing the change.
Wait for the Status field to update and show Stopped (deallocated).
Within the Networking subsection of the menu, select Network settings.
Select the Network interface / IP configuration hyperlink for the VM.
On the IP Configurations page, update the Subnet to ftpSubnet.
Select Apply.
The physical task of upgrading your apartment (changing its size and amenities) is a completely separate decision from which floor (subnet) it happens to be located on. You can just as easily upgrade an apartment on the default floor as you can an apartment on the ftpSubnet floor. The final "Applying Changes" step, shown in your screenshot, will just register the VM's location and configuration
Select Home to return to the Azure portal home page.
Good job! You’ve migrated the VM from one subnet to another. Remember, the new subnet had specific network security rules applied to help it function as an FTP server.
The next task from the Azure admin relates to the computing power of the VM. The admin would like you to vertically scale the machine to increase the computing power.
From the Azure portal home page, in the search box, enter virtual machines.
Select virtual machines under services.
Select the guided-project-vm virtual machine.
Locate the Availability + scale submenu and select Size.
Select a new VM size D2s_v5 for example. (Note: If you don’t see the same size as shown in this exercise, select something similar.)
Select Resize.
Note: The VM size may not update in the Azure UI until the VM is restarted.
Select Home to return to the Azure portal home page.
Well done. With the VM scaled up to a more robust processor, it can handle the new role it’s being assigned.
Now the Azure admin realizes that if the VM is going to serve as an FTP server, it needs more storage. The Azure admin asked you to attach a new data disk to the VM.
From the Azure portal home page, in the search box, enter virtual machines.
Select virtual machines under services.
Select the guided-project-vm virtual machine.
Locate the settings submenu and select Disks.
Select Create and attach a new disk.
Leave LUN as default.
Enter ftp-data-disk for the Disk name.
Leave the Storage type as default.
Enter 20 for the Size.
Select Apply to create the new storage disk and attach the disk to the machine.
Select Home to return to the Azure portal home page.
Nice! Now the VM has enough storage to handle some uploads.
The final thing the Azure admin is concerned about is the cost of running the computer 24 hours a day. The first thing they’ll do every morning is start up the FTP server. However, they’d like you to configure it to automatically shutdown every day at 7 PM Coordinated Universal Time (UTC).
From the Azure portal home page, in the search box, enter virtual machines.
Select virtual machines under services.
Select the guided-project-vm virtual machine.
Under the Operations submenu, select Auto-shutdown.
In order to let late uploads finish, set the Scheduled shutdown to 7:15:00 PM.
Select Save.
Select Home to return to the Azure portal home page.
Managing a cloud environment is an iterative process. By moving the VM to a specific subnet, scaling its performance, adding storage, and automating its shutdown, you have transformed a basic virtual machine into a cost-effective, high-performance FTP server. These administrative tasks ensure that your cloud infrastructure remains both functional and fiscally responsible.
Would you like me to walk you through how to verify the new disk inside the Ubuntu OS so you can actually start using that 20GB of space?