# CognitiveServicesConnectionServicePrincipalProxy

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

Represents the CognitiveServicesConnectionServicePrincipal Azure Provisioning model.

## Definition

```typescript
interface CognitiveServicesConnectionServicePrincipalProxy {
  clientId: BicepValueProxy | string;
  clientSecret: BicepValueProxy | string;
  tenantId: BicepValueProxy | guid;
  clearClientId(): void;
  clearClientSecret(): void;
  clearTenantId(): void;
}
```

## Properties

- `clientId`: `BicepValueProxy | string` `get - set` -- Gets or sets the ClientId provisioning property.
- `clientSecret`: `BicepValueProxy | string` `get - set` -- Gets or sets the ClientSecret provisioning property.
- `tenantId`: `BicepValueProxy | guid` `get - set` -- Gets or sets the TenantId provisioning property.

## Methods

- [clearClientId](/reference/api/typescript/aspire.hosting.azure.provisioning.cognitiveservices/cognitiveservicesconnectionserviceprincipalproxy/clearclientid.md) -- `method` -- Clears the ClientId provisioning property.
    ```typescript
  clearClientId(): void
  ```
- [clearClientSecret](/reference/api/typescript/aspire.hosting.azure.provisioning.cognitiveservices/cognitiveservicesconnectionserviceprincipalproxy/clearclientsecret.md) -- `method` -- Clears the ClientSecret provisioning property.
    ```typescript
  clearClientSecret(): void
  ```
- [clearTenantId](/reference/api/typescript/aspire.hosting.azure.provisioning.cognitiveservices/cognitiveservicesconnectionserviceprincipalproxy/cleartenantid.md) -- `method` -- Clears the TenantId provisioning property.
    ```typescript
  clearTenantId(): void
  ```
