Share via


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

IWithPortsOrContainerInstanceAttach<ParentT> 接口

定义

允许指定一个或多个容器端口的容器实例定义的阶段。

public interface IWithPortsOrContainerInstanceAttach<ParentT> : Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithContainerInstanceAttach<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCpuCoreCount<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithEnvironmentVariables<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithGpuResource<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithMemorySize<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithPorts<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithStartingCommandLine<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithStartingCommandLineBeta<ParentT>, Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithVolumeMountSetting<ParentT>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ChildResource.Definition.IInDefinition<ParentT>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta
type IWithPortsOrContainerInstanceAttach<'ParentT> = interface
    interface IWithPorts<'ParentT>
    interface IBeta
    interface IWithContainerInstanceAttach<'ParentT>
    interface IWithCpuCoreCount<'ParentT>
    interface IWithGpuResource<'ParentT>
    interface IWithMemorySize<'ParentT>
    interface IWithStartingCommandLine<'ParentT>
    interface IWithStartingCommandLineBeta<'ParentT>
    interface IWithEnvironmentVariables<'ParentT>
    interface IWithVolumeMountSetting<'ParentT>
    interface IInDefinition<'ParentT>
Public Interface IWithPortsOrContainerInstanceAttach(Of ParentT)
Implements IBeta, IInDefinition(Of ParentT), IWithContainerInstanceAttach(Of ParentT), IWithCpuCoreCount(Of ParentT), IWithEnvironmentVariables(Of ParentT), IWithGpuResource(Of ParentT), IWithMemorySize(Of ParentT), IWithPorts(Of ParentT), IWithStartingCommandLine(Of ParentT), IWithStartingCommandLineBeta(Of ParentT), IWithVolumeMountSetting(Of ParentT)

类型参数

ParentT

附加此定义后要返回到的父定义的阶段。

派生
实现

方法

Attach()

允许指定一个或多个容器端口的容器实例定义的阶段。

(继承自 IInDefinition<ParentT>)
WithCpuCoreCount(Double)

指定分配给此容器实例的 CPU 核心数。

(继承自 IWithCpuCoreCount<ParentT>)
WithEnvironmentVariable(String, String)

指定环境变量。

(继承自 IWithEnvironmentVariables<ParentT>)
WithEnvironmentVariables(IDictionary<String,String>)

指定环境变量。

(继承自 IWithEnvironmentVariables<ParentT>)
WithEnvironmentVariablesWithSecuredValue(IDictionary<String,String>)

指定环境变量的名称和安全值对的集合。

(继承自 IWithEnvironmentVariables<ParentT>)
WithEnvironmentVariableWithSecuredValue(String, String)

指定具有安全值的环境变量。

(继承自 IWithEnvironmentVariables<ParentT>)
WithExternalTcpPort(Int32)

指定可用于外部客户端的容器的 TCP 端口。 将创建一个公共 IP 地址,以允许外部客户端访问组中的容器。 若要启用外部客户端来访问组内的容器,必须从该容器公开 IP 地址上的端口。 因为组内的容器共享端口命名空间,所以不支持端口映射。

(继承自 IWithPorts<ParentT>)
WithExternalTcpPorts(Int32[])

指定可用于外部客户端的容器 TCP 端口。 将创建一个公共 IP 地址,以允许外部客户端访问组中的容器。 若要启用外部客户端来访问组内的容器,必须从该容器公开 IP 地址上的端口。 因为组内的容器共享端口命名空间,所以不支持端口映射。

(继承自 IWithPorts<ParentT>)
WithExternalUdpPort(Int32)

指定可用于外部客户端的容器的 UDP 端口。 将创建一个公共 IP 地址,以允许外部客户端访问组中的容器。 若要启用外部客户端来访问组内的容器,必须从该容器公开 IP 地址上的端口。 因为组内的容器共享端口命名空间,所以不支持端口映射。

(继承自 IWithPorts<ParentT>)
WithExternalUdpPorts(Int32[])

指定可用于外部客户端的容器 UDP 端口。 将创建一个公共 IP 地址,以允许外部客户端访问组中的容器。 若要启用外部客户端来访问组内的容器,必须从该容器公开 IP 地址上的端口。 因为组内的容器共享端口命名空间,所以不支持端口映射。

(继承自 IWithPorts<ParentT>)
WithGpuResource(Int32, GpuSku)

允许指定一个或多个容器端口的容器实例定义的阶段。

(继承自 IWithGpuResource<ParentT>)
WithInternalTcpPort(Int32)

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

(继承自 IWithPorts<ParentT>)
WithInternalTcpPorts(Int32[])

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

(继承自 IWithPorts<ParentT>)
WithInternalUdpPort(Int32)

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

(继承自 IWithPorts<ParentT>)
WithInternalUdpPorts(Int32[])

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

(继承自 IWithPorts<ParentT>)
WithMemorySizeInGB(Double)

指定分配给此容器实例的内存大小(以 GB 为单位)。

(继承自 IWithMemorySize<ParentT>)
WithReadOnlyVolumeMountSetting(IDictionary<String,String>)

指定要由容器实例在指定装载路径处装载的容器组的卷。 在容器中将 Azure 文件共享装载为卷需要两步。 首先,在定义容器组时提供共享的详细信息,然后指定如何在组中的一个或多个容器中装载的卷。

(继承自 IWithVolumeMountSetting<ParentT>)
WithReadOnlyVolumeMountSetting(String, String)

指定要由容器实例在指定装载路径处装载的容器组的卷。 在容器中将 Azure 文件共享装载为卷需要两步。 首先,在定义容器组时提供共享的详细信息,然后指定如何在组中的一个或多个容器中装载的卷。

(继承自 IWithVolumeMountSetting<ParentT>)
WithStartingCommandLine(String)

指定起始命令行。

(继承自 IWithStartingCommandLine<ParentT>)
WithStartingCommandLine(String, String[])

指定起始命令行。

(继承自 IWithStartingCommandLineBeta<ParentT>)
WithVolumeMountSetting(IDictionary<String,String>)

指定要由容器实例在指定装载路径处装载的容器组的卷。 在容器中将 Azure 文件共享装载为卷需要两步。 首先,在定义容器组时提供共享的详细信息,然后指定如何在组中的一个或多个容器中装载的卷。

(继承自 IWithVolumeMountSetting<ParentT>)
WithVolumeMountSetting(String, String)

指定要由容器实例在指定装载路径处装载的容器组的卷。 在容器中将 Azure 文件共享装载为卷需要两步。 首先,在定义容器组时提供共享的详细信息,然后指定如何在组中的一个或多个容器中装载的卷。

(继承自 IWithVolumeMountSetting<ParentT>)

适用于