# AzureKustoClusterResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Kusto](/reference/api/csharp/aspire.hosting.azure.kusto.md)
- Version: `13.4.0-preview.1.26281.18`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Azure.Kusto/AzureKustoClusterResource.cs)
- Inherits: `AzureProvisioningResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithEndpoints`, `IValueProvider`, `IValueWithReferences`

A resource that represents a Kusto cluster.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AzureKustoClusterResource
    : Aspire.Hosting.Azure.AzureProvisioningResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Azure.Kusto/AzureKustoClusterResource`

## Constructors

- [AzureKustoClusterResource(string, Action<AzureResourceInfrastructure>)](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustoclusterresource/constructors.md#constructor-string-action-azureresourceinfrastructure) -- Initializes a new instance of the [AzureKustoClusterResource](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustoclusterresource.md) class.

## Properties

- [ClusterUri](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustoclusterresource/properties.md#clusteruri) : `BicepOutputReference` `get` -- Gets the cluster URI output reference for the Azure Kusto cluster.
- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustoclusterresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get`
- [IsEmulator](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustoclusterresource/properties.md#isemulator) : `bool` `get` -- Gets whether the resource is running the local emulator.
- [NameOutputReference](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustoclusterresource/properties.md#nameoutputreference) : `BicepOutputReference` `get` -- Gets the "name" output reference for the resource.
- [UriExpression](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustoclusterresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the Kusto cluster.

## Methods

- [AddAsExistingResource(AzureResourceInfrastructure)](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustoclusterresource/methods.md#addasexistingresource-azureresourceinfrastructure) : `ProvisionableResource`
- [AddRoleAssignments(IAddRoleAssignmentsContext)](/reference/api/csharp/aspire.hosting.azure.kusto/azurekustoclusterresource/methods.md#addroleassignments-iaddroleassignmentscontext)
