IWithFirstContainerInstance.WithContainerInstance Method

Definition

Overloads

WithContainerInstance(String)

Defines one container instance for the specified image with one CPU count and 1.5 GB memory, with TCP port 80 opened externally.

WithContainerInstance(String, Int32)

Defines one container instance for the specified image with one CPU count and 1.5 GB memory, with a custom TCP port opened externally.

WithContainerInstance(String)

Defines one container instance for the specified image with one CPU count and 1.5 GB memory, with TCP port 80 opened externally.

public Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate WithContainerInstance (string imageName);
abstract member WithContainerInstance : string -> Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate
Public Function WithContainerInstance (imageName As String) As IWithCreate

Parameters

imageName
String

The name of the container image.

Returns

Applies to

WithContainerInstance(String, Int32)

Defines one container instance for the specified image with one CPU count and 1.5 GB memory, with a custom TCP port opened externally.

public Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate WithContainerInstance (string imageName, int port);
abstract member WithContainerInstance : string * int -> Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate
Public Function WithContainerInstance (imageName As String, port As Integer) As IWithCreate

Parameters

imageName
String

The name of the container image.

port
Int32

The external port to be opened.

Returns

Applies to