Share via


Container Constructors

Definition

Overloads

Container()

Initializes a new instance of the Container class.

Container(String, String, ResourceRequirements, IList<String>, IList<ContainerPort>, IList<EnvironmentVariable>, ContainerPropertiesInstanceView, IList<VolumeMount>, ContainerProbe, ContainerProbe)

Initializes a new instance of the Container class.

Container()

Initializes a new instance of the Container class.

public Container ();
Public Sub New ()

Applies to

Container(String, String, ResourceRequirements, IList<String>, IList<ContainerPort>, IList<EnvironmentVariable>, ContainerPropertiesInstanceView, IList<VolumeMount>, ContainerProbe, ContainerProbe)

Initializes a new instance of the Container class.

public Container (string name, string image, Microsoft.Azure.Management.ContainerInstance.Models.ResourceRequirements resources, System.Collections.Generic.IList<string> command = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.ContainerPort> ports = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.EnvironmentVariable> environmentVariables = default, Microsoft.Azure.Management.ContainerInstance.Models.ContainerPropertiesInstanceView instanceView = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.VolumeMount> volumeMounts = default, Microsoft.Azure.Management.ContainerInstance.Models.ContainerProbe livenessProbe = default, Microsoft.Azure.Management.ContainerInstance.Models.ContainerProbe readinessProbe = default);
new Microsoft.Azure.Management.ContainerInstance.Models.Container : string * string * Microsoft.Azure.Management.ContainerInstance.Models.ResourceRequirements * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.ContainerPort> * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.EnvironmentVariable> * Microsoft.Azure.Management.ContainerInstance.Models.ContainerPropertiesInstanceView * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.VolumeMount> * Microsoft.Azure.Management.ContainerInstance.Models.ContainerProbe * Microsoft.Azure.Management.ContainerInstance.Models.ContainerProbe -> Microsoft.Azure.Management.ContainerInstance.Models.Container
Public Sub New (name As String, image As String, resources As ResourceRequirements, Optional command As IList(Of String) = Nothing, Optional ports As IList(Of ContainerPort) = Nothing, Optional environmentVariables As IList(Of EnvironmentVariable) = Nothing, Optional instanceView As ContainerPropertiesInstanceView = Nothing, Optional volumeMounts As IList(Of VolumeMount) = Nothing, Optional livenessProbe As ContainerProbe = Nothing, Optional readinessProbe As ContainerProbe = Nothing)

Parameters

name
String

The user-provided name of the container instance.

image
String

The name of the image used to create the container instance.

resources
ResourceRequirements

The resource requirements of the container instance.

command
IList<String>

The commands to execute within the container instance in exec form.

ports
IList<ContainerPort>

The exposed ports on the container instance.

environmentVariables
IList<EnvironmentVariable>

The environment variables to set in the container instance.

instanceView
ContainerPropertiesInstanceView

The instance view of the container instance. Only valid in response.

volumeMounts
IList<VolumeMount>

The volume mounts available to the container instance.

livenessProbe
ContainerProbe

The liveness probe.

readinessProbe
ContainerProbe

The readiness probe.

Applies to