SshPublicKeyResource Class

Specifies information about the SSH public key.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.compute.v2020_12_01.models._models_py3.Resource
SshPublicKeyResource

Constructor

SshPublicKeyResource(*, location: str, tags: typing.Union[typing.Dict[str, str], NoneType] = None, public_key: typing.Union[str, NoneType] = None, **kwargs)

Parameters

location
str
Required

Required. Resource location.

tags
dict[str, str]
Required

A set of tags. Resource tags.

public_key
str
Required

SSH public key used to authenticate to a virtual machine through ssh. If this property is not initially provided when the resource is created, the publicKey property will be populated when generateKeyPair is called. If the public key is provided upon resource creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format.

Variables

id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.