Interface ContainerGroup.DefinitionStages.WithFirstContainerInstance
- All Known Subinterfaces:
ContainerGroup.Definition
,ContainerGroup.DefinitionStages.WithVolume
- Enclosing interface:
- ContainerGroup.DefinitionStages
public static interface ContainerGroup.DefinitionStages.WithFirstContainerInstance
The stage of the container group definition allowing to specify first required container instance.
-
Method Summary
Modifier and TypeMethodDescriptionContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.ContainerInstanceDefinitionBlank<ContainerGroup.DefinitionStages.WithNextContainerInstance>
Begins the definition of a container instance.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.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
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
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
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 imageport
- the external port to be opened- Returns:
- the next stage of the definition
-