你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
SshPublicKeysOperationsExtensions.GenerateKeyPair 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
生成并返回公钥/私钥对,并使用公钥填充 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 公钥的名称。