0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows Server 2025 Azure Edition を Azure CLI で作ってみた

Posted at

自分自身は Windows Server を触る機会がほとんどない仕事環境なのですが、ごく稀に検証が必要になることがあります。その時のためにサクッと検証できるように、Azure CLI で Windows Server 2025 を作ってみました。

VM のイメージを探す

zsh
az vm image list-skus \
  --location japaneast \
  --publisher MicrosoftWindowsServer \
  --offer WindowsServer \
  --output table \
  | grep 2025

japaneast   2025-datacenter
japaneast   2025-datacenter-azure-edition
japaneast   2025-datacenter-azure-edition-core
japaneast   2025-datacenter-azure-edition-core-smalldisk
japaneast   2025-datacenter-azure-edition-smalldisk
japaneast   2025-datacenter-core
japaneast   2025-datacenter-core-g2
japaneast   2025-datacenter-core-smalldisk
japaneast   2025-datacenter-core-smalldisk-g2
japaneast   2025-datacenter-g2
japaneast   2025-datacenter-smalldisk
japaneast   2025-datacenter-smalldisk-g2

Windows Server 2025 を作成

zsh
prefix=mnrw2025

az group create \
  --name ${prefix}-rg \
  --location japaneast

az vm create \
  --resource-group ${prefix}-rg \
  --name ${prefix}-vm \
  --os-disk-name ${prefix}-vmOSDisk \
  --image MicrosoftWindowsServer:WindowsServer:2025-datacenter-azure-edition-smalldisk:latest \
  --size Standard_F4s_V2 \
  --admin-username azureuser \
  --nsg-rule NONE

NSG で自身の IP のみ許可

zsh
az network nsg rule create \
  --resource-group ${prefix}-rg \
  --name Allow-RDP \
  --nsg-name ${prefix}-vmNSG \
  --priority 100 \
  --source-address-prefixes $(curl -s inet-ip.info) \
  --destination-port-ranges 3389 \
  --access Allow \
  --protocol Tcp

リモートデスクトップ接続して OS 情報を確認

win2025-azure-edition-01.png

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?