Container Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Fluent.Models.ResourceRequirements resources, System.Collections.Generic.IList<string> command = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ContainerPort> ports = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Fluent.Models.EnvironmentVariable> environmentVariables = default, Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ContainerPropertiesInstanceView instanceView = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Fluent.Models.VolumeMount> volumeMounts = default, Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ContainerProbe livenessProbe = default, Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ContainerProbe readinessProbe = default);
new Microsoft.Azure.Management.ContainerInstance.Fluent.Models.Container : string * string * Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ResourceRequirements * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ContainerPort> * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Fluent.Models.EnvironmentVariable> * Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ContainerPropertiesInstanceView * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Fluent.Models.VolumeMount> * Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ContainerProbe * Microsoft.Azure.Management.ContainerInstance.Fluent.Models.ContainerProbe -> Microsoft.Azure.Management.ContainerInstance.Fluent.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.
- 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.