ManagedClusterArgs

data class ManagedClusterArgs(val addonFeatures: Output<List<String>>? = null, val adminPassword: Output<String>? = null, val adminUserName: Output<String>? = null, val azureActiveDirectory: Output<AzureActiveDirectoryArgs>? = null, val clientConnectionPort: Output<Int>? = null, val clients: Output<List<ClientCertificateArgs>>? = null, val clusterCodeVersion: Output<String>? = null, val clusterName: Output<String>? = null, val dnsName: Output<String>? = null, val fabricSettings: Output<List<SettingsSectionDescriptionArgs>>? = null, val httpGatewayConnectionPort: Output<Int>? = null, val loadBalancingRules: Output<List<LoadBalancingRuleArgs>>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ManagedClusterArgs>

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

Constructors

Link copied to clipboard
constructor(addonFeatures: Output<List<String>>? = null, adminPassword: Output<String>? = null, adminUserName: Output<String>? = null, azureActiveDirectory: Output<AzureActiveDirectoryArgs>? = null, clientConnectionPort: Output<Int>? = null, clients: Output<List<ClientCertificateArgs>>? = null, clusterCodeVersion: Output<String>? = null, clusterName: Output<String>? = null, dnsName: Output<String>? = null, fabricSettings: Output<List<SettingsSectionDescriptionArgs>>? = null, httpGatewayConnectionPort: Output<Int>? = null, loadBalancingRules: Output<List<LoadBalancingRuleArgs>>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

client certificates for the cluster.

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

vm admin user password.

Link copied to clipboard
val adminUserName: Output<String>? = null

vm admin user name.

Link copied to clipboard

Azure active directory.

Link copied to clipboard
val clientConnectionPort: Output<Int>? = null

The port used for client connections to the cluster.

Link copied to clipboard
val clients: Output<List<ClientCertificateArgs>>? = null

client certificates for the cluster.

Link copied to clipboard
val clusterCodeVersion: Output<String>? = null

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 clusterName: Output<String>? = null

The name of the cluster resource.

Link copied to clipboard
val dnsName: Output<String>? = null

The cluster dns name.

Link copied to clipboard

The list of custom fabric settings to configure the cluster.

Link copied to clipboard
val httpGatewayConnectionPort: Output<Int>? = null

The port used for http connections to the cluster.

Link copied to clipboard

Describes load balancing rules.

Link copied to clipboard
val location: Output<String>? = null

Azure resource location.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val sku: Output<SkuArgs>? = null

The sku of the managed cluster

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

Azure resource tags.

Functions

Link copied to clipboard
open override fun toJava(): ManagedClusterArgs