ComputeBatchModelFactory.BatchContainerConfiguration 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.
The configuration for container-enabled Pools.
public static Azure.Compute.Batch.BatchContainerConfiguration BatchContainerConfiguration(Azure.Compute.Batch.ContainerType type = default, System.Collections.Generic.IEnumerable<string> containerImageNames = default, System.Collections.Generic.IEnumerable<Azure.Compute.Batch.ContainerRegistryReference> containerRegistries = default);
static member BatchContainerConfiguration : Azure.Compute.Batch.ContainerType * seq<string> * seq<Azure.Compute.Batch.ContainerRegistryReference> -> Azure.Compute.Batch.BatchContainerConfiguration
Public Shared Function BatchContainerConfiguration (Optional type As ContainerType = Nothing, Optional containerImageNames As IEnumerable(Of String) = Nothing, Optional containerRegistries As IEnumerable(Of ContainerRegistryReference) = Nothing) As BatchContainerConfiguration
Parameters
- type
- ContainerType
The container technology to be used.
- containerImageNames
- IEnumerable<String>
The collection of container Image names. This is the full Image reference, as would be specified to "docker pull". An Image will be sourced from the default Docker registry unless the Image is fully qualified with an alternative registry.
- containerRegistries
- IEnumerable<ContainerRegistryReference>
Additional private registries from which containers can be pulled. If any Images must be downloaded from a private registry which requires credentials, then those credentials must be provided here.
Returns
A new BatchContainerConfiguration instance for mocking.