Group Args
data class GroupArgs(val containers: Output<List<GroupContainerArgs>>? = null, val diagnostics: Output<GroupDiagnosticsArgs>? = null, val dnsConfig: Output<GroupDnsConfigArgs>? = null, val dnsNameLabel: Output<String>? = null, val dnsNameLabelReusePolicy: Output<String>? = null, val exposedPorts: Output<List<GroupExposedPortArgs>>? = null, val identity: Output<GroupIdentityArgs>? = null, val imageRegistryCredentials: Output<List<GroupImageRegistryCredentialArgs>>? = null, val initContainers: Output<List<GroupInitContainerArgs>>? = null, val ipAddressType: Output<String>? = null, val keyVaultKeyId: Output<String>? = null, val keyVaultUserAssignedIdentityId: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val networkProfileId: Output<String>? = null, val osType: Output<String>? = null, val resourceGroupName: Output<String>? = null, val restartPolicy: Output<String>? = null, val sku: Output<String>? = null, val subnetIds: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val zones: Output<List<String>>? = null) : ConvertibleToJava<GroupArgs>
Manages as an Azure Container Group instance.
Note
network_profile_id
is deprecated by Azure. For users who want to continue to manage existingazure.containerservice.Group
that rely onnetwork_profile_id
, please stay on provider versions prior to v3.16.0. Otherwise, usesubnet_ids
instead.
Example Usage
This example provisions a Basic Container.
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.containerservice.Group;
import com.pulumi.azure.containerservice.GroupArgs;
import com.pulumi.azure.containerservice.inputs.GroupContainerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleGroup = new Group("exampleGroup", GroupArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.ipAddressType("Public")
.dnsNameLabel("aci-label")
.osType("Linux")
.containers(
GroupContainerArgs.builder()
.name("hello-world")
.image("mcr.microsoft.com/azuredocs/aci-helloworld:latest")
.cpu("0.5")
.memory("1.5")
.ports(GroupContainerPortArgs.builder()
.port(443)
.protocol("TCP")
.build())
.build(),
GroupContainerArgs.builder()
.name("sidecar")
.image("mcr.microsoft.com/azuredocs/aci-tutorial-sidecar")
.cpu("0.5")
.memory("1.5")
.build())
.tags(Map.of("environment", "testing"))
.build());
}
}
Content copied to clipboard
Import
Container Group's can be imported using the resource id
, e.g.
$ pulumi import azure:containerservice/group:Group containerGroup1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerInstance/containerGroups/myContainerGroup1
Content copied to clipboard
Constructors
Link copied to clipboard
fun GroupArgs(containers: Output<List<GroupContainerArgs>>? = null, diagnostics: Output<GroupDiagnosticsArgs>? = null, dnsConfig: Output<GroupDnsConfigArgs>? = null, dnsNameLabel: Output<String>? = null, dnsNameLabelReusePolicy: Output<String>? = null, exposedPorts: Output<List<GroupExposedPortArgs>>? = null, identity: Output<GroupIdentityArgs>? = null, imageRegistryCredentials: Output<List<GroupImageRegistryCredentialArgs>>? = null, initContainers: Output<List<GroupInitContainerArgs>>? = null, ipAddressType: Output<String>? = null, keyVaultKeyId: Output<String>? = null, keyVaultUserAssignedIdentityId: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, networkProfileId: Output<String>? = null, osType: Output<String>? = null, resourceGroupName: Output<String>? = null, restartPolicy: Output<String>? = null, sku: Output<String>? = null, subnetIds: Output<String>? = null, tags: Output<Map<String, String>>? = null, zones: Output<List<String>>? = null)
Functions
Properties
Link copied to clipboard