ManagedClusterArgs

data class ManagedClusterArgs(val authentication: Output<ManagedClusterAuthenticationArgs>? = null, val backupServiceEnabled: Output<Boolean>? = null, val clientConnectionPort: Output<Int>? = null, val customFabricSettings: Output<List<ManagedClusterCustomFabricSettingArgs>>? = null, val dnsName: Output<String>? = null, val dnsServiceEnabled: Output<Boolean>? = null, val httpGatewayPort: Output<Int>? = null, val lbRules: Output<List<ManagedClusterLbRuleArgs>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val nodeTypes: Output<List<ManagedClusterNodeTypeArgs>>? = null, val password: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val upgradeWave: Output<String>? = null, val username: Output<String>? = null) : ConvertibleToJava<ManagedClusterArgs>

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

Link copied to clipboard
constructor(authentication: Output<ManagedClusterAuthenticationArgs>? = null, backupServiceEnabled: Output<Boolean>? = null, clientConnectionPort: Output<Int>? = null, customFabricSettings: Output<List<ManagedClusterCustomFabricSettingArgs>>? = null, dnsName: Output<String>? = null, dnsServiceEnabled: Output<Boolean>? = null, httpGatewayPort: Output<Int>? = null, lbRules: Output<List<ManagedClusterLbRuleArgs>>? = null, location: Output<String>? = null, name: Output<String>? = null, nodeTypes: Output<List<ManagedClusterNodeTypeArgs>>? = null, password: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<String>? = null, tags: Output<Map<String, String>>? = null, upgradeWave: Output<String>? = null, username: Output<String>? = null)

Properties

Link copied to clipboard

Controls how connections to the cluster are authenticated. A authentication block as defined below.

Link copied to clipboard
val backupServiceEnabled: Output<Boolean>? = null

If true, backup service is enabled.

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

Port to use when connecting to the cluster.

Link copied to clipboard

One or more custom_fabric_setting blocks as defined below.

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

Hostname for the cluster. If unset the cluster's name will be used..

Link copied to clipboard
val dnsServiceEnabled: Output<Boolean>? = null

If true, DNS service is enabled.

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

Port that should be used by the Service Fabric Explorer to visualize applications and cluster status.

Link copied to clipboard
val lbRules: Output<List<ManagedClusterLbRuleArgs>>? = null

One or more lb_rule blocks as defined below.

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

The Azure Region where the Resource Group should exist. Changing this forces a new Resource Group to be created.

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

The name which should be used for this Resource Group. Changing this forces a new Resource Group to be created.

Link copied to clipboard

One or more node_type blocks as defined below.

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

Administrator password for the VMs that will be created as part of this cluster.

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

The name of the Resource Group where the Resource Group should exist. Changing this forces a new Resource Group to be created.

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

SKU for this cluster. Changing this forces a new resource to be created. Default is Basic, allowed values are either Basic or Standard.

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

A mapping of tags which should be assigned to the Resource Group.

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

Upgrade wave for the fabric runtime. Default is Wave0, allowed value must be one of Wave0, Wave1, or Wave2.

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

Administrator password for the VMs that will be created as part of this cluster.

Functions

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