# AzureEnvironmentResource

- Module: [Aspire.Hosting.Azure.EventHubs](/reference/api/typescript/aspire.hosting.azure.eventhubs.md)
- Version: `13.2.0`
- 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.eventhubs/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.eventhubs/azureenvironmentresource/withresourcegroup.md) -- `method` -- Sets the Azure resource group for the shared Azure environment resource
    ```typescript
  withResourceGroup(resourceGroup: ParameterResource): AzureEnvironmentResource
  ```
