Hybrid Aks Cluster Args
data class HybridAksClusterArgs(val associatedNetworkIds: Output<List<String>>? = null, val controlPlaneCount: Output<Double>? = null, val extendedLocation: Output<ExtendedLocationArgs>? = null, val hybridAksClusterName: Output<String>? = null, val hybridAksProvisionedClusterId: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val workerCount: Output<Double>? = null) : ConvertibleToJava<HybridAksClusterArgs>
The details are specific to the Network Cloud use of the Hybrid AKS cluster. API Version: 2022-12-12-preview.
Example Usage
Create or update Hybrid AKS provisioned cluster data
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hybridAksCluster = new AzureNative.NetworkCloud.HybridAksCluster("hybridAksCluster", new()
{
AssociatedNetworkIds = new[]
{
"/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName",
},
ControlPlaneCount = 4,
ExtendedLocation = new AzureNative.NetworkCloud.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName",
Type = "CustomLocation",
},
HybridAksClusterName = "hybridAksClusterName",
HybridAksProvisionedClusterId = "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.HybridContainerService/provisionedClusters/hybridAksClusterName",
Location = "location",
ResourceGroupName = "resourceGroupName",
Tags =
{
{ "key1", "myvalue1" },
{ "key2", "myvalue2" },
},
WorkerCount = 8,
});
});
Content copied to clipboard
package main
import (
networkcloud "github.com/pulumi/pulumi-azure-native-sdk/networkcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkcloud.NewHybridAksCluster(ctx, "hybridAksCluster", &networkcloud.HybridAksClusterArgs{
AssociatedNetworkIds: pulumi.StringArray{
pulumi.String("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName"),
},
ControlPlaneCount: pulumi.Float64(4),
ExtendedLocation: &networkcloud.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"),
Type: pulumi.String("CustomLocation"),
},
HybridAksClusterName: pulumi.String("hybridAksClusterName"),
HybridAksProvisionedClusterId: pulumi.String("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.HybridContainerService/provisionedClusters/hybridAksClusterName"),
Location: pulumi.String("location"),
ResourceGroupName: pulumi.String("resourceGroupName"),
Tags: pulumi.StringMap{
"key1": pulumi.String("myvalue1"),
"key2": pulumi.String("myvalue2"),
},
WorkerCount: pulumi.Float64(8),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.networkcloud.HybridAksCluster;
import com.pulumi.azurenative.networkcloud.HybridAksClusterArgs;
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 hybridAksCluster = new HybridAksCluster("hybridAksCluster", HybridAksClusterArgs.builder()
.associatedNetworkIds("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName")
.controlPlaneCount(4)
.extendedLocation(Map.ofEntries(
Map.entry("name", "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"),
Map.entry("type", "CustomLocation")
))
.hybridAksClusterName("hybridAksClusterName")
.hybridAksProvisionedClusterId("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.HybridContainerService/provisionedClusters/hybridAksClusterName")
.location("location")
.resourceGroupName("resourceGroupName")
.tags(Map.ofEntries(
Map.entry("key1", "myvalue1"),
Map.entry("key2", "myvalue2")
))
.workerCount(8)
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:networkcloud:HybridAksCluster HybridAksClusterName /subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/hybridAksClusters/hybridAksClusterName
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(associatedNetworkIds: Output<List<String>>? = null, controlPlaneCount: Output<Double>? = null, extendedLocation: Output<ExtendedLocationArgs>? = null, hybridAksClusterName: Output<String>? = null, hybridAksProvisionedClusterId: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, workerCount: Output<Double>? = null)
Properties
Link copied to clipboard
The list of resource IDs for the workload networks associated with the Hybrid AKS cluster. It can be any of l2Networks, l3Networks, or trunkedNetworks resources. This field will also contain one cloudServicesNetwork and one defaultCniNetwork.
Link copied to clipboard
The number of control plane node VMs.
Link copied to clipboard
The extended location of the cluster associated with the resource.
Link copied to clipboard
The name of the Hybrid AKS cluster.
Link copied to clipboard
The resource ID of the Hybrid AKS cluster that this additional information is for.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
The number of worker node VMs.