# AzureEnvironmentResource

- Module: [Aspire.Hosting.Azure.Kusto](/reference/api/typescript/aspire.hosting.azure.kusto.md)
- Version: `13.2.0-preview.1.26170.3`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface AzureEnvironmentResource extends IResource {
  withLocation(location: ParameterResource): AzureEnvironmentResource;
  withResourceGroup(resourceGroup: ParameterResource): AzureEnvironmentResource;
}
```

## Methods

- [withLocation](/reference/api/typescript/aspire.hosting.azure.kusto/azureenvironmentresource/withlocation.md) -- `method` -- Sets the Azure location for the shared Azure environment resource
    ```typescript
  withLocation(location: ParameterResource): AzureEnvironmentResource
  ```
- [withResourceGroup](/reference/api/typescript/aspire.hosting.azure.kusto/azureenvironmentresource/withresourcegroup.md) -- `method` -- Sets the Azure resource group for the shared Azure environment resource
    ```typescript
  withResourceGroup(resourceGroup: ParameterResource): AzureEnvironmentResource
  ```
