AzureInternalLoadBalancerExtensions Methods

ClassMethods1 member
Provides extension methods for configuring internal load balancers and private DNS.
WithInternalLoadBalancer(IResourceBuilder<T>, IResourceBuilder<AzureVirtualNetworkResource>)Section titled WithInternalLoadBalancer(IResourceBuilder<T>, IResourceBuilder<AzureVirtualNetworkResource>)extensionIResourceBuilder<T>
Configures the resource with an internal load balancer and private DNS.
public static class AzureInternalLoadBalancerExtensions
{
public static IResourceBuilder<T> WithInternalLoadBalancer<T>(
this IResourceBuilder<T> builder,
IResourceBuilder<AzureVirtualNetworkResource> virtualNetwork)
{
// ...
}
}
builderIResourceBuilder<T>The resource builder.
virtualNetworkIResourceBuilder<AzureVirtualNetworkResource>The virtual network containing the resource's delegated subnet.
IResourceBuilder<T>The resource builder.
ArgumentNullExceptionThrown when an argument is null.
InvalidOperationExceptionThrown when the delegated subnet is missing, belongs to a different network, or the resource already uses a different internal network.
The resource must first be configured with WithDelegatedSubnet. A private DNS zone named after its default domain is linked to virtualNetwork, and a wildcard record resolves hostnames to the internal load balancer's static IP. This method has no effect in run mode.