AzureSubnetResource.withServiceDelegation

Method
📦 Aspire.Hosting.Azure.Network v17.0.0
interface AzureSubnetResource {
// ... omitted for brevity
withServiceDelegation(
serviceName: string,
name?: string): AzureSubnetResource;
}

Signature

methodwithServiceDelegationbuilder
Delegates the subnet to the specified Azure service.
withServiceDelegation(
serviceName: string,
name?: string): AzureSubnetResource
serviceNamestringThe service name to delegate the subnet to (e.g., "Microsoft.App/environments"). See `AzureSubnetServiceDelegations` for well-known values.
namestringoptionalThe name of the service delegation. If not specified, defaults to `serviceName`.
AzureSubnetResource

Defined on

This method is defined on the following type: