Share via


ContainerGroup.DefinitionStages.WithFirstContainerInstance Interface

public static interface ContainerGroup.DefinitionStages.WithFirstContainerInstance

The stage of the container group definition allowing to specify first required container instance.

Method Summary

Modifier and Type Method and Description
abstract ContainerInstanceDefinitionBlank<WithNextContainerInstance> defineContainerInstance(String name)

Begins the definition of a container instance.

abstract WithCreate withContainerInstance(String imageName)

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

abstract WithCreate withContainerInstance(String imageName, int port)

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

Method Details

defineContainerInstance

public abstract ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.ContainerInstanceDefinitionBlank<ContainerGroup.DefinitionStages.WithNextContainerInstance> defineContainerInstance(String name)

Begins the definition of a container instance.

Parameters:

name - the name of the container instance

Returns:

the next stage of the definition

withContainerInstance

public abstract ContainerGroup.DefinitionStages.WithCreate withContainerInstance(String imageName)

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

Parameters:

imageName - the name of the container image

Returns:

the next stage of the definition

withContainerInstance

public abstract ContainerGroup.DefinitionStages.WithCreate withContainerInstance(String imageName, int port)

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

Parameters:

imageName - the name of the container image
port - the external port to be opened

Returns:

the next stage of the definition

Applies to