Hello,
We create a cluster automatically on Azure using the Microsoft HPC IaaS Deployment Script v. 4.5.0. Once the cluster creation has been completed as reported by the IaaS script, we launch another PowerShell script to deploy the needed files to the cluster.
To do that we take the technique used in the HPC IaaS Deployment Script, consisting of sending a remote command to the head node as shown in the code excerpt below. But doing this results in a "Remoting data is missing InvocationInfo property"
error and the files cannot be deployed.
# Get head node's URI
$uri = Get-AzureWinRMUri -ServiceName $MyHeadNodeServiceName -Name $MyHeadNodeVMName -ErrorVariable evOut
if ($uri -ne $null) {
# Run script block on head node
$ret = Invoke-Command -ConnectionUri $uri -Credential $MyCredential -ScriptBlock $MyScriptBlock `
-ArgumentList @($MyArgument1,$MyArgument2) `
-ErrorVariable evOut -ErrorAction:SilentlyContinue
if ($evOut -ne $null) {
$sevOut = Out-String -InputObject $evOut
Out-File -FilePath $MyLogFilePath -InputObject $sevOut
# This is what is written to $MyLogFilePath:
# Remoting data is missing InvocationInfo property.
# + CategoryInfo : OperationStopped: (myheadnode.cloudapp.net:String) [], PSRemotingTransportException
# + FullyQualifiedErrorId : JobFailure
# + PSComputerName : myheadnode.cloudapp.net
}
}
This issue has already been posted on the Stackoverflow forum, but no answer has been provided so far.
I would greatly appreciate knowing how to workaround this problem.
Thank you.
Marc