# AzureHostedAgentResource Properties

- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Type: [AzureHostedAgentResource](/reference/api/csharp/aspire.hosting.foundry/azurehostedagentresource.md)
- Kind: `Properties`
- Members: `4`

A Microsoft Foundry hosted agent resource.

## Configure

- Name: `Configure`
- Modifiers: `nullable` `get; set`
- Returns: `Action<HostedAgentConfiguration>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/HostedAgent/AzureHostedAgentResource.cs)

Configuration action to customize the hosted agent definition during deployment.

```csharp
public Action<HostedAgentConfiguration>? Configure { get; set; }
```

## Image

- Name: `Image`
- Modifiers: `get`
- Returns: `ContainerImageReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/HostedAgent/AzureHostedAgentResource.cs#L97)

The fully qualified image name for the hosted agent.

```csharp
public ContainerImageReference Image { get; }
```

## Target

- Name: `Target`
- Modifiers: `get`
- Returns: `IResource`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/HostedAgent/AzureHostedAgentResource.cs#L102)

The target containerized workload that this hosted agent deploys.

```csharp
public IResource Target { get; }
```

## Version

- Name: `Version`
- Modifiers: `get`
- Returns: `StaticValueProvider<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/HostedAgent/AzureHostedAgentResource.cs#L92)

Once deployed, the version that is assigned to this hosted agent.

```csharp
public StaticValueProvider<string> Version { get; }
```
