# AzureSearchResource Properties

- Package: [Aspire.Hosting.Azure.Search](/reference/api/csharp/aspire.hosting.azure.search.md)
- Type: [AzureSearchResource](/reference/api/csharp/aspire.hosting.azure.search/azuresearchresource.md)
- Kind: `Properties`
- Members: `6`

Represents an Azure AI Search resource.

## ConnectionString

- Name: `ConnectionString`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Search/AzureSearchResource.cs#L26)

Gets the "connectionString" output reference from the Azure AI Search resource.

```csharp
public BicepOutputReference ConnectionString { get; }
```

## Remarks

This connection string will assume you're deploying to public Azure.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Search/AzureSearchResource.cs#L58)

Gets the connection string template for the manifest for the resource.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Endpoint

- Name: `Endpoint`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Search/AzureSearchResource.cs#L44)

Gets the service endpoint URI expression for the Azure AI Search resource.

```csharp
public BicepOutputReference Endpoint { get; }
```

## Remarks

Format: `https://{name}.search.windows.net`.

## Id

- Name: `Id`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Search/AzureSearchResource.cs#L36)

Gets the "id" output reference for the resource.

```csharp
public BicepOutputReference Id { get; }
```

## NameOutputReference

- Name: `NameOutputReference`
- Modifiers: `get`
- Returns: `BicepOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Search/AzureSearchResource.cs#L31)

Gets the "name" output reference for the resource.

```csharp
public BicepOutputReference NameOutputReference { get; }
```

## UriExpression

- Name: `UriExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.Search/AzureSearchResource.cs#L52)

Gets the service endpoint URI expression for the Azure AI Search resource.

```csharp
public ReferenceExpression UriExpression { get; }
```

## Remarks

Format: `https://{name}.search.windows.net`.
