# OperationalInsightsWorkspaceProxy

- Module: [Aspire.Hosting.Azure.Provisioning.OperationalInsights](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

Represents the OperationalInsightsWorkspace Azure Provisioning model.

## Definition

```typescript
interface OperationalInsightsWorkspaceProxy {
  readonly createdOn: BicepValueProxy | datetimeoffset;
  readonly customerId: BicepValueProxy | guid;
  defaultDataCollectionRuleResourceId: BicepValueProxy;
  eTag: BicepValueProxy;
  failover: OperationalInsightsWorkspaceFailoverPropertiesProxy;
  features: OperationalInsightsWorkspaceFeaturesProxy;
  forceCmkForQuery: BicepValueProxy | boolean;
  readonly id: BicepValueProxy;
  identity: OperationalInsightsManagedServiceIdentityProxy;
  location: BicepValueProxy;
  readonly modifiedOn: BicepValueProxy | datetimeoffset;
  name: BicepValueProxy | string;
  readonly privateLinkScopedResources: Aspire_Hosting_Azure_Provisioning_OperationalInsights_Generated_ListOfOperationalInsightsPrivateLinkScopedResourceInfoProxy;
  readonly provisioningState: BicepValueProxy | OperationalInsightsWorkspaceEntityStatus;
  publicNetworkAccessForIngestion: BicepValueProxy | OperationalInsightsPublicNetworkAccessType;
  publicNetworkAccessForQuery: BicepValueProxy | OperationalInsightsPublicNetworkAccessType;
  replication: OperationalInsightsWorkspaceReplicationPropertiesProxy;
  retentionInDays: BicepValueProxy | number;
  sku: OperationalInsightsWorkspaceSkuProxy;
  readonly systemData: OperationalInsightsSystemDataProxy;
  tags: Aspire_Hosting_Azure_Provisioning_OperationalInsights_Generated_DictionaryOfStringProxy;
  workspaceCapping: OperationalInsightsWorkspaceCappingProxy;
  addTo(infrastructure: AzureResourceInfrastructure): void;
  clearDefaultDataCollectionRuleResourceId(): void;
  clearETag(): void;
  clearForceCmkForQuery(): void;
  clearLocation(): void;
  clearName(): void;
  clearPublicNetworkAccessForIngestion(): void;
  clearPublicNetworkAccessForQuery(): void;
  clearRetentionInDays(): void;
  getKeys(): OperationalInsightsWorkspaceSharedKeysProxy;
}
```

## Properties

- `createdOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the CreatedOn provisioning property.
- `customerId`: `BicepValueProxy | guid` `get` -- Gets the CustomerId provisioning property.
- `defaultDataCollectionRuleResourceId`: `BicepValueProxy` `get - set` -- Gets or sets the DefaultDataCollectionRuleResourceId provisioning property.
- `eTag`: `BicepValueProxy` `get - set` -- Gets or sets the ETag provisioning property.
- `failover`: [OperationalInsightsWorkspaceFailoverPropertiesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspacefailoverpropertiesproxy.md) `get - set` -- Gets or sets the Failover provisioning property.
- `features`: [OperationalInsightsWorkspaceFeaturesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspacefeaturesproxy.md) `get - set` -- Gets or sets the Features provisioning property.
- `forceCmkForQuery`: `BicepValueProxy | boolean` `get - set` -- Gets or sets the ForceCmkForQuery provisioning property.
- `id`: `BicepValueProxy` `get` -- Gets the Id provisioning property.
- `identity`: [OperationalInsightsManagedServiceIdentityProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsmanagedserviceidentityproxy.md) `get - set` -- Gets or sets the Identity provisioning property.
- `location`: `BicepValueProxy` `get - set` -- Gets or sets the Location provisioning property.
- `modifiedOn`: `BicepValueProxy | datetimeoffset` `get` -- Gets the ModifiedOn provisioning property.
- `name`: `BicepValueProxy | string` `get - set` -- Gets or sets the Name provisioning property.
- `privateLinkScopedResources`: [Aspire_Hosting_Azure_Provisioning_OperationalInsights_Generated_ListOfOperationalInsightsPrivateLinkScopedResourceInfoProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/aspire-hosting-azure-provisioning-operationalinsights-generated-listofoperationalinsightsprivatelinkscopedresourceinfoproxy.md) `get` -- Gets the PrivateLinkScopedResources provisioning property.
- `provisioningState`: `BicepValueProxy | OperationalInsightsWorkspaceEntityStatus` `get` -- Gets the ProvisioningState provisioning property.
- `publicNetworkAccessForIngestion`: `BicepValueProxy | OperationalInsightsPublicNetworkAccessType` `get - set` -- Gets or sets the PublicNetworkAccessForIngestion provisioning property.
- `publicNetworkAccessForQuery`: `BicepValueProxy | OperationalInsightsPublicNetworkAccessType` `get - set` -- Gets or sets the PublicNetworkAccessForQuery provisioning property.
- `replication`: [OperationalInsightsWorkspaceReplicationPropertiesProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspacereplicationpropertiesproxy.md) `get - set` -- Gets or sets the Replication provisioning property.
- `retentionInDays`: `BicepValueProxy | number` `get - set` -- Gets or sets the RetentionInDays provisioning property.
- `sku`: [OperationalInsightsWorkspaceSkuProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceskuproxy.md) `get - set` -- Gets or sets the Sku provisioning property.
- `systemData`: [OperationalInsightsSystemDataProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightssystemdataproxy.md) `get` -- Gets the SystemData provisioning property.
- `tags`: [Aspire_Hosting_Azure_Provisioning_OperationalInsights_Generated_DictionaryOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/aspire-hosting-azure-provisioning-operationalinsights-generated-dictionaryofstringproxy.md) `get - set` -- Gets or sets the Tags provisioning property.
- `workspaceCapping`: [OperationalInsightsWorkspaceCappingProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspacecappingproxy.md) `get - set` -- Gets or sets the WorkspaceCapping provisioning property.

## Methods

- [addTo](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy/addto.md) -- `method` -- Adds this provisioning resource to the Azure resource infrastructure.
    ```typescript
  addTo(infrastructure: AzureResourceInfrastructure): void
  ```
- [clearDefaultDataCollectionRuleResourceId](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy/cleardefaultdatacollectionruleresourceid.md) -- `method` -- Clears the DefaultDataCollectionRuleResourceId provisioning property.
    ```typescript
  clearDefaultDataCollectionRuleResourceId(): void
  ```
- [clearETag](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy/clearetag.md) -- `method` -- Clears the ETag provisioning property.
    ```typescript
  clearETag(): void
  ```
- [clearForceCmkForQuery](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy/clearforcecmkforquery.md) -- `method` -- Clears the ForceCmkForQuery provisioning property.
    ```typescript
  clearForceCmkForQuery(): void
  ```
- [clearLocation](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy/clearlocation.md) -- `method` -- Clears the Location provisioning property.
    ```typescript
  clearLocation(): void
  ```
- [clearName](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy/clearname.md) -- `method` -- Clears the Name provisioning property.
    ```typescript
  clearName(): void
  ```
- [clearPublicNetworkAccessForIngestion](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy/clearpublicnetworkaccessforingestion.md) -- `method` -- Clears the PublicNetworkAccessForIngestion provisioning property.
    ```typescript
  clearPublicNetworkAccessForIngestion(): void
  ```
- [clearPublicNetworkAccessForQuery](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy/clearpublicnetworkaccessforquery.md) -- `method` -- Clears the PublicNetworkAccessForQuery provisioning property.
    ```typescript
  clearPublicNetworkAccessForQuery(): void
  ```
- [clearRetentionInDays](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy/clearretentionindays.md) -- `method` -- Clears the RetentionInDays provisioning property.
    ```typescript
  clearRetentionInDays(): void
  ```
- [getKeys](/reference/api/typescript/aspire.hosting.azure.provisioning.operationalinsights/operationalinsightsworkspaceproxy/getkeys.md) -- `method` -- Invokes GetKeys on the OperationalInsightsWorkspace provisioning model.
    ```typescript
  getKeys(): OperationalInsightsWorkspaceSharedKeysProxy
  ```
