ArmComputeModelFactory.SshPublicKeyGenerateKeyPairResult Method

Definition

Initializes a new instance of SshPublicKeyGenerateKeyPairResult.

public static Azure.ResourceManager.Compute.Models.SshPublicKeyGenerateKeyPairResult SshPublicKeyGenerateKeyPairResult (string privateKey = default, string publicKey = default, Azure.Core.ResourceIdentifier id = default);
static member SshPublicKeyGenerateKeyPairResult : string * string * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Compute.Models.SshPublicKeyGenerateKeyPairResult
Public Shared Function SshPublicKeyGenerateKeyPairResult (Optional privateKey As String = Nothing, Optional publicKey As String = Nothing, Optional id As ResourceIdentifier = Nothing) As SshPublicKeyGenerateKeyPairResult

Parameters

privateKey
String

Private key portion of the key pair used to authenticate to a virtual machine through ssh. The private key is returned in RFC3447 format and should be treated as a secret.

publicKey
String

Public key portion of the key pair used to authenticate to a virtual machine through ssh. The public key is in ssh-rsa format.

id
ResourceIdentifier

The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName}.

Returns

A new SshPublicKeyGenerateKeyPairResult instance for mocking.

Exceptions

privateKey, publicKey or id is null.

Applies to