ArmAppContainersModelFactory.SessionContainer 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.
Container definitions for the sessions of the session pool.
public static Azure.ResourceManager.AppContainers.Models.SessionContainer SessionContainer(string image = default, string name = default, System.Collections.Generic.IEnumerable<string> command = default, System.Collections.Generic.IEnumerable<string> args = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppEnvironmentVariable> env = default, Azure.ResourceManager.AppContainers.Models.SessionContainerResources resources = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.SessionProbe> probes = default);
static member SessionContainer : string * string * seq<string> * seq<string> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppEnvironmentVariable> * Azure.ResourceManager.AppContainers.Models.SessionContainerResources * seq<Azure.ResourceManager.AppContainers.Models.SessionProbe> -> Azure.ResourceManager.AppContainers.Models.SessionContainer
Public Shared Function SessionContainer (Optional image As String = Nothing, Optional name As String = Nothing, Optional command As IEnumerable(Of String) = Nothing, Optional args As IEnumerable(Of String) = Nothing, Optional env As IEnumerable(Of ContainerAppEnvironmentVariable) = Nothing, Optional resources As SessionContainerResources = Nothing, Optional probes As IEnumerable(Of SessionProbe) = Nothing) As SessionContainer
Parameters
- image
- String
Container image tag.
- name
- String
Custom container name.
- command
- IEnumerable<String>
Container start command.
- args
- IEnumerable<String>
Container start command arguments.
Container environment variables.
- resources
- SessionContainerResources
Container resource requirements.
- probes
- IEnumerable<SessionProbe>
List of probes for the container.
Returns
A new SessionContainer instance for mocking.