Use HpcFile to copy files from Azure node RRS feed

  • Question

  • I'd like to use HpcFile to copy files from my Azure nodes.  All the Azure nodes will have the same directory on the E drive where the files will be located.

    The names of the Azure nodes can be somewhat random though so I'd like to figure out how to loop through every Azure node (without giving the names of the nodes) and have the files pulled down.

    Is there a way to do something like this?


    Saturday, March 19, 2011 6:50 PM

All replies

  • I’ve used this in HPC PowerShell (run as admin) to list the files in the C drive on Azure nodes:


    foreach ($node in (get-hpcnode –groupname azurenodes)) {$nodename=$node.netbiosname; hpcfile dir /targetnode:$nodename /dir:C:\}


    If the files don’t all have the same name, something like this should work to loop through and pull files down:


    foreach ($node in (get-hpcnode –groupname azurenodes)) {$nodeName=$node.NetBiosName; hpcfile get /file:C:\JobFiles\* /destfile:C:\JobFiles /targetnode:$nodeName}

    Saturday, March 26, 2011 6:58 AM