你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IWithPorts<ParentT>.WithInternalTcpPorts(Int32[]) 方法

定义

指定容器的 TCP 端口仅适用于内部客户端 (容器组) 中的其他容器实例。 组内的容器可以通过它们已公开的端口上的 localhost 相互访问,即使这些端口并未在组的 IP 地址上对外公开。

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)

参数

ports
Int32[]

要内部公开的 TCP 端口数组。

返回

适用于