ArmContainerInstanceModelFactory.ContainerInstanceContainer Method
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.
Initializes a new instance of ContainerInstanceContainer.
public static Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceContainer ContainerInstanceContainer (string name = default, string image = default, System.Collections.Generic.IEnumerable<string> command = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerPort> ports = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerEnvironmentVariable> environmentVariables = default, Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceView instanceView = default, Azure.ResourceManager.ContainerInstance.Models.ContainerResourceRequirements resources = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerVolumeMount> volumeMounts = default, Azure.ResourceManager.ContainerInstance.Models.ContainerProbe livenessProbe = default, Azure.ResourceManager.ContainerInstance.Models.ContainerProbe readinessProbe = default, Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition securityContext = default, System.Collections.Generic.IDictionary<string,string> configMapKeyValuePairs = default);
static member ContainerInstanceContainer : string * string * seq<string> * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerPort> * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerEnvironmentVariable> * Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceView * Azure.ResourceManager.ContainerInstance.Models.ContainerResourceRequirements * seq<Azure.ResourceManager.ContainerInstance.Models.ContainerVolumeMount> * Azure.ResourceManager.ContainerInstance.Models.ContainerProbe * Azure.ResourceManager.ContainerInstance.Models.ContainerProbe * Azure.ResourceManager.ContainerInstance.Models.ContainerSecurityContextDefinition * System.Collections.Generic.IDictionary<string, string> -> Azure.ResourceManager.ContainerInstance.Models.ContainerInstanceContainer
Public Shared Function ContainerInstanceContainer (Optional name As String = Nothing, Optional image As String = Nothing, Optional command As IEnumerable(Of String) = Nothing, Optional ports As IEnumerable(Of ContainerPort) = Nothing, Optional environmentVariables As IEnumerable(Of ContainerEnvironmentVariable) = Nothing, Optional instanceView As ContainerInstanceView = Nothing, Optional resources As ContainerResourceRequirements = Nothing, Optional volumeMounts As IEnumerable(Of ContainerVolumeMount) = Nothing, Optional livenessProbe As ContainerProbe = Nothing, Optional readinessProbe As ContainerProbe = Nothing, Optional securityContext As ContainerSecurityContextDefinition = Nothing, Optional configMapKeyValuePairs As IDictionary(Of String, String) = Nothing) As ContainerInstanceContainer
Parameters
- name
- String
The user-provided name of the container instance.
- image
- String
The name of the image used to create the container instance.
- command
- IEnumerable<String>
The commands to execute within the container instance in exec form.
- ports
- IEnumerable<ContainerPort>
The exposed ports on the container instance.
- environmentVariables
- IEnumerable<ContainerEnvironmentVariable>
The environment variables to set in the container instance.
- instanceView
- ContainerInstanceView
The instance view of the container instance. Only valid in response.
- resources
- ContainerResourceRequirements
The resource requirements of the container instance.
- volumeMounts
- IEnumerable<ContainerVolumeMount>
The volume mounts available to the container instance.
- livenessProbe
- ContainerProbe
The liveness probe.
- readinessProbe
- ContainerProbe
The readiness probe.
- securityContext
- ContainerSecurityContextDefinition
The container security properties.
- configMapKeyValuePairs
- IDictionary<String,String>
The config map.
Returns
A new ContainerInstanceContainer instance for mocking.
Applies to
Azure SDK for .NET