HybridAksCluster

class HybridAksCluster : KotlinCustomResource

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,
});
});
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
})
}
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());
}
}

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

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 resource ID of the associated cloud services network.

Link copied to clipboard
val clusterId: Output<String>

The resource ID of the Network Cloud cluster hosting the Hybrid AKS cluster.

Link copied to clipboard

The number of control plane node VMs.

Link copied to clipboard

The list of node configurations detailing associated VMs that are part of the control plane nodes of this Hybrid AKS cluster.

Link copied to clipboard

The resource ID of the associated default CNI network.

Link copied to clipboard
val detailedStatus: Output<String>

The more detailed status of this Hybrid AKS cluster.

Link copied to clipboard

The descriptive message about the current detailed status.

Link copied to clipboard

The extended location of the cluster associated with the resource.

Link copied to clipboard

The resource ID of the Hybrid AKS cluster that this additional information is for.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The provisioning state of the Hybrid AKS cluster resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val volumes: Output<List<String>>

The resource IDs of volumes that are attached to the Hybrid AKS cluster.

Link copied to clipboard
val workerCount: Output<Double>

The number of worker node VMs.

Link copied to clipboard

The list of node configurations detailing associated VMs that are part of the worker nodes of this Hybrid AKS cluster.