Symptom

[error]The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: Cannot bind argument to parameter ‘ResourceKey’ because it is an empty string. For more info please refer to http://aka.ms/powershellontargetmachinesreadme (TFS 2015 Update 2)

Root Cause

Variables in PS-DSC scripts were not defined.

Solution

Set proper value to the variables in deploy scripts inside your Build or Release steps.

Advertisements