Managed Cluster
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
client certificates for the cluster.
vm admin user password.
vm admin user name.
Azure active directory.
The port used for client connections to the cluster.
client certificates for the cluster.
The cluster certificate thumbprint used node to node communication.
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.
The current state of the cluster.
The list of custom fabric settings to configure the cluster.
The port used for http connections to the cluster.
Describes load balancing rules.
The provisioning state of the managed cluster resource.
The sku of the managed cluster