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.objectNetworkSettings
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
public_ip_address
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python