AzureVirtualNetworkExtensions
Classstaticnet10.0
Provides extension methods for adding Azure Virtual Network resources to the application model.
namespace Aspire.Hosting;
public static class AzureVirtualNetworkExtensions{ // ...}12 members
Methods12
Section titled MethodsIResourceBuilder<AzureVirtualNetworkResource> Adds an Azure Virtual Network resource to the application model.
AddAzureVirtualNetwork(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>) extensionats ignoredIResourceBuilder<AzureVirtualNetworkResource> Adds an Azure Virtual Network resource to the application model with a parameterized address prefix.
AddSubnet(IResourceBuilder<AzureVirtualNetworkResource>, string, string, string?) extensionats ignoredIResourceBuilder<AzureSubnetResource> Adds an Azure Subnet to the Virtual Network.
AddSubnet(IResourceBuilder<AzureVirtualNetworkResource>, string, IResourceBuilder<ParameterResource>, string?) extensionats ignoredIResourceBuilder<AzureSubnetResource> Adds an Azure Subnet to the Virtual Network with a parameterized address prefix.
AllowInbound(IResourceBuilder<AzureSubnetResource>, string?, string?, string?, SecurityRuleProtocol?, int?, string?) extensionats exportIResourceBuilder<AzureSubnetResource> Adds an inbound allow rule to the subnet's Network Security Group.
AllowOutbound(IResourceBuilder<AzureSubnetResource>, string?, string?, string?, SecurityRuleProtocol?, int?, string?) extensionats exportIResourceBuilder<AzureSubnetResource> Adds an outbound allow rule to the subnet's Network Security Group.
DenyInbound(IResourceBuilder<AzureSubnetResource>, string?, string?, string?, SecurityRuleProtocol?, int?, string?) extensionats exportIResourceBuilder<AzureSubnetResource> Adds an inbound deny rule to the subnet's Network Security Group.
DenyOutbound(IResourceBuilder<AzureSubnetResource>, string?, string?, string?, SecurityRuleProtocol?, int?, string?) extensionats exportIResourceBuilder<AzureSubnetResource> Adds an outbound deny rule to the subnet's Network Security Group.
IResourceBuilder<T> Configures the resource to use the specified subnet with appropriate service delegation.
WithNatGateway(IResourceBuilder<AzureSubnetResource>, IResourceBuilder<AzureNatGatewayResource>) extensionats exportIResourceBuilder<AzureSubnetResource> Associates a NAT Gateway with the subnet.
WithNetworkSecurityGroup(IResourceBuilder<AzureSubnetResource>, IResourceBuilder<AzureNetworkSecurityGroupResource>) extensionats exportIResourceBuilder<AzureSubnetResource> Associates a Network Security Group with the subnet.
IResourceBuilder<AzureSubnetResource> Delegates the subnet to the specified Azure service.