ClusterPoolArgs

data class ClusterPoolArgs(val clusterPoolName: Output<String>? = null, val clusterPoolProfile: Output<ClusterPoolResourcePropertiesClusterPoolProfileArgs>? = null, val computeProfile: Output<ClusterPoolResourcePropertiesComputeProfileArgs>? = null, val location: Output<String>? = null, val logAnalyticsProfile: Output<ClusterPoolResourcePropertiesLogAnalyticsProfileArgs>? = null, val managedResourceGroupName: Output<String>? = null, val networkProfile: Output<ClusterPoolResourcePropertiesNetworkProfileArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ClusterPoolArgs>

Cluster pool. Uses Azure REST API version 2024-05-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-06-01-preview. Other available API versions: 2023-06-01-preview, 2023-11-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native hdinsight [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ClusterPoolPut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var clusterPool = new AzureNative.HDInsight.ClusterPool("clusterPool", new()
{
ClusterPoolName = "clusterpool1",
ClusterPoolProfile = new AzureNative.HDInsight.Inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgs
{
ClusterPoolVersion = "1.2",
},
ComputeProfile = new AzureNative.HDInsight.Inputs.ClusterPoolResourcePropertiesComputeProfileArgs
{
AvailabilityZones = new[]
{
"1",
"2",
"3",
},
VmSize = "Standard_D3_v2",
},
Location = "West US 2",
ResourceGroupName = "hiloResourcegroup",
});
});
package main
import (
hdinsight "github.com/pulumi/pulumi-azure-native-sdk/hdinsight/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hdinsight.NewClusterPool(ctx, "clusterPool", &hdinsight.ClusterPoolArgs{
ClusterPoolName: pulumi.String("clusterpool1"),
ClusterPoolProfile: &hdinsight.ClusterPoolResourcePropertiesClusterPoolProfileArgs{
ClusterPoolVersion: pulumi.String("1.2"),
},
ComputeProfile: &hdinsight.ClusterPoolResourcePropertiesComputeProfileArgs{
AvailabilityZones: pulumi.StringArray{
pulumi.String("1"),
pulumi.String("2"),
pulumi.String("3"),
},
VmSize: pulumi.String("Standard_D3_v2"),
},
Location: pulumi.String("West US 2"),
ResourceGroupName: pulumi.String("hiloResourcegroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.hdinsight.ClusterPool;
import com.pulumi.azurenative.hdinsight.ClusterPoolArgs;
import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgs;
import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesComputeProfileArgs;
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 clusterPool = new ClusterPool("clusterPool", ClusterPoolArgs.builder()
.clusterPoolName("clusterpool1")
.clusterPoolProfile(ClusterPoolResourcePropertiesClusterPoolProfileArgs.builder()
.clusterPoolVersion("1.2")
.build())
.computeProfile(ClusterPoolResourcePropertiesComputeProfileArgs.builder()
.availabilityZones(
"1",
"2",
"3")
.vmSize("Standard_D3_v2")
.build())
.location("West US 2")
.resourceGroupName("hiloResourcegroup")
.build());
}
}

ClusterPoolPutWithPrivateAks

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var clusterPool = new AzureNative.HDInsight.ClusterPool("clusterPool", new()
{
ClusterPoolName = "clusterpool1",
ClusterPoolProfile = new AzureNative.HDInsight.Inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgs
{
ClusterPoolVersion = "1.2",
},
ComputeProfile = new AzureNative.HDInsight.Inputs.ClusterPoolResourcePropertiesComputeProfileArgs
{
AvailabilityZones = new[]
{
"1",
"2",
"3",
},
VmSize = "Standard_D3_v2",
},
Location = "West US 2",
NetworkProfile = new AzureNative.HDInsight.Inputs.ClusterPoolResourcePropertiesNetworkProfileArgs
{
EnablePrivateApiServer = true,
SubnetId = "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
},
ResourceGroupName = "hiloResourcegroup",
});
});
package main
import (
hdinsight "github.com/pulumi/pulumi-azure-native-sdk/hdinsight/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hdinsight.NewClusterPool(ctx, "clusterPool", &hdinsight.ClusterPoolArgs{
ClusterPoolName: pulumi.String("clusterpool1"),
ClusterPoolProfile: &hdinsight.ClusterPoolResourcePropertiesClusterPoolProfileArgs{
ClusterPoolVersion: pulumi.String("1.2"),
},
ComputeProfile: &hdinsight.ClusterPoolResourcePropertiesComputeProfileArgs{
AvailabilityZones: pulumi.StringArray{
pulumi.String("1"),
pulumi.String("2"),
pulumi.String("3"),
},
VmSize: pulumi.String("Standard_D3_v2"),
},
Location: pulumi.String("West US 2"),
NetworkProfile: &hdinsight.ClusterPoolResourcePropertiesNetworkProfileArgs{
EnablePrivateApiServer: pulumi.Bool(true),
SubnetId: pulumi.String("/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
},
ResourceGroupName: pulumi.String("hiloResourcegroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.hdinsight.ClusterPool;
import com.pulumi.azurenative.hdinsight.ClusterPoolArgs;
import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgs;
import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesComputeProfileArgs;
import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesNetworkProfileArgs;
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 clusterPool = new ClusterPool("clusterPool", ClusterPoolArgs.builder()
.clusterPoolName("clusterpool1")
.clusterPoolProfile(ClusterPoolResourcePropertiesClusterPoolProfileArgs.builder()
.clusterPoolVersion("1.2")
.build())
.computeProfile(ClusterPoolResourcePropertiesComputeProfileArgs.builder()
.availabilityZones(
"1",
"2",
"3")
.vmSize("Standard_D3_v2")
.build())
.location("West US 2")
.networkProfile(ClusterPoolResourcePropertiesNetworkProfileArgs.builder()
.enablePrivateApiServer(true)
.subnetId("/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1")
.build())
.resourceGroupName("hiloResourcegroup")
.build());
}
}

ClusterPoolPutWithUDRAks

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var clusterPool = new AzureNative.HDInsight.ClusterPool("clusterPool", new()
{
ClusterPoolName = "clusterpool1",
ClusterPoolProfile = new AzureNative.HDInsight.Inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgs
{
ClusterPoolVersion = "1.2",
},
ComputeProfile = new AzureNative.HDInsight.Inputs.ClusterPoolResourcePropertiesComputeProfileArgs
{
AvailabilityZones = new[]
{
"1",
"2",
"3",
},
VmSize = "Standard_D3_v2",
},
Location = "West US 2",
NetworkProfile = new AzureNative.HDInsight.Inputs.ClusterPoolResourcePropertiesNetworkProfileArgs
{
OutboundType = AzureNative.HDInsight.OutboundType.UserDefinedRouting,
SubnetId = "/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
},
ResourceGroupName = "hiloResourcegroup",
});
});
package main
import (
hdinsight "github.com/pulumi/pulumi-azure-native-sdk/hdinsight/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hdinsight.NewClusterPool(ctx, "clusterPool", &hdinsight.ClusterPoolArgs{
ClusterPoolName: pulumi.String("clusterpool1"),
ClusterPoolProfile: &hdinsight.ClusterPoolResourcePropertiesClusterPoolProfileArgs{
ClusterPoolVersion: pulumi.String("1.2"),
},
ComputeProfile: &hdinsight.ClusterPoolResourcePropertiesComputeProfileArgs{
AvailabilityZones: pulumi.StringArray{
pulumi.String("1"),
pulumi.String("2"),
pulumi.String("3"),
},
VmSize: pulumi.String("Standard_D3_v2"),
},
Location: pulumi.String("West US 2"),
NetworkProfile: &hdinsight.ClusterPoolResourcePropertiesNetworkProfileArgs{
OutboundType: pulumi.String(hdinsight.OutboundTypeUserDefinedRouting),
SubnetId: pulumi.String("/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"),
},
ResourceGroupName: pulumi.String("hiloResourcegroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.hdinsight.ClusterPool;
import com.pulumi.azurenative.hdinsight.ClusterPoolArgs;
import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesClusterPoolProfileArgs;
import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesComputeProfileArgs;
import com.pulumi.azurenative.hdinsight.inputs.ClusterPoolResourcePropertiesNetworkProfileArgs;
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 clusterPool = new ClusterPool("clusterPool", ClusterPoolArgs.builder()
.clusterPoolName("clusterpool1")
.clusterPoolProfile(ClusterPoolResourcePropertiesClusterPoolProfileArgs.builder()
.clusterPoolVersion("1.2")
.build())
.computeProfile(ClusterPoolResourcePropertiesComputeProfileArgs.builder()
.availabilityZones(
"1",
"2",
"3")
.vmSize("Standard_D3_v2")
.build())
.location("West US 2")
.networkProfile(ClusterPoolResourcePropertiesNetworkProfileArgs.builder()
.outboundType("userDefinedRouting")
.subnetId("/subscriptions/subid/resourceGroups/hiloResourcegroup/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1")
.build())
.resourceGroupName("hiloResourcegroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:hdinsight:ClusterPool clusterpool1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusterpools/{clusterPoolName}

Constructors

Link copied to clipboard
constructor(clusterPoolName: Output<String>? = null, clusterPoolProfile: Output<ClusterPoolResourcePropertiesClusterPoolProfileArgs>? = null, computeProfile: Output<ClusterPoolResourcePropertiesComputeProfileArgs>? = null, location: Output<String>? = null, logAnalyticsProfile: Output<ClusterPoolResourcePropertiesLogAnalyticsProfileArgs>? = null, managedResourceGroupName: Output<String>? = null, networkProfile: Output<ClusterPoolResourcePropertiesNetworkProfileArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val clusterPoolName: Output<String>? = null

The name of the cluster pool.

Link copied to clipboard
Link copied to clipboard

CLuster pool compute profile.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard

Cluster pool log analytics profile to enable OMS agent for AKS cluster.

Link copied to clipboard
val managedResourceGroupName: Output<String>? = null

A resource group created by RP, to hold the resources created by RP on-behalf of customers. It will also be used to generate aksManagedResourceGroupName by pattern: MC_{managedResourceGroupName}{clusterPoolName}{region}. Please make sure it meets resource group name restriction.

Link copied to clipboard

Cluster pool network profile.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): ClusterPoolArgs