你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SshPublicKeysOperationsExtensions.GenerateKeyPair 方法

定义

生成并返回公钥/私钥对,并使用公钥填充 SSH 公钥资源。 密钥的长度为 3072 位。 对于每个 SSH 公钥资源,此操作只能执行一次。

public static Microsoft.Azure.Management.Compute.Models.SshPublicKeyGenerateKeyPairResult GenerateKeyPair (this Microsoft.Azure.Management.Compute.ISshPublicKeysOperations operations, string resourceGroupName, string sshPublicKeyName);
static member GenerateKeyPair : Microsoft.Azure.Management.Compute.ISshPublicKeysOperations * string * string -> Microsoft.Azure.Management.Compute.Models.SshPublicKeyGenerateKeyPairResult
<Extension()>
Public Function GenerateKeyPair (operations As ISshPublicKeysOperations, resourceGroupName As String, sshPublicKeyName As String) As SshPublicKeyGenerateKeyPairResult

参数

operations
ISshPublicKeysOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

sshPublicKeyName
String

SSH 公钥的名称。

返回

适用于