Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Deploy Custom Script VM Extension to existing Windows VM (with PowerShell command)

This template deploys the Custom Script VM Extension to an existing Windows VM in an Azure Stack environment. It takes a parameter for vmName, and allows for the execution of a PowerShell command (as seen in the commandToExecute Extension setting).

Example PS Command (Sets DNS within the VM): powershell -ExecutionPolicy Unrestricted Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses,