# SearchServiceProxy

- Module: [Aspire.Hosting.Azure.Provisioning.Search](/reference/api/typescript/aspire.hosting.azure.provisioning.search.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the SearchService Azure Provisioning model.

## Definition

```typescript
interface SearchServiceProxy {
  authOptions: SearchAadAuthDataPlaneAuthOptionsProxy;
  disabledDataExfiltrationOptions: Aspire_Hosting_Azure_Provisioning_Search_Generated_ListOfSearchDisabledDataExfiltrationOptionProxy;
  encryptionWithCmk: SearchEncryptionWithCmkProxy;
  readonly eTag: BicepValueProxy;
  hostingMode: BicepValueProxy | SearchServiceHostingMode;
  readonly id: BicepValueProxy;
  identity: SearchManagedServiceIdentityProxy;
  iPRules: Aspire_Hosting_Azure_Provisioning_Search_Generated_ListOfSearchServiceIPRuleProxy;
  isLocalAuthDisabled: BicepValueProxy | boolean;
  location: BicepValueProxy;
  name: BicepValueProxy | string;
  networkRuleSet: SearchServiceNetworkRuleSetProxy;
  partitionCount: BicepValueProxy | number;
  readonly privateEndpointConnections: Aspire_Hosting_Azure_Provisioning_Search_Generated_ListOfSearchPrivateEndpointConnectionDataProxy;
  readonly provisioningState: BicepValueProxy | SearchServiceProvisioningState;
  publicNetworkAccess: BicepValueProxy | SearchServicePublicNetworkAccess;
  replicaCount: BicepValueProxy | number;
  searchSkuName: BicepValueProxy | SearchServiceSkuName;
  semanticSearch: BicepValueProxy | SearchSemanticSearch;
  readonly sharedPrivateLinkResources: Aspire_Hosting_Azure_Provisioning_Search_Generated_ListOfSharedSearchServicePrivateLinkResourceDataProxy;
  readonly status: BicepValueProxy | SearchServiceStatus;
  readonly statusDetails: BicepValueProxy | string;
  readonly systemData: SearchSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_Search_Generated_DictionaryOfStringProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearHostingMode(): void;
  clearIsLocalAuthDisabled(): void;
  clearLocation(): void;
  clearName(): void;
  clearPartitionCount(): void;
  clearPublicNetworkAccess(): void;
  clearReplicaCount(): void;
  clearSearchSkuName(): void;
  clearSemanticSearch(): void;
  createRoleAssignment(
      role: SearchBuiltInRoleProxy,
      principalType: BicepValueProxy | RoleManagementPrincipalType,
      principalId: BicepValueProxy | guid,
      bicepIdentifierSuffix: string): SearchRoleAssignmentProxy;
}
```

## Properties

- `authOptions`: [SearchAadAuthDataPlaneAuthOptionsProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchaadauthdataplaneauthoptionsproxy.md) `get - set` -- Gets or sets the AuthOptions provisioning property.
- `disabledDataExfiltrationOptions`: [Aspire_Hosting_Azure_Provisioning_Search_Generated_ListOfSearchDisabledDataExfiltrationOptionProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.search/aspire-hosting-azure-provisioning-search-generated-listofsearchdisableddataexfiltrationoptionproxy.md) `get - set` -- Gets or sets the DisabledDataExfiltrationOptions provisioning property.
- `encryptionWithCmk`: [SearchEncryptionWithCmkProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchencryptionwithcmkproxy.md) `get - set` -- Gets or sets the EncryptionWithCmk provisioning property.
- `eTag`: `BicepValueProxy` `get` -- Gets the ETag provisioning property.
- `hostingMode`: `BicepValueProxy | SearchServiceHostingMode` `get - set` -- Gets or sets the HostingMode provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `identity`: [SearchManagedServiceIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchmanagedserviceidentityproxy.md) `get - set` -- Gets or sets the Identity provisioning property.
- `iPRules`: [Aspire_Hosting_Azure_Provisioning_Search_Generated_ListOfSearchServiceIPRuleProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.search/aspire-hosting-azure-provisioning-search-generated-listofsearchserviceipruleproxy.md) `get - set` -- Gets or sets the IPRules provisioning property.
- `isLocalAuthDisabled`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the IsLocalAuthDisabled provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `networkRuleSet`: [SearchServiceNetworkRuleSetProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchservicenetworkrulesetproxy.md) `get - set` -- Gets or sets the NetworkRuleSet provisioning property.
- `partitionCount`: `BicepValueProxy | number` `get - set` -- Gets or sets the PartitionCount provisioning property.
- `privateEndpointConnections`: [Aspire_Hosting_Azure_Provisioning_Search_Generated_ListOfSearchPrivateEndpointConnectionDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.search/aspire-hosting-azure-provisioning-search-generated-listofsearchprivateendpointconnectiondataproxy.md) `get` -- Gets the PrivateEndpointConnections provisioning property.
- `provisioningState`: `BicepValueProxy | SearchServiceProvisioningState` `get` -- Gets the ProvisioningState provisioning property.
- `publicNetworkAccess`: `BicepValueProxy | SearchServicePublicNetworkAccess` `get - set` -- Gets or sets the PublicNetworkAccess provisioning property.
- `replicaCount`: `BicepValueProxy | number` `get - set` -- Gets or sets the ReplicaCount provisioning property.
- `searchSkuName`: `BicepValueProxy | SearchServiceSkuName` `get - set` -- Gets or sets the SearchSkuName provisioning property.
- `semanticSearch`: `BicepValueProxy | SearchSemanticSearch` `get - set` -- Gets or sets the SemanticSearch provisioning property.
- `sharedPrivateLinkResources`: [Aspire_Hosting_Azure_Provisioning_Search_Generated_ListOfSharedSearchServicePrivateLinkResourceDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.search/aspire-hosting-azure-provisioning-search-generated-listofsharedsearchserviceprivatelinkresourcedataproxy.md) `get` -- Gets the SharedPrivateLinkResources provisioning property.
- `status`: `BicepValueProxy | SearchServiceStatus` `get` -- Gets the Status provisioning property.
- `statusDetails`: `BicepValueProxy | string` `get` -- Gets the StatusDetails provisioning property.
- `systemData`: [SearchSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchsystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_Search_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.search/aspire-hosting-azure-provisioning-search-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearHostingMode](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/clearhostingmode.md) -- `method` -- Clears the HostingMode provisioning property.
    ```typescript
  clearHostingMode(): void
  ```
- [clearIsLocalAuthDisabled](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/clearislocalauthdisabled.md) -- `method` -- Clears the IsLocalAuthDisabled provisioning property.
    ```typescript
  clearIsLocalAuthDisabled(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPartitionCount](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/clearpartitioncount.md) -- `method` -- Clears the PartitionCount provisioning property.
    ```typescript
  clearPartitionCount(): void
  ```
- [clearPublicNetworkAccess](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/clearpublicnetworkaccess.md) -- `method` -- Clears the PublicNetworkAccess provisioning property.
    ```typescript
  clearPublicNetworkAccess(): void
  ```
- [clearReplicaCount](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/clearreplicacount.md) -- `method` -- Clears the ReplicaCount provisioning property.
    ```typescript
  clearReplicaCount(): void
  ```
- [clearSearchSkuName](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/clearsearchskuname.md) -- `method` -- Clears the SearchSkuName provisioning property.
    ```typescript
  clearSearchSkuName(): void
  ```
- [clearSemanticSearch](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/clearsemanticsearch.md) -- `method` -- Clears the SemanticSearch provisioning property.
    ```typescript
  clearSemanticSearch(): void
  ```
- [createRoleAssignment](/reference/api/typescript/aspire.hosting.azure.provisioning.search/searchserviceproxy/createroleassignment.md) -- `method` -- Invokes CreateRoleAssignment on the SearchService provisioning model.
    ```typescript
  createRoleAssignment(role: SearchBuiltInRoleProxy, principalType: BicepValueProxy | RoleManagementPrincipalType, principalId: BicepValueProxy | guid, bicepIdentifierSuffix: string): SearchRoleAssignmentProxy
  ```
