NetworkSettings Class

Network settings for a compute resource.

Inheritance
builtins.object
NetworkSettings

Constructor

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

Parameters

Name Description
vnet_name
Required
str

The virtual network name.

subnet
Required
str

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.