ArmMachineLearningModelFactory.MachineLearningComputeInstanceSshSettings Method

Definition

Initializes a new instance of MachineLearningComputeInstanceSshSettings.

public static Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceSshSettings MachineLearningComputeInstanceSshSettings (Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess? sshPublicAccess = default, string adminUserName = default, int? sshPort = default, string adminPublicKey = default);
static member MachineLearningComputeInstanceSshSettings : Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningSshPublicAccess> * string * Nullable<int> * string -> Azure.ResourceManager.MachineLearning.Models.MachineLearningComputeInstanceSshSettings
Public Shared Function MachineLearningComputeInstanceSshSettings (Optional sshPublicAccess As Nullable(Of MachineLearningSshPublicAccess) = Nothing, Optional adminUserName As String = Nothing, Optional sshPort As Nullable(Of Integer) = Nothing, Optional adminPublicKey As String = Nothing) As MachineLearningComputeInstanceSshSettings

Parameters

sshPublicAccess
Nullable<MachineLearningSshPublicAccess>

State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.

adminUserName
String

Describes the admin user name.

sshPort
Nullable<Int32>

Describes the port for connecting through SSH.

adminPublicKey
String

Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.

Returns

A new MachineLearningComputeInstanceSshSettings instance for mocking.

Applies to