1. Packages
  2. Azure Classic
  3. API Docs
  4. avs
  5. Cluster

We recommend using Azure Native.

Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi

azure.avs.Cluster

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi

    Manages a VMware Cluster.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
        {
            Location = "West Europe",
        });
    
        var examplePrivateCloud = new Azure.Avs.PrivateCloud("examplePrivateCloud", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            SkuName = "av36",
            ManagementCluster = new Azure.Avs.Inputs.PrivateCloudManagementClusterArgs
            {
                Size = 3,
            },
            NetworkSubnetCidr = "192.168.48.0/22",
            InternetConnectionEnabled = false,
            NsxtPassword = "QazWsx13$Edc",
            VcenterPassword = "WsxEdc23$Rfv",
        });
    
        var exampleCluster = new Azure.Avs.Cluster("exampleCluster", new()
        {
            VmwareCloudId = examplePrivateCloud.Id,
            ClusterNodeCount = 3,
            SkuName = "av36",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/avs"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		examplePrivateCloud, err := avs.NewPrivateCloud(ctx, "examplePrivateCloud", &avs.PrivateCloudArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    			SkuName:           pulumi.String("av36"),
    			ManagementCluster: &avs.PrivateCloudManagementClusterArgs{
    				Size: pulumi.Int(3),
    			},
    			NetworkSubnetCidr:         pulumi.String("192.168.48.0/22"),
    			InternetConnectionEnabled: pulumi.Bool(false),
    			NsxtPassword:              pulumi.String("QazWsx13$Edc"),
    			VcenterPassword:           pulumi.String("WsxEdc23$Rfv"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = avs.NewCluster(ctx, "exampleCluster", &avs.ClusterArgs{
    			VmwareCloudId:    examplePrivateCloud.ID(),
    			ClusterNodeCount: pulumi.Int(3),
    			SkuName:          pulumi.String("av36"),
    		})
    		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.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.avs.PrivateCloud;
    import com.pulumi.azure.avs.PrivateCloudArgs;
    import com.pulumi.azure.avs.inputs.PrivateCloudManagementClusterArgs;
    import com.pulumi.azure.avs.Cluster;
    import com.pulumi.azure.avs.ClusterArgs;
    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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
                .location("West Europe")
                .build());
    
            var examplePrivateCloud = new PrivateCloud("examplePrivateCloud", PrivateCloudArgs.builder()        
                .resourceGroupName(exampleResourceGroup.name())
                .location(exampleResourceGroup.location())
                .skuName("av36")
                .managementCluster(PrivateCloudManagementClusterArgs.builder()
                    .size(3)
                    .build())
                .networkSubnetCidr("192.168.48.0/22")
                .internetConnectionEnabled(false)
                .nsxtPassword("QazWsx13$Edc")
                .vcenterPassword("WsxEdc23$Rfv")
                .build());
    
            var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()        
                .vmwareCloudId(examplePrivateCloud.id())
                .clusterNodeCount(3)
                .skuName("av36")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_private_cloud = azure.avs.PrivateCloud("examplePrivateCloud",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        sku_name="av36",
        management_cluster=azure.avs.PrivateCloudManagementClusterArgs(
            size=3,
        ),
        network_subnet_cidr="192.168.48.0/22",
        internet_connection_enabled=False,
        nsxt_password="QazWsx13$Edc",
        vcenter_password="WsxEdc23$Rfv")
    example_cluster = azure.avs.Cluster("exampleCluster",
        vmware_cloud_id=example_private_cloud.id,
        cluster_node_count=3,
        sku_name="av36")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const examplePrivateCloud = new azure.avs.PrivateCloud("examplePrivateCloud", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        skuName: "av36",
        managementCluster: {
            size: 3,
        },
        networkSubnetCidr: "192.168.48.0/22",
        internetConnectionEnabled: false,
        nsxtPassword: "QazWsx13$Edc",
        vcenterPassword: "WsxEdc23$Rfv",
    });
    const exampleCluster = new azure.avs.Cluster("exampleCluster", {
        vmwareCloudId: examplePrivateCloud.id,
        clusterNodeCount: 3,
        skuName: "av36",
    });
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        properties:
          location: West Europe
      examplePrivateCloud:
        type: azure:avs:PrivateCloud
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          skuName: av36
          managementCluster:
            size: 3
          networkSubnetCidr: 192.168.48.0/22
          internetConnectionEnabled: false
          nsxtPassword: QazWsx13$Edc
          vcenterPassword: WsxEdc23$Rfv
      exampleCluster:
        type: azure:avs:Cluster
        properties:
          vmwareCloudId: ${examplePrivateCloud.id}
          clusterNodeCount: 3
          skuName: av36
    

    Create Cluster Resource

    new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
    @overload
    def Cluster(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                cluster_node_count: Optional[int] = None,
                name: Optional[str] = None,
                sku_name: Optional[str] = None,
                vmware_cloud_id: Optional[str] = None)
    @overload
    def Cluster(resource_name: str,
                args: ClusterArgs,
                opts: Optional[ResourceOptions] = None)
    func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
    public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
    public Cluster(String name, ClusterArgs args)
    public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
    
    type: azure:avs:Cluster
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Cluster Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Cluster resource accepts the following input properties:

    ClusterNodeCount int

    The count of the VMware Cluster nodes.

    SkuName string

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    VmwareCloudId string

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    Name string

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    ClusterNodeCount int

    The count of the VMware Cluster nodes.

    SkuName string

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    VmwareCloudId string

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    Name string

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    clusterNodeCount Integer

    The count of the VMware Cluster nodes.

    skuName String

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    vmwareCloudId String

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    name String

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    clusterNodeCount number

    The count of the VMware Cluster nodes.

    skuName string

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    vmwareCloudId string

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    name string

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    cluster_node_count int

    The count of the VMware Cluster nodes.

    sku_name str

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    vmware_cloud_id str

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    name str

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    clusterNodeCount Number

    The count of the VMware Cluster nodes.

    skuName String

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    vmwareCloudId String

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    name String

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:

    ClusterNumber int

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    Hosts List<string>

    A list of host of the VMware Cluster.

    Id string

    The provider-assigned unique ID for this managed resource.

    ClusterNumber int

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    Hosts []string

    A list of host of the VMware Cluster.

    Id string

    The provider-assigned unique ID for this managed resource.

    clusterNumber Integer

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    hosts List<String>

    A list of host of the VMware Cluster.

    id String

    The provider-assigned unique ID for this managed resource.

    clusterNumber number

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    hosts string[]

    A list of host of the VMware Cluster.

    id string

    The provider-assigned unique ID for this managed resource.

    cluster_number int

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    hosts Sequence[str]

    A list of host of the VMware Cluster.

    id str

    The provider-assigned unique ID for this managed resource.

    clusterNumber Number

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    hosts List<String>

    A list of host of the VMware Cluster.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing Cluster Resource

    Get an existing Cluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ClusterState, opts?: CustomResourceOptions): Cluster
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_node_count: Optional[int] = None,
            cluster_number: Optional[int] = None,
            hosts: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            sku_name: Optional[str] = None,
            vmware_cloud_id: Optional[str] = None) -> Cluster
    func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)
    public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)
    public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClusterNodeCount int

    The count of the VMware Cluster nodes.

    ClusterNumber int

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    Hosts List<string>

    A list of host of the VMware Cluster.

    Name string

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    SkuName string

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    VmwareCloudId string

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    ClusterNodeCount int

    The count of the VMware Cluster nodes.

    ClusterNumber int

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    Hosts []string

    A list of host of the VMware Cluster.

    Name string

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    SkuName string

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    VmwareCloudId string

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    clusterNodeCount Integer

    The count of the VMware Cluster nodes.

    clusterNumber Integer

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    hosts List<String>

    A list of host of the VMware Cluster.

    name String

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    skuName String

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    vmwareCloudId String

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    clusterNodeCount number

    The count of the VMware Cluster nodes.

    clusterNumber number

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    hosts string[]

    A list of host of the VMware Cluster.

    name string

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    skuName string

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    vmwareCloudId string

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    cluster_node_count int

    The count of the VMware Cluster nodes.

    cluster_number int

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    hosts Sequence[str]

    A list of host of the VMware Cluster.

    name str

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    sku_name str

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    vmware_cloud_id str

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    clusterNodeCount Number

    The count of the VMware Cluster nodes.

    clusterNumber Number

    A number that identifies this VMware Cluster in its VMware Private Cloud.

    hosts List<String>

    A list of host of the VMware Cluster.

    name String

    The name which should be used for this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    skuName String

    The cluster SKU to use. Possible values are av20, av36, av36t, av36p and av52. Changing this forces a new VMware Cluster to be created.

    vmwareCloudId String

    The ID of the VMware Private Cloud in which to create this VMware Cluster. Changing this forces a new VMware Cluster to be created.

    Import

    VMware Clusters can be imported using the resource id, e.g.

     $ pulumi import azure:avs/cluster:Cluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AVS/privateClouds/privateCloud1/clusters/cluster1
    

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the azurerm Terraform Provider.

    azure logo

    We recommend using Azure Native.

    Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi