# AzureDelegatedSubnetResource

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

## Definition

```go
type AzureDelegatedSubnetResource interface{}
```

## Methods

- [WithDelegatedSubnet](/reference/api/go/aspire.hosting.azure.network/azuredelegatedsubnetresource/withdelegatedsubnet.md) -- `method` -- Configures the resource to use the specified subnet with appropriate service delegation.
  ```go
  WithDelegatedSubnet(subnet AzureSubnetResource) AzureDelegatedSubnetResource
  ```

## Applies to

- [`AzureDelegatedSubnetResource`](/reference/api/go/aspire.hosting.azure.network/azuredelegatedsubnetresource.md)
