IWithPorts<ParentT>.WithInternalTcpPorts(Int32[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the container's TCP ports are available to internal clients only (other container instances within the container group). Containers within a group can reach each other via localhost on the ports that they have exposed, even if those ports are not exposed externally on the group's IP address.
public Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithPortsOrContainerInstanceAttach<ParentT> WithInternalTcpPorts (params int[] ports);
abstract member WithInternalTcpPorts : int[] -> Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithPortsOrContainerInstanceAttach<'ParentT>
Public Function WithInternalTcpPorts (ParamArray ports As Integer()) As IWithPortsOrContainerInstanceAttach(Of ParentT)
Parameters
- ports
- Int32[]
Array of TCP ports to be exposed internally.
Returns
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET