ServiceTagDestination Class
Class representing a Service Tag outbound rule.
Creating a ServiceTagDestination outbound rule object.
from azure.ai.ml.entities import ServiceTagDestination
# Example service tag rule
datafactoryrule = ServiceTagDestination(
name="datafactory", service_tag="DataFactory", protocol="TCP", port_ranges="80, 8080-8089"
)
# Example service tag rule using custom address prefixes
customAddressPrefixesRule = ServiceTagDestination(
name="customAddressPrefixesRule",
address_prefixes=["168.63.129.16", "10.0.0.0/24"],
protocol="TCP",
port_ranges="80, 443, 8080-8089",
)
- Inheritance
-
azure.ai.ml.entities._workspace.networking.OutboundRuleServiceTagDestination
Constructor
ServiceTagDestination(*, name: str, protocol: str, port_ranges: str, service_tag: str | None = None, address_prefixes: List[str] | None = None, **kwargs: Any)
Parameters
Name | Description |
---|---|
name
Required
|
Name of the outbound rule. |
service_tag
Required
|
Service Tag of an Azure service, maps to predefined IP addresses for its service endpoints. |
protocol
Required
|
Allowed transport protocol, can be "TCP", "UDP", "ICMP" or "*" for all supported protocols. |
port_ranges
Required
|
A comma-separated list of single ports and/or range of ports, such as "80,1024-65535". Traffics should be allowed to these port ranges. |
address_prefixes
Required
|
Optional list of CIDR prefixes or IP ranges, when provided, service_tag argument will be ignored and address_prefixes will be used instead. |
Keyword-Only Parameters
Name | Description |
---|---|
name
Required
|
|
protocol
Required
|
|
port_ranges
Required
|
|
service_tag
Required
|
|
address_prefixes
Required
|
|
Variables
Name | Description |
---|---|
type
|
Type of the outbound rule. Set to "ServiceTag" for this class. |
Azure SDK for Python