NetworkSettings Class

Network settings for a compute resource. If the workspace and VNet are in different resource groups, please provide the full URI for subnet and leave vnet_name as None.

Inheritance
builtins.object
NetworkSettings

Constructor

NetworkSettings(*, vnet_name: str | None = None, subnet: str | None = None, **kwargs: Any)

Parameters

Name Description
vnet_name
Required

The virtual network name.

subnet
Required

The subnet name.

Keyword-Only Parameters

Name Description
vnet_name
Required
subnet
Required

Examples

Configuring NetworkSettings for an AmlCompute object.


   from azure.ai.ml.entities import (
       AmlCompute,
       IdentityConfiguration,
       ManagedIdentityConfiguration,
       NetworkSettings,
   )

   aml_compute = AmlCompute(
       name="my-compute",
       min_instances=0,
       max_instances=10,
       idle_time_before_scale_down=100,
       network_settings=NetworkSettings(vnet_name="my-vnet", subnet="default"),
   )

Attributes

private_ip_address

Private IP address of the compute instance.

Returns

Type Description
str

Private IP address.

public_ip_address

Public IP address of the compute instance.

Returns

Type Description
str

Public IP address.