Skip to content

azurermKustoClusterManagedPrivateEndpoint

Manages a Managed Private Endpoint for a Kusto Cluster.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "West Europe",
    name: "example-resources",
  }
);
const azurermStorageAccountExample = new azurerm.storageAccount.StorageAccount(
  this,
  "example_1",
  {
    account_replication_type: "LRS",
    account_tier: "Standard",
    location: azurermResourceGroupExample.location,
    name: "examplesa",
    resource_group_name: azurermResourceGroupExample.name,
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermStorageAccountExample.overrideLogicalId("example");
new azurerm.dataAzurermClientConfig.DataAzurermClientConfig(
  this,
  "current",
  {}
);
const azurermKustoClusterExample = new azurerm.kustoCluster.KustoCluster(
  this,
  "example_3",
  {
    location: azurermResourceGroupExample.location,
    name: "examplekc",
    resource_group_name: azurermResourceGroupExample.name,
    sku: [
      {
        capacity: 1,
        name: "Dev(No SLA)_Standard_D11_v2",
      },
    ],
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermKustoClusterExample.overrideLogicalId("example");
const azurermKustoClusterManagedPrivateEndpointExample =
  new azurerm.kustoClusterManagedPrivateEndpoint.KustoClusterManagedPrivateEndpoint(
    this,
    "example_4",
    {
      cluster_name: azurermKustoClusterExample.name,
      group_id: "blob",
      name: "examplempe",
      private_link_resource_id: azurermStorageAccountExample.id,
      private_link_resource_region: azurermStorageAccountExample.location,
      request_message: "Please Approve",
      resource_group_name: azurermResourceGroupExample.name,
    }
  );
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermKustoClusterManagedPrivateEndpointExample.overrideLogicalId("example");

Arguments Reference

The following arguments are supported:

  • name - (Required) The name of the Managed Private Endpoints to create. Changing this forces a new resource to be created.

  • clusterName - (Required) The name of the Kusto Cluster. Changing this forces a new resource to be created.

  • resourceGroupName - (Required) Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

  • privateLinkResourceId - (Required) The ARM resource ID of the resource for which the managed private endpoint is created. Changing this forces a new resource to be created.

  • groupId - (Required) The group id in which the managed private endpoint is created. Changing this forces a new resource to be created.

  • privateLinkResourceRegion - (Optional) The region of the resource to which the managed private endpoint is created. Changing this forces a new resource to be created.

  • requestMessage - (Optional) The user request message.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 60 minutes) Used when creating the Kusto Cluster Customer Managed Key.
  • read - (Defaults to 5 minutes) Used when retrieving the Kusto Cluster Customer Managed Key.
  • update - (Defaults to 60 minutes) Used when updating the Kusto Cluster Customer Managed Key.
  • delete - (Defaults to 60 minutes) Used when deleting the Kusto Cluster Customer Managed Key.

Import

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

terraform import azurerm_kusto_cluster_managed_private_endpoint.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Kusto/clusters/cluster1/managedPrivateEndpoints/managedPrivateEndpoint1