Azure-Samples / hpcpack-samples

Sample Code and Tutorial of Microsoft HPC Pack
MIT License
7 stars 18 forks source link

Submit job using windows authentication #28

Open gilerez01 opened 8 months ago

gilerez01 commented 8 months ago

Is there a way to submit a job to an HPC using windows authentication, i.e. without specifying the password in the c# code? If so, please give a code example or a link to one.

YutongSun commented 6 months ago

@gilerez01 , yes, a job is submitted by its owner using Windows authentication, and the tasks in the job need a credential to run on the compute node, you may either specify the credential in C# code, or use the hpccred.exe or Set-HpcJobCredential/Set-HpcSoaCredential PowerShell cmdlet to save the credential for only once.