Managed Cluster Args
Manages a Resource Group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.servicefabric.ManagedCluster("example", {
name: "example",
resourceGroupName: "example",
location: "West Europe",
httpGatewayPort: 4567,
lbRules: [{
backendPort: 38080,
frontendPort: 80,
probeProtocol: "http",
probeRequestPath: "/test",
protocol: "tcp",
}],
clientConnectionPort: 12345,
nodeTypes: [{
dataDiskSizeGb: 130,
name: "test1",
primary: true,
applicationPortRange: "30000-49000",
ephemeralPortRange: "10000-20000",
vmSize: "Standard_DS1_v2",
vmImagePublisher: "MicrosoftWindowsServer",
vmImageSku: "2019-Datacenter-with-Containers",
vmImageOffer: "WindowsServer",
vmImageVersion: "latest",
vmInstanceCount: 5,
}],
});
import pulumi
import pulumi_azure as azure
example = azure.servicefabric.ManagedCluster("example",
name="example",
resource_group_name="example",
location="West Europe",
http_gateway_port=4567,
lb_rules=[{
"backend_port": 38080,
"frontend_port": 80,
"probe_protocol": "http",
"probe_request_path": "/test",
"protocol": "tcp",
}],
client_connection_port=12345,
node_types=[{
"data_disk_size_gb": 130,
"name": "test1",
"primary": True,
"application_port_range": "30000-49000",
"ephemeral_port_range": "10000-20000",
"vm_size": "Standard_DS1_v2",
"vm_image_publisher": "MicrosoftWindowsServer",
"vm_image_sku": "2019-Datacenter-with-Containers",
"vm_image_offer": "WindowsServer",
"vm_image_version": "latest",
"vm_instance_count": 5,
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.ServiceFabric.ManagedCluster("example", new()
{
Name = "example",
ResourceGroupName = "example",
Location = "West Europe",
HttpGatewayPort = 4567,
LbRules = new[]
{
new Azure.ServiceFabric.Inputs.ManagedClusterLbRuleArgs
{
BackendPort = 38080,
FrontendPort = 80,
ProbeProtocol = "http",
ProbeRequestPath = "/test",
Protocol = "tcp",
},
},
ClientConnectionPort = 12345,
NodeTypes = new[]
{
new Azure.ServiceFabric.Inputs.ManagedClusterNodeTypeArgs
{
DataDiskSizeGb = 130,
Name = "test1",
Primary = true,
ApplicationPortRange = "30000-49000",
EphemeralPortRange = "10000-20000",
VmSize = "Standard_DS1_v2",
VmImagePublisher = "MicrosoftWindowsServer",
VmImageSku = "2019-Datacenter-with-Containers",
VmImageOffer = "WindowsServer",
VmImageVersion = "latest",
VmInstanceCount = 5,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/servicefabric"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicefabric.NewManagedCluster(ctx, "example", &servicefabric.ManagedClusterArgs{
Name: pulumi.String("example"),
ResourceGroupName: pulumi.String("example"),
Location: pulumi.String("West Europe"),
HttpGatewayPort: pulumi.Int(4567),
LbRules: servicefabric.ManagedClusterLbRuleArray{
&servicefabric.ManagedClusterLbRuleArgs{
BackendPort: pulumi.Int(38080),
FrontendPort: pulumi.Int(80),
ProbeProtocol: pulumi.String("http"),
ProbeRequestPath: pulumi.String("/test"),
Protocol: pulumi.String("tcp"),
},
},
ClientConnectionPort: pulumi.Int(12345),
NodeTypes: servicefabric.ManagedClusterNodeTypeArray{
&servicefabric.ManagedClusterNodeTypeArgs{
DataDiskSizeGb: pulumi.Int(130),
Name: pulumi.String("test1"),
Primary: pulumi.Bool(true),
ApplicationPortRange: pulumi.String("30000-49000"),
EphemeralPortRange: pulumi.String("10000-20000"),
VmSize: pulumi.String("Standard_DS1_v2"),
VmImagePublisher: pulumi.String("MicrosoftWindowsServer"),
VmImageSku: pulumi.String("2019-Datacenter-with-Containers"),
VmImageOffer: pulumi.String("WindowsServer"),
VmImageVersion: pulumi.String("latest"),
VmInstanceCount: pulumi.Int(5),
},
},
})
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.azure.servicefabric.ManagedCluster;
import com.pulumi.azure.servicefabric.ManagedClusterArgs;
import com.pulumi.azure.servicefabric.inputs.ManagedClusterLbRuleArgs;
import com.pulumi.azure.servicefabric.inputs.ManagedClusterNodeTypeArgs;
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 example = new ManagedCluster("example", ManagedClusterArgs.builder()
.name("example")
.resourceGroupName("example")
.location("West Europe")
.httpGatewayPort(4567)
.lbRules(ManagedClusterLbRuleArgs.builder()
.backendPort(38080)
.frontendPort(80)
.probeProtocol("http")
.probeRequestPath("/test")
.protocol("tcp")
.build())
.clientConnectionPort(12345)
.nodeTypes(ManagedClusterNodeTypeArgs.builder()
.dataDiskSizeGb(130)
.name("test1")
.primary(true)
.applicationPortRange("30000-49000")
.ephemeralPortRange("10000-20000")
.vmSize("Standard_DS1_v2")
.vmImagePublisher("MicrosoftWindowsServer")
.vmImageSku("2019-Datacenter-with-Containers")
.vmImageOffer("WindowsServer")
.vmImageVersion("latest")
.vmInstanceCount(5)
.build())
.build());
}
}
resources:
example:
type: azure:servicefabric:ManagedCluster
properties:
name: example
resourceGroupName: example
location: West Europe
httpGatewayPort: 4567
lbRules:
- backendPort: 38080
frontendPort: 80
probeProtocol: http
probeRequestPath: /test
protocol: tcp
clientConnectionPort: 12345
nodeTypes:
- dataDiskSizeGb: 130
name: test1
primary: true
applicationPortRange: 30000-49000
ephemeralPortRange: 10000-20000
vmSize: Standard_DS1_v2
vmImagePublisher: MicrosoftWindowsServer
vmImageSku: 2019-Datacenter-with-Containers
vmImageOffer: WindowsServer
vmImageVersion: latest
vmInstanceCount: 5
Import
Resource Groups can be imported using the resource id
, e.g.
$ pulumi import azure:servicefabric/managedCluster:ManagedCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.ServiceFabric/managedClusters/clusterName1
Constructors
Properties
Controls how connections to the cluster are authenticated. A authentication
block as defined below.
If true, backup service is enabled.
Port to use when connecting to the cluster.
One or more custom_fabric_setting
blocks as defined below.
If true, DNS service is enabled.
Port that should be used by the Service Fabric Explorer to visualize applications and cluster status.
One or more lb_rule
blocks as defined below.
One or more node_type
blocks as defined below.
The name of the Resource Group where the Resource Group should exist. Changing this forces a new Resource Group to be created.
Upgrade wave for the fabric runtime. Default is Wave0
, allowed value must be one of Wave0
, Wave1
, or Wave2
.