RemoteComputeAttachConfiguration Class
Represents configuration parameters for attaching remote compute targets.
Use the attach_configuration
method of the
RemoteCompute class to
specify attach parameters.
Initialize the configuration object.
- Inheritance
-
RemoteComputeAttachConfiguration
Constructor
RemoteComputeAttachConfiguration(username, subscription_id=None, resource_group=None, vm_name=None, resource_id=None, address=None, ssh_port=22, password='', private_key_file='', private_key_passphrase='')
Parameters
Name | Description |
---|---|
username
Required
|
The username needed to access the resource. |
subscription_id
|
The Azure subscription ID in which virtual machine is located. Default value: None
|
resource_group
|
The name of the resource group in which virtual machine is located. Default value: None
|
vm_name
|
The virtual machine name. Default value: None
|
resource_id
|
The arm resource_id of the resource to be attached. Default value: None
|
address
|
The address of the resource to be attached. Default value: None
|
ssh_port
|
The exposed port for the resource. Defaults to 22. Default value: 22
|
password
Required
|
The password needed to access the resource. |
private_key_file
Required
|
The path to a file containing the private key for the resource. |
private_key_passphrase
Required
|
The private key phrase needed to access the resource. |
username
Required
|
The username needed to access the resource. |
subscription_id
Required
|
The Azure subscription ID in which virtual machine is located. |
resource_group
Required
|
The name of the resource group in which virtual machine is located. |
vm_name
Required
|
The virtual machine name. |
resource_id
Required
|
The arm resource_id of the resource to be attached. |
address
Required
|
The address of the resource to be attached. |
ssh_port
Required
|
The exposed port for the resource. Defaults to 22. |
password
Required
|
The password needed to access the resource. |
private_key_file
Required
|
Path to a file containing the private key for the resource. |
private_key_passphrase
Required
|
The private key phrase needed to access the resource. |
Methods
validate_configuration |
Check that the specified configuration values are valid. Raises a ComputeTargetException if validation fails. |
validate_configuration
Check that the specified configuration values are valid.
Raises a ComputeTargetException if validation fails.
validate_configuration()
Exceptions
Type | Description |
---|---|