次の方法で共有


SshPublicKeysOperationsExtensions.GenerateKeyPairAsync メソッド

定義

公開キーと秘密キーのペアを生成して返し、SSH 公開キー リソースに公開キーを設定します。 キーの長さは 3072 ビットです。 この操作は、SSH 公開キー リソースごとに 1 回だけ実行できます。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.SshPublicKeyGenerateKeyPairResult> GenerateKeyPairAsync (this Microsoft.Azure.Management.Compute.ISshPublicKeysOperations operations, string resourceGroupName, string sshPublicKeyName, System.Threading.CancellationToken cancellationToken = default);
static member GenerateKeyPairAsync : Microsoft.Azure.Management.Compute.ISshPublicKeysOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.SshPublicKeyGenerateKeyPairResult>
<Extension()>
Public Function GenerateKeyPairAsync (operations As ISshPublicKeysOperations, resourceGroupName As String, sshPublicKeyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SshPublicKeyGenerateKeyPairResult)

パラメーター

operations
ISshPublicKeysOperations

この拡張メソッドの操作グループ。

resourceGroupName
String

リソース グループの名前。

sshPublicKeyName
String

SSH 公開キーの名前。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象