Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 897 Bytes

readme.md

File metadata and controls

12 lines (9 loc) · 897 Bytes

This script is a utility meant to facilitate Windows Benefit activation on Azure ARC. This is a single-line script that you can execute from the Cloud Shell passing SubscriptionId and TenantId as input arguments

$tenantId="xxx";$subId="xxx";$C=(New-Object System.Net.WebClient).DownloadString("https://raw.githubusercontent.com/lucapisano/arc_sa_benefit/refs/heads/main/script.ps1");icm -ScriptBlock ([Scriptblock]::Create($c)) -ArgumentList @($subId, $tenantId)

The scope of the VMs excludes:

  • VMs in other clouds that use Windows licenses provided by the Cloud Provider (it means that they're not using dedicated hosts)
  • VMs with Benefits already activated

Credits: Thank you to Cobey Errett who originally wrote the script.