# AzureEnvironmentResource.withLocation

- Module: [Aspire.Hosting.Azure](/reference/api/typescript/aspire.hosting.azure.md)
- Defined on: [AzureEnvironmentResource](/reference/api/typescript/aspire.hosting.azure/azureenvironmentresource.md)
- Version: `13.4.0`
- Kind: `method`

Sets the location of the Azure environment resource.

## Definition

```typescript
interface AzureEnvironmentResource {
  // ... omitted for brevity
  withLocation(location: ParameterResource): AzureEnvironmentResource;
}
```

## Signature

```typescript
withLocation(location: ParameterResource): AzureEnvironmentResource
```

## Parameters

- `location` (`ParameterResource`)

## Returns

[AzureEnvironmentResource](/reference/api/typescript/aspire.hosting.azure/azureenvironmentresource.md) `builder`

## Defined on

- [AzureEnvironmentResource](/reference/api/typescript/aspire.hosting.azure/azureenvironmentresource.md) -- `handle`
