ContainerGroup 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
ContainerGroup() |
Initializes a new instance of the ContainerGroup class. |
ContainerGroup(IList<Container>, String, String, String, String, String, IDictionary<String,String>, IList<String>, ContainerGroupIdentity, String, IList<ImageRegistryCredential>, String, IpAddress, IList<Volume>, ContainerGroupPropertiesInstanceView, ContainerGroupDiagnostics, IList<ContainerGroupSubnetId>, DnsConfiguration, String, EncryptionProperties, IList<InitContainerDefinition>) |
Initializes a new instance of the ContainerGroup class. |
ContainerGroup()
Initializes a new instance of the ContainerGroup class.
public ContainerGroup ();
Public Sub New ()
Applies to
ContainerGroup(IList<Container>, String, String, String, String, String, IDictionary<String,String>, IList<String>, ContainerGroupIdentity, String, IList<ImageRegistryCredential>, String, IpAddress, IList<Volume>, ContainerGroupPropertiesInstanceView, ContainerGroupDiagnostics, IList<ContainerGroupSubnetId>, DnsConfiguration, String, EncryptionProperties, IList<InitContainerDefinition>)
Initializes a new instance of the ContainerGroup class.
public ContainerGroup (System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.Container> containers, string osType, string id = default, string name = default, string type = default, string location = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IList<string> zones = default, Microsoft.Azure.Management.ContainerInstance.Models.ContainerGroupIdentity identity = default, string provisioningState = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.ImageRegistryCredential> imageRegistryCredentials = default, string restartPolicy = default, Microsoft.Azure.Management.ContainerInstance.Models.IpAddress ipAddress = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.Volume> volumes = default, Microsoft.Azure.Management.ContainerInstance.Models.ContainerGroupPropertiesInstanceView instanceView = default, Microsoft.Azure.Management.ContainerInstance.Models.ContainerGroupDiagnostics diagnostics = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.ContainerGroupSubnetId> subnetIds = default, Microsoft.Azure.Management.ContainerInstance.Models.DnsConfiguration dnsConfig = default, string sku = default, Microsoft.Azure.Management.ContainerInstance.Models.EncryptionProperties encryptionProperties = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.InitContainerDefinition> initContainers = default);
new Microsoft.Azure.Management.ContainerInstance.Models.ContainerGroup : System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.Container> * string * string * string * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.ContainerInstance.Models.ContainerGroupIdentity * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.ImageRegistryCredential> * string * Microsoft.Azure.Management.ContainerInstance.Models.IpAddress * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.Volume> * Microsoft.Azure.Management.ContainerInstance.Models.ContainerGroupPropertiesInstanceView * Microsoft.Azure.Management.ContainerInstance.Models.ContainerGroupDiagnostics * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.ContainerGroupSubnetId> * Microsoft.Azure.Management.ContainerInstance.Models.DnsConfiguration * string * Microsoft.Azure.Management.ContainerInstance.Models.EncryptionProperties * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerInstance.Models.InitContainerDefinition> -> Microsoft.Azure.Management.ContainerInstance.Models.ContainerGroup
Public Sub New (containers As IList(Of Container), osType As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional location As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional zones As IList(Of String) = Nothing, Optional identity As ContainerGroupIdentity = Nothing, Optional provisioningState As String = Nothing, Optional imageRegistryCredentials As IList(Of ImageRegistryCredential) = Nothing, Optional restartPolicy As String = Nothing, Optional ipAddress As IpAddress = Nothing, Optional volumes As IList(Of Volume) = Nothing, Optional instanceView As ContainerGroupPropertiesInstanceView = Nothing, Optional diagnostics As ContainerGroupDiagnostics = Nothing, Optional subnetIds As IList(Of ContainerGroupSubnetId) = Nothing, Optional dnsConfig As DnsConfiguration = Nothing, Optional sku As String = Nothing, Optional encryptionProperties As EncryptionProperties = Nothing, Optional initContainers As IList(Of InitContainerDefinition) = Nothing)
Parameters
- osType
- String
The operating system type required by the containers in the container group. Possible values include: 'Windows', 'Linux'
- id
- String
The resource id.
- name
- String
The resource name.
- type
- String
The resource type.
- location
- String
The resource location.
- tags
- IDictionary<String,String>
The resource tags.
- identity
- ContainerGroupIdentity
The identity of the container group, if configured.
- provisioningState
- String
The provisioning state of the container group. This only appears in the response.
- imageRegistryCredentials
- IList<ImageRegistryCredential>
The image registry credentials by which the container group is created from.
- restartPolicy
- String
Restart policy for all containers
within the container group.
- Always
Always restart
- OnFailure
Restart on failure
- Never
Never restart
. Possible values include: 'Always', 'OnFailure', 'Never'
- ipAddress
- IpAddress
The IP address type of the container group.
The list of volumes that can be mounted by containers in this container group.
- instanceView
- ContainerGroupPropertiesInstanceView
The instance view of the container group. Only valid in response.
- diagnostics
- ContainerGroupDiagnostics
The diagnostic information for a container group.
- subnetIds
- IList<ContainerGroupSubnetId>
The subnet resource IDs for a container group.
- dnsConfig
- DnsConfiguration
The DNS config information for a container group.
- sku
- String
The SKU for a container group. Possible values include: 'Standard', 'Dedicated'
- encryptionProperties
- EncryptionProperties
The encryption properties for a container group.
- initContainers
- IList<InitContainerDefinition>
The init containers for a container group.
Applies to
Azure SDK for .NET