You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-6Lines changed: 41 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,51 @@ languages:
8
8
- vb
9
9
products:
10
10
- azure
11
-
description: "Sample code of Microsoft HPC Pack 2016 RTM / Update 1 / Update 2"
11
+
description: "Sample code of Microsoft HPC Pack 2019"
12
12
urlFragment: hpcpack-samples
13
13
---
14
14
15
-
# Microsoft HPC Pack 2016 Sample Code
16
-
Sample code of Microsoft HPC Pack 2016 RTM / Update 1 / Update 2
15
+
# Microsoft HPC Pack 2019 Sample Code
16
+
Sample code of Microsoft HPC Pack 2019
17
17
18
-
Please choose SDK version (_in VisualStudio or by altering packages.config_) according to your need
19
-
- Version 5.0.5931: When connecting to __Microsoft HPC Pack 2016 RTM__
20
-
- Version 5.1.6088 or later (default): When connecting to __Microsoft HPC Pack 2012__ or __Microsoft HPC Pack 2016 Update 1__ and later versions
18
+
Please choose SDK version (_in VisualStudio or by altering .csproj) according to your need:
19
+
- Version 6.3.8187-beta: preview SDK with Linux support
20
+
- Version 6.2.7756: for __Microsoft HPC Pack 2019 Update 2__
21
+
- Version 6.1.7531: for __Microsoft HPC Pack 2019 Update 1__
22
+
- Version 6.0.7121 or 6.0.7205: for __Microsoft HPC Pack 2019 RTM__
23
+
24
+
## .NET Standard 2.0 and Linux support
25
+
26
+
### Registry
27
+
The Linux SDK supports specifying configuration originally taken care of by Windows registry keys by environment variables prefixed with `CCP_CONFIG_`. For example, the `CertificateValidationType` registry key under `HKLM\SOFTWARE\Microsoft\HPC` can be specified on Linux by passing in the environment variable `CCP_CONFIG_CertificateValidationType`.
28
+
29
+
In addition, configuration can be specified via the `/etc/hpcpack/config.json` configuration file. For example, to configure `CertificateValidationType` to `1` (Skip CN check), use the following JSON config:
30
+
```json
31
+
{
32
+
"CertificateValidationType": 1
33
+
}
34
+
```
35
+
36
+
### Certificates
37
+
- On Linux, users need to manually add their certificate into the appropriate [X.509 certificate store](https://learn.microsoft.com/en-us/dotnet/standard/security/cross-platform-cryptography#x509store) corresponding to `CurrentUser\My` and `LocalMachine\Root` for Linux. For `CurrentUser\My`, user would need to import their certificate using code similar to the following:
38
+
```
39
+
using (var store = new X509Store(StoreName.My, StoreLocation.CurrentUser, OpenFlags.ReadWrite))
40
+
{
41
+
store.Add(new X509Certificate2(
42
+
"./thePathToTheCert.pfx", "passwordOfTheCert",
43
+
X509KeyStorageFlags.PersistKeySet));
44
+
}
45
+
```
46
+
For `LocalMachine\Root`, user would need to import the certificate into the default OpenSSL CA bundle using the appropriate command for your Linux distribution. See [here](https://ubuntu.com/server/docs/install-a-root-ca-certificate-in-the-trust-store) and [here](https://www.redhat.com/sysadmin/configure-ca-trust-list) for examples of how to do it on Ubuntu and RHEL.
47
+
48
+
### Logging
49
+
Logging can be configured via `appsettings.json`. See [here](https://learn.microsoft.com/en-us/dotnet/core/extensions/logging?tabs=command-line#configure-logging-without-code) for more information.
50
+
51
+
## Known issues with .NET Standard 2.0 SDK and Linux support
52
+
- When getting certificates from certificate stores on Windows and Linux, there is no UI pop-up when more than one certificate is available, resulting in no certificate being chosen and failure downstream.
53
+
- Connecting to cluster via .NET Remoting is not supported
54
+
- Entering credentials interactively is not supported. Pass username and password explicitly or use `CCP_USERNAME` and `CCP_PASSWORD` environment variables instead.
55
+
- Excel isn't supported
21
56
22
57
## Contributing
23
58
This project welcomes contributions and suggestions. Most contributions require you to
0 commit comments