Skip to content

Instantly share code, notes, and snippets.

@vhusker
Last active August 26, 2015 11:31
Show Gist options
  • Save vhusker/bc7c485bb06640c2d1ba to your computer and use it in GitHub Desktop.
Save vhusker/bc7c485bb06640c2d1ba to your computer and use it in GitHub Desktop.
Resource Key Error /w Modified File Resource
Configuration BuildHyperVHost{
Param(
[string]$DeploymentFilesPath,
[string]$DestinationPath
)
Import-DSCResource -ModuleName @{ModuleName="xComputerManagement";ModuleVersion="1.3.0"}
node localhost{
File CopyDeploymentFiles{
Type = "Directory"
Recurse = $True
SourcePath = $DeploymentFilesPath
DestinationPath = $Destinationpath
Ensure = "Present"
Force = $True
}
}
}
BuildHyperVHost -OutputPath C:\Temp
PSDesiredStateConfiguration\node : Cannot bind argument to parameter 'ResourceKey' because it is an empty string.
At line:10 char:7
+ node localhost{
+ ~~~~
+ CategoryInfo : InvalidData: (:) [PSDesiredStateConfiguration\node], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,PSDesiredStateConfiguration\node
Update-DependsOn : Index operation failed; the array index evaluated to null.
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:2208 char:17
+ ... Update-DependsOn $Script:NodesInThisConfiguration[$mofNod ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Update-DependsOn], RuntimeException
+ FullyQualifiedErrorId : NullArrayIndex,Update-DependsOn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment