浅草橋青空市場

Microsoft Azure のニュースや情報を中心にあれこれと

Azure Hybrid Use Benefit(HUB) の使い方

ライセンス周りのネタですが、Azure Hybrid Use Benefit(HUB) の具体的な使い方が日本語で公開されていました。 Windows OSのSAを持っていれば、Azure VM利用時にWindowsライセンスの利用料が削減できるというアレですね。

Azure Hybrid Use Benefit の使用方法 | Cloud and Server Product Japan Blog blogs.technet.microsoft.com

が、いま見たら、Cloud and Server Product Japan Blog がひととおり文字化けしているようなので英語の方も貼っておきます。 How can I use the Hybrid Use Benefit in Azure? | Azure in Education

具体的には、デプロイ時にLicenseTypeを「Windows_Server」を指定するということのようです。 既存の Azure VM からコンバートする場合、VHDから作り直しになるなど細かい点は注意が必要ですね。

PowerShellの例

New-AzureRmVM -ResourceGroupName $ResourceGroupName -Location $LocationName –LicenseType “Windows_Server” -VM $VirtualMachine -Verbose

JSONテンプレートの例

“properties”: {
  “licenseType”: “Windows_Server”,