AmlComputeProvisioningConfiguration Class
Represents configuration parameters for provisioning AmlCompute targets.
Use the provisioning_configuration
method of the
AmlCompute class to specify configuration parameters.
Create a configuration object for provisioning a AmlCompute target.
- Inheritance
-
AmlComputeProvisioningConfiguration
Constructor
AmlComputeProvisioningConfiguration(vm_size='', vm_priority='dedicated', min_nodes=0, max_nodes=None, idle_seconds_before_scaledown=1800, admin_username=None, admin_user_password=None, admin_user_ssh_key=None, vnet_resourcegroup_name=None, vnet_name=None, subnet_name=None, tags=None, description=None, remote_login_port_public_access='NotSpecified', identity_type=None, identity_id=None, compute_location=None, enable_node_public_ip=True)
Parameters
- vm_size
- str
The size of agent VMs. More details can be found here: https://aka.ms/azureml-vm-details. Note that not all sizes are available in all regions, as detailed in the previous link. If not specified, defaults to Standard_NC6.
- vm_priority
- str
The VM priority, either "dedicated" or "lowpriority" VMs. If not specified, defaults to "dedicated".
- min_nodes
- int
The minimum number of nodes to use on the cluster. If not specified, defaults to 0.
- idle_seconds_before_scaledown
- int
The node idle time in seconds before scaling down the cluster. If not specified, defaults to 1800.
- admin_username
- str
The name of the administrator user account which can be used to SSH into nodes.
- vnet_resourcegroup_name
- str
The name of the resource group where the virtual network is located.
A dictionary of key value tags to provide to the compute object.
- remote_login_port_public_access
- str
The state of the public SSH port. Possible values are:
Disabled - Indicates that the public ssh port is closed on all nodes of the cluster.
Enabled - Indicates that the public ssh port is open on all nodes of the cluster.
NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. It can be this default value only during cluster creation time. After creation, it will be either enabled or disabled.
- identity_type
- string
Possible values are:
SystemAssigned - System assigned identity
UserAssigned - User assigned identity. Requires identity id to be set.
List of resource ids for the user assigned identity. eg. ['/subscriptions//resourceGroups//providers/Microsoft.ManagedIdentity /userAssignedIdentities/']
- vm_size
- str
The size of agent VMs. More details can be found here: https://aka.ms/azureml-vm-details. Note that not all sizes are available in all regions, as detailed in the previous link. If not specified, defaults to Standard_NC6.
- vm_priority
- str
The VM priority, either "dedicated" or "lowpriority" VMs. If not specified, defaults to "dedicated".
- min_nodes
- int
The minimum number of nodes to use on the cluster. If not specified, defaults to 0.
- idle_seconds_before_scaledown
- int
The node idle time in seconds before scaling down the cluster. If not specified, defaults to 1800.
- admin_username
- str
The name of the administrator user account which can be used to SSH into nodes.
- vnet_resourcegroup_name
- str
The name of the resource group where the virtual network is located.
- remote_login_port_public_access
- str
The state of the public SSH port. Possible values are:
Disabled - Indicates that the public ssh port is closed on all nodes of the cluster.
Enabled - Indicates that the public ssh port is open on all nodes of the cluster.
NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. This is the default value. The state can be in this default value only during cluster creation time. After creation, it will be either enabled or disabled.
- identity_type
- string
Possible values are:
SystemAssigned - System assigned identity
UserAssigned - User assigned identity. Requires identity id to be set.
List of resource ids for the user assigned identity. eg. ['/subscriptions//resourceGroups//providers/Microsoft.ManagedIdentity /userAssignedIdentities/']
- enable_node_public_ip
- bool
Enable node public IP. Possible values are:
True - Enable node public IP.
False - Disable node public IP.
NotSpecified - Enable node public IP.
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
Feedback
Submit and view feedback for