Provisioned Cluster
The provisionedClusters resource definition. API Version: 2022-05-01-preview.
Example Usage
PutProvisionedCluster
using System.Collections.Generic;
using System.Linq;
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",
});
});
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard