ProvisionedCluster

The provisionedClusters resource definition. API Version: 2022-05-01-preview.

Example Usage

PutProvisionedCluster

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var provisionedCluster = new AzureNative.HybridContainerService.ProvisionedCluster("provisionedCluster", new()
{
ExtendedLocation = new AzureNative.HybridContainerService.Inputs.ProvisionedClustersExtendedLocationArgs
{
Name = "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation",
Type = "CustomLocation",
},
Location = "westus",
Properties = new AzureNative.HybridContainerService.Inputs.ProvisionedClustersAllPropertiesArgs
{
AgentPoolProfiles = new[]
{
new AzureNative.HybridContainerService.Inputs.NamedAgentPoolProfileArgs
{
Count = 1,
Name = "default-nodepool-1",
OsType = "Linux",
VmSize = "Standard_A4_v2",
},
},
CloudProviderProfile = new AzureNative.HybridContainerService.Inputs.CloudProviderProfileArgs
{
InfraNetworkProfile = new AzureNative.HybridContainerService.Inputs.CloudProviderProfileInfraNetworkProfileArgs
{
VnetSubnetIds = new[]
{
"/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/virtualNetworks/test-vnet-static",
},
},
InfraStorageProfile = new AzureNative.HybridContainerService.Inputs.CloudProviderProfileInfraStorageProfileArgs
{
StorageSpaceIds = new[]
{
"/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/storageSpaces/test-storage",
},
},
},
ControlPlane = new AzureNative.HybridContainerService.Inputs.ControlPlaneProfileArgs
{
Count = 1,
LinuxProfile = new AzureNative.HybridContainerService.Inputs.LinuxProfilePropertiesArgs
{
Ssh = new AzureNative.HybridContainerService.Inputs.LinuxProfilePropertiesSshArgs
{
PublicKeys = new[]
{
new AzureNative.HybridContainerService.Inputs.LinuxProfilePropertiesPublicKeysArgs
{
KeyData = "ssh-rsa AAAAB1NzaC1yc2EAAAADAQABAAACAQCY......",
},
},
},
},
OsType = "Linux",
VmSize = "Standard_A4_v2",
},
KubernetesVersion = "v1.20.5",
LinuxProfile = new AzureNative.HybridContainerService.Inputs.LinuxProfilePropertiesArgs
{
Ssh = new AzureNative.HybridContainerService.Inputs.LinuxProfilePropertiesSshArgs
{
PublicKeys = new[]
{
new AzureNative.HybridContainerService.Inputs.LinuxProfilePropertiesPublicKeysArgs
{
KeyData = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCY.......",
},
},
},
},
NetworkProfile = new AzureNative.HybridContainerService.Inputs.NetworkProfileArgs
{
LoadBalancerProfile = new AzureNative.HybridContainerService.Inputs.LoadBalancerProfileArgs
{
Count = 1,
LinuxProfile = new AzureNative.HybridContainerService.Inputs.LinuxProfilePropertiesArgs
{
Ssh = new AzureNative.HybridContainerService.Inputs.LinuxProfilePropertiesSshArgs
{
PublicKeys = new[]
{
new AzureNative.HybridContainerService.Inputs.LinuxProfilePropertiesPublicKeysArgs
{
KeyData = "ssh-rsa AAAAB2NzaC1yc2EAAAADAQABAAACAQCY......",
},
},
},
},
OsType = "Linux",
VmSize = "Standard_K8S3_v1",
},
LoadBalancerSku = "unstacked-haproxy",
NetworkPolicy = "calico",
PodCidr = "10.244.0.0/16",
},
},
ProvisionedClustersName = "test-hybridakscluster",
ResourceGroupName = "test-arcappliance-resgrp",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.hybridcontainerservice.ProvisionedCluster;
import com.pulumi.azurenative.hybridcontainerservice.ProvisionedClusterArgs;
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 provisionedCluster = new ProvisionedCluster("provisionedCluster", ProvisionedClusterArgs.builder()
.extendedLocation(Map.ofEntries(
Map.entry("name", "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation"),
Map.entry("type", "CustomLocation")
))
.location("westus")
.properties(Map.ofEntries(
Map.entry("agentPoolProfiles", Map.ofEntries(
Map.entry("count", 1),
Map.entry("name", "default-nodepool-1"),
Map.entry("osType", "Linux"),
Map.entry("vmSize", "Standard_A4_v2")
)),
Map.entry("cloudProviderProfile", Map.ofEntries(
Map.entry("infraNetworkProfile", Map.of("vnetSubnetIds", "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/virtualNetworks/test-vnet-static")),
Map.entry("infraStorageProfile", Map.of("storageSpaceIds", "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/storageSpaces/test-storage"))
)),
Map.entry("controlPlane", Map.ofEntries(
Map.entry("count", 1),
Map.entry("linuxProfile", Map.of("ssh", Map.of("publicKeys", Map.of("keyData", "ssh-rsa AAAAB1NzaC1yc2EAAAADAQABAAACAQCY......")))),
Map.entry("osType", "Linux"),
Map.entry("vmSize", "Standard_A4_v2")
)),
Map.entry("kubernetesVersion", "v1.20.5"),
Map.entry("linuxProfile", Map.of("ssh", Map.of("publicKeys", Map.of("keyData", "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCY.......")))),
Map.entry("networkProfile", Map.ofEntries(
Map.entry("loadBalancerProfile", Map.ofEntries(
Map.entry("count", 1),
Map.entry("linuxProfile", Map.of("ssh", Map.of("publicKeys", Map.of("keyData", "ssh-rsa AAAAB2NzaC1yc2EAAAADAQABAAACAQCY......")))),
Map.entry("osType", "Linux"),
Map.entry("vmSize", "Standard_K8S3_v1")
)),
Map.entry("loadBalancerSku", "unstacked-haproxy"),
Map.entry("networkPolicy", "calico"),
Map.entry("podCidr", "10.244.0.0/16")
))
))
.provisionedClustersName("test-hybridakscluster")
.resourceGroupName("test-arcappliance-resgrp")
.build());
}
}

Import

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

$ pulumi import azure-native:hybridcontainerservice:ProvisionedCluster myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridContainerService/provisionedClusters/{provisionedClustersName}

Properties

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

Identity for the Provisioned cluster.

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
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

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>