# AzureEnvironmentResource

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

## Definition

```go
type AzureEnvironmentResource interface {
    Resource
}
```

## Embeds

- `Resource`

## Methods

- [WithLocation](/reference/api/go/aspire.hosting.azure/azureenvironmentresource/withlocation.md) -- `method` -- Sets the location of the Azure environment resource.
  ```go
  WithLocation(location ParameterResource) AzureEnvironmentResource
  ```
- [WithResourceGroup](/reference/api/go/aspire.hosting.azure/azureenvironmentresource/withresourcegroup.md) -- `method` -- Sets the resource group name of the Azure environment resource.
  ```go
  WithResourceGroup(resourceGroup ParameterResource) AzureEnvironmentResource
  ```
