# 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/2d325b13709752ba6d9a943635c5e2940a2530c0)

## 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)
