ManagedCluster

class ManagedCluster : KotlinCustomResource

The manged cluster resource API Version: 2020-01-01-preview.

Example Usage

Put a cluster with maximum parameters

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managedCluster = new AzureNative.ServiceFabric.ManagedCluster("managedCluster", new()
{
AdminPassword = "{vm-password}",
AdminUserName = "vmadmin",
ClientConnectionPort = 19000,
ClusterCodeVersion = "7.1.168.9494",
ClusterName = "myCluster",
DnsName = "myCluster",
FabricSettings = new[]
{
new AzureNative.ServiceFabric.Inputs.SettingsSectionDescriptionArgs
{
Name = "ManagedIdentityTokenService",
Parameters = new[]
{
new AzureNative.ServiceFabric.Inputs.SettingsParameterDescriptionArgs
{
Name = "IsEnabled",
Value = "true",
},
},
},
},
HttpGatewayConnectionPort = 19080,
LoadBalancingRules = new[]
{
new AzureNative.ServiceFabric.Inputs.LoadBalancingRuleArgs
{
BackendPort = 80,
FrontendPort = 80,
ProbeProtocol = "http",
Protocol = "http",
},
new AzureNative.ServiceFabric.Inputs.LoadBalancingRuleArgs
{
BackendPort = 443,
FrontendPort = 443,
ProbeProtocol = "http",
Protocol = "http",
},
new AzureNative.ServiceFabric.Inputs.LoadBalancingRuleArgs
{
BackendPort = 10000,
FrontendPort = 10000,
ProbeProtocol = "http",
Protocol = "tcp",
},
},
Location = "eastus",
ResourceGroupName = "resRg",
Sku = new AzureNative.ServiceFabric.Inputs.SkuArgs
{
Name = "Basic",
},
Tags = null,
});
});
package main
import (
servicefabric "github.com/pulumi/pulumi-azure-native-sdk/servicefabric"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicefabric.NewManagedCluster(ctx, "managedCluster", &servicefabric.ManagedClusterArgs{
AdminPassword: pulumi.String("{vm-password}"),
AdminUserName: pulumi.String("vmadmin"),
ClientConnectionPort: pulumi.Int(19000),
ClusterCodeVersion: pulumi.String("7.1.168.9494"),
ClusterName: pulumi.String("myCluster"),
DnsName: pulumi.String("myCluster"),
FabricSettings: []servicefabric.SettingsSectionDescriptionArgs{
{
Name: pulumi.String("ManagedIdentityTokenService"),
Parameters: servicefabric.SettingsParameterDescriptionArray{
{
Name: pulumi.String("IsEnabled"),
Value: pulumi.String("true"),
},
},
},
},
HttpGatewayConnectionPort: pulumi.Int(19080),
LoadBalancingRules: []servicefabric.LoadBalancingRuleArgs{
{
BackendPort: pulumi.Int(80),
FrontendPort: pulumi.Int(80),
ProbeProtocol: pulumi.String("http"),
Protocol: pulumi.String("http"),
},
{
BackendPort: pulumi.Int(443),
FrontendPort: pulumi.Int(443),
ProbeProtocol: pulumi.String("http"),
Protocol: pulumi.String("http"),
},
{
BackendPort: pulumi.Int(10000),
FrontendPort: pulumi.Int(10000),
ProbeProtocol: pulumi.String("http"),
Protocol: pulumi.String("tcp"),
},
},
Location: pulumi.String("eastus"),
ResourceGroupName: pulumi.String("resRg"),
Sku: &servicefabric.SkuArgs{
Name: pulumi.String("Basic"),
},
Tags: nil,
})
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.servicefabric.ManagedCluster;
import com.pulumi.azurenative.servicefabric.ManagedClusterArgs;
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 managedCluster = new ManagedCluster("managedCluster", ManagedClusterArgs.builder()
.adminPassword("{vm-password}")
.adminUserName("vmadmin")
.clientConnectionPort(19000)
.clusterCodeVersion("7.1.168.9494")
.clusterName("myCluster")
.dnsName("myCluster")
.fabricSettings(Map.ofEntries(
Map.entry("name", "ManagedIdentityTokenService"),
Map.entry("parameters", Map.ofEntries(
Map.entry("name", "IsEnabled"),
Map.entry("value", "true")
))
))
.httpGatewayConnectionPort(19080)
.loadBalancingRules(
Map.ofEntries(
Map.entry("backendPort", 80),
Map.entry("frontendPort", 80),
Map.entry("probeProtocol", "http"),
Map.entry("protocol", "http")
),
Map.ofEntries(
Map.entry("backendPort", 443),
Map.entry("frontendPort", 443),
Map.entry("probeProtocol", "http"),
Map.entry("protocol", "http")
),
Map.ofEntries(
Map.entry("backendPort", 10000),
Map.entry("frontendPort", 10000),
Map.entry("probeProtocol", "http"),
Map.entry("protocol", "tcp")
))
.location("eastus")
.resourceGroupName("resRg")
.sku(Map.of("name", "Basic"))
.tags()
.build());
}
}

Put a cluster with minimum parameters

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managedCluster = new AzureNative.ServiceFabric.ManagedCluster("managedCluster", new()
{
AdminPassword = "{vm-password}",
AdminUserName = "vmadmin",
ClusterCodeVersion = "7.1.168.9494",
ClusterName = "myCluster",
DnsName = "myCluster",
FabricSettings = new[]
{
new AzureNative.ServiceFabric.Inputs.SettingsSectionDescriptionArgs
{
Name = "ManagedIdentityTokenService",
Parameters = new[]
{
new AzureNative.ServiceFabric.Inputs.SettingsParameterDescriptionArgs
{
Name = "IsEnabled",
Value = "true",
},
},
},
},
Location = "eastus",
ResourceGroupName = "resRg",
});
});
package main
import (
servicefabric "github.com/pulumi/pulumi-azure-native-sdk/servicefabric"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicefabric.NewManagedCluster(ctx, "managedCluster", &servicefabric.ManagedClusterArgs{
AdminPassword: pulumi.String("{vm-password}"),
AdminUserName: pulumi.String("vmadmin"),
ClusterCodeVersion: pulumi.String("7.1.168.9494"),
ClusterName: pulumi.String("myCluster"),
DnsName: pulumi.String("myCluster"),
FabricSettings: []servicefabric.SettingsSectionDescriptionArgs{
{
Name: pulumi.String("ManagedIdentityTokenService"),
Parameters: servicefabric.SettingsParameterDescriptionArray{
{
Name: pulumi.String("IsEnabled"),
Value: pulumi.String("true"),
},
},
},
},
Location: pulumi.String("eastus"),
ResourceGroupName: pulumi.String("resRg"),
})
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.servicefabric.ManagedCluster;
import com.pulumi.azurenative.servicefabric.ManagedClusterArgs;
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 managedCluster = new ManagedCluster("managedCluster", ManagedClusterArgs.builder()
.adminPassword("{vm-password}")
.adminUserName("vmadmin")
.clusterCodeVersion("7.1.168.9494")
.clusterName("myCluster")
.dnsName("myCluster")
.fabricSettings(Map.ofEntries(
Map.entry("name", "ManagedIdentityTokenService"),
Map.entry("parameters", Map.ofEntries(
Map.entry("name", "IsEnabled"),
Map.entry("value", "true")
))
))
.location("eastus")
.resourceGroupName("resRg")
.build());
}
}

Import

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

$ pulumi import azure-native:servicefabric:ManagedCluster myCluster /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/managedClusters/myCluster

Properties

Link copied to clipboard
val addonFeatures: Output<List<String>>?

client certificates for the cluster.

Link copied to clipboard
val adminPassword: Output<String>?

vm admin user password.

Link copied to clipboard
val adminUserName: Output<String>

vm admin user name.

Link copied to clipboard

Azure active directory.

Link copied to clipboard

The port used for client connections to the cluster.

Link copied to clipboard

client certificates for the cluster.

Link copied to clipboard

The cluster certificate thumbprint used node to node communication.

Link copied to clipboard

The Service Fabric runtime version of the cluster. This property can only by set the user when upgradeMode is set to 'Manual'. To get list of available Service Fabric versions for new clusters use ./ClusterVersion.md. To get the list of available version for existing clusters use availableClusterVersions.

Link copied to clipboard
val clusterId: Output<String>

A service generated unique identifier for the cluster resource.

Link copied to clipboard
val clusterState: Output<String>

The current state of the cluster.

Link copied to clipboard
val dnsName: Output<String>

The cluster dns name.

Link copied to clipboard
val etag: Output<String>

Azure resource etag.

Link copied to clipboard

The list of custom fabric settings to configure the cluster.

Link copied to clipboard
val fqdn: Output<String>

the cluster Fully qualified domain name.

Link copied to clipboard

The port used for http connections to the cluster.

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

Describes load balancing rules.

Link copied to clipboard
val location: Output<String>

Azure resource location.

Link copied to clipboard
val name: Output<String>

Azure resource name.

Link copied to clipboard

The provisioning state of the managed cluster resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sku: Output<SkuResponse>?

The sku of the managed cluster

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

Azure resource tags.

Link copied to clipboard
val type: Output<String>

Azure resource type.

Link copied to clipboard
val urn: Output<String>