azure.kusto.ClusterManagedPrivateEndpoint

Explore with Pulumi AI

Manages a Managed Private Endpoint for a Kusto Cluster.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var current = Azure.Core.GetClientConfig.Invoke();

    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleCluster = new Azure.Kusto.Cluster("exampleCluster", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
        Sku = new Azure.Kusto.Inputs.ClusterSkuArgs
        {
            Name = "Dev(No SLA)_Standard_D11_v2",
            Capacity = 1,
        },
    });

    var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });

    var exampleClusterManagedPrivateEndpoint = new Azure.Kusto.ClusterManagedPrivateEndpoint("exampleClusterManagedPrivateEndpoint", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        ClusterName = exampleCluster.Name,
        PrivateLinkResourceId = exampleAccount.Id,
        PrivateLinkResourceRegion = exampleAccount.Location,
        GroupId = "blob",
        RequestMessage = "Please Approve",
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/kusto"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := core.GetClientConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleCluster, err := kusto.NewCluster(ctx, "exampleCluster", &kusto.ClusterArgs{
			Location:          exampleResourceGroup.Location,
			ResourceGroupName: exampleResourceGroup.Name,
			Sku: &kusto.ClusterSkuArgs{
				Name:     pulumi.String("Dev(No SLA)_Standard_D11_v2"),
				Capacity: pulumi.Int(1),
			},
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		_, err = kusto.NewClusterManagedPrivateEndpoint(ctx, "exampleClusterManagedPrivateEndpoint", &kusto.ClusterManagedPrivateEndpointArgs{
			ResourceGroupName:         exampleResourceGroup.Name,
			ClusterName:               exampleCluster.Name,
			PrivateLinkResourceId:     exampleAccount.ID(),
			PrivateLinkResourceRegion: exampleAccount.Location,
			GroupId:                   pulumi.String("blob"),
			RequestMessage:            pulumi.String("Please Approve"),
		})
		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.CoreFunctions;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.kusto.Cluster;
import com.pulumi.azure.kusto.ClusterArgs;
import com.pulumi.azure.kusto.inputs.ClusterSkuArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.kusto.ClusterManagedPrivateEndpoint;
import com.pulumi.azure.kusto.ClusterManagedPrivateEndpointArgs;
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) {
        final var current = CoreFunctions.getClientConfig();

        var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleCluster = new Cluster("exampleCluster", ClusterArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .sku(ClusterSkuArgs.builder()
                .name("Dev(No SLA)_Standard_D11_v2")
                .capacity(1)
                .build())
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .accountTier("Standard")
            .accountReplicationType("LRS")
            .build());

        var exampleClusterManagedPrivateEndpoint = new ClusterManagedPrivateEndpoint("exampleClusterManagedPrivateEndpoint", ClusterManagedPrivateEndpointArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .clusterName(exampleCluster.name())
            .privateLinkResourceId(exampleAccount.id())
            .privateLinkResourceRegion(exampleAccount.location())
            .groupId("blob")
            .requestMessage("Please Approve")
            .build());

    }
}
import pulumi
import pulumi_azure as azure

current = azure.core.get_client_config()
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_cluster = azure.kusto.Cluster("exampleCluster",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    sku=azure.kusto.ClusterSkuArgs(
        name="Dev(No SLA)_Standard_D11_v2",
        capacity=1,
    ))
example_account = azure.storage.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="LRS")
example_cluster_managed_private_endpoint = azure.kusto.ClusterManagedPrivateEndpoint("exampleClusterManagedPrivateEndpoint",
    resource_group_name=example_resource_group.name,
    cluster_name=example_cluster.name,
    private_link_resource_id=example_account.id,
    private_link_resource_region=example_account.location,
    group_id="blob",
    request_message="Please Approve")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const current = azure.core.getClientConfig({});
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleCluster = new azure.kusto.Cluster("exampleCluster", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    sku: {
        name: "Dev(No SLA)_Standard_D11_v2",
        capacity: 1,
    },
});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});
const exampleClusterManagedPrivateEndpoint = new azure.kusto.ClusterManagedPrivateEndpoint("exampleClusterManagedPrivateEndpoint", {
    resourceGroupName: exampleResourceGroup.name,
    clusterName: exampleCluster.name,
    privateLinkResourceId: exampleAccount.id,
    privateLinkResourceRegion: exampleAccount.location,
    groupId: "blob",
    requestMessage: "Please Approve",
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleCluster:
    type: azure:kusto:Cluster
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
      sku:
        name: Dev(No SLA)_Standard_D11_v2
        capacity: 1
  exampleAccount:
    type: azure:storage:Account
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      accountTier: Standard
      accountReplicationType: LRS
  exampleClusterManagedPrivateEndpoint:
    type: azure:kusto:ClusterManagedPrivateEndpoint
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      clusterName: ${exampleCluster.name}
      privateLinkResourceId: ${exampleAccount.id}
      privateLinkResourceRegion: ${exampleAccount.location}
      groupId: blob
      requestMessage: Please Approve
variables:
  current:
    fn::invoke:
      Function: azure:core:getClientConfig
      Arguments: {}

Create ClusterManagedPrivateEndpoint Resource

new ClusterManagedPrivateEndpoint(name: string, args: ClusterManagedPrivateEndpointArgs, opts?: CustomResourceOptions);
@overload
def ClusterManagedPrivateEndpoint(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  cluster_name: Optional[str] = None,
                                  group_id: Optional[str] = None,
                                  name: Optional[str] = None,
                                  private_link_resource_id: Optional[str] = None,
                                  private_link_resource_region: Optional[str] = None,
                                  request_message: Optional[str] = None,
                                  resource_group_name: Optional[str] = None)
@overload
def ClusterManagedPrivateEndpoint(resource_name: str,
                                  args: ClusterManagedPrivateEndpointArgs,
                                  opts: Optional[ResourceOptions] = None)
func NewClusterManagedPrivateEndpoint(ctx *Context, name string, args ClusterManagedPrivateEndpointArgs, opts ...ResourceOption) (*ClusterManagedPrivateEndpoint, error)
public ClusterManagedPrivateEndpoint(string name, ClusterManagedPrivateEndpointArgs args, CustomResourceOptions? opts = null)
public ClusterManagedPrivateEndpoint(String name, ClusterManagedPrivateEndpointArgs args)
public ClusterManagedPrivateEndpoint(String name, ClusterManagedPrivateEndpointArgs args, CustomResourceOptions options)
type: azure:kusto:ClusterManagedPrivateEndpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ClusterManagedPrivateEndpointArgs
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 ClusterManagedPrivateEndpointArgs
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 ClusterManagedPrivateEndpointArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ClusterManagedPrivateEndpointArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ClusterManagedPrivateEndpointArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ClusterManagedPrivateEndpoint 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 ClusterManagedPrivateEndpoint resource accepts the following input properties:

ClusterName string

The name of the Kusto Cluster. Changing this forces a new resource to be created.

GroupId string

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

PrivateLinkResourceId string

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

ResourceGroupName string

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

Name string

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

PrivateLinkResourceRegion string

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

RequestMessage string

The user request message.

ClusterName string

The name of the Kusto Cluster. Changing this forces a new resource to be created.

GroupId string

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

PrivateLinkResourceId string

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

ResourceGroupName string

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

Name string

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

PrivateLinkResourceRegion string

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

RequestMessage string

The user request message.

clusterName String

The name of the Kusto Cluster. Changing this forces a new resource to be created.

groupId String

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

privateLinkResourceId String

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

resourceGroupName String

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

name String

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

privateLinkResourceRegion String

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

requestMessage String

The user request message.

clusterName string

The name of the Kusto Cluster. Changing this forces a new resource to be created.

groupId string

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

privateLinkResourceId string

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

resourceGroupName string

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

name string

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

privateLinkResourceRegion string

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

requestMessage string

The user request message.

cluster_name str

The name of the Kusto Cluster. Changing this forces a new resource to be created.

group_id str

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

private_link_resource_id str

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

resource_group_name str

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

name str

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

private_link_resource_region str

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

request_message str

The user request message.

clusterName String

The name of the Kusto Cluster. Changing this forces a new resource to be created.

groupId String

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

privateLinkResourceId String

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

resourceGroupName String

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

name String

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

privateLinkResourceRegion String

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

requestMessage String

The user request message.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing ClusterManagedPrivateEndpoint Resource

Get an existing ClusterManagedPrivateEndpoint 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?: ClusterManagedPrivateEndpointState, opts?: CustomResourceOptions): ClusterManagedPrivateEndpoint
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_name: Optional[str] = None,
        group_id: Optional[str] = None,
        name: Optional[str] = None,
        private_link_resource_id: Optional[str] = None,
        private_link_resource_region: Optional[str] = None,
        request_message: Optional[str] = None,
        resource_group_name: Optional[str] = None) -> ClusterManagedPrivateEndpoint
func GetClusterManagedPrivateEndpoint(ctx *Context, name string, id IDInput, state *ClusterManagedPrivateEndpointState, opts ...ResourceOption) (*ClusterManagedPrivateEndpoint, error)
public static ClusterManagedPrivateEndpoint Get(string name, Input<string> id, ClusterManagedPrivateEndpointState? state, CustomResourceOptions? opts = null)
public static ClusterManagedPrivateEndpoint get(String name, Output<String> id, ClusterManagedPrivateEndpointState 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:
ClusterName string

The name of the Kusto Cluster. Changing this forces a new resource to be created.

GroupId string

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

Name string

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

PrivateLinkResourceId string

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

PrivateLinkResourceRegion string

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

RequestMessage string

The user request message.

ResourceGroupName string

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

ClusterName string

The name of the Kusto Cluster. Changing this forces a new resource to be created.

GroupId string

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

Name string

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

PrivateLinkResourceId string

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

PrivateLinkResourceRegion string

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

RequestMessage string

The user request message.

ResourceGroupName string

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

clusterName String

The name of the Kusto Cluster. Changing this forces a new resource to be created.

groupId String

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

name String

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

privateLinkResourceId String

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

privateLinkResourceRegion String

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

requestMessage String

The user request message.

resourceGroupName String

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

clusterName string

The name of the Kusto Cluster. Changing this forces a new resource to be created.

groupId string

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

name string

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

privateLinkResourceId string

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

privateLinkResourceRegion string

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

requestMessage string

The user request message.

resourceGroupName string

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

cluster_name str

The name of the Kusto Cluster. Changing this forces a new resource to be created.

group_id str

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

name str

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

private_link_resource_id str

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

private_link_resource_region str

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

request_message str

The user request message.

resource_group_name str

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

clusterName String

The name of the Kusto Cluster. Changing this forces a new resource to be created.

groupId String

The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

name String

The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

privateLinkResourceId String

The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

privateLinkResourceRegion String

The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

requestMessage String

The user request message.

resourceGroupName String

Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

Import

Managed Private Endpoint for a Kusto Cluster can be imported using the resource id, e.g.

 $ pulumi import azure:kusto/clusterManagedPrivateEndpoint:ClusterManagedPrivateEndpoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Kusto/clusters/cluster1/managedPrivateEndpoints/managedPrivateEndpoint1

Package Details

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

This Pulumi package is based on the azurerm Terraform Provider.