Namespace Pulumi.Azure.Network
Classes
ApplicationGateway
Manages an Application Gateway.
ApplicationGatewayArgs
ApplicationGatewayState
ApplicationSecurityGroup
Manages an Application Security Group.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleApplicationSecurityGroup = new Azure.Network.ApplicationSecurityGroup("exampleApplicationSecurityGroup", new Azure.Network.ApplicationSecurityGroupArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
Tags =
{
{ "Hello", "World" },
},
});
}
}
ApplicationSecurityGroupArgs
ApplicationSecurityGroupState
DdosProtectionPlan
Manages an AzureNetwork DDoS Protection Plan.
NOTE Azure only allows
oneDDoS Protection Plan per region.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleDdosProtectionPlan = new Azure.Network.DdosProtectionPlan("exampleDdosProtectionPlan", new Azure.Network.DdosProtectionPlanArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
}
}
DdosProtectionPlanArgs
DdosProtectionPlanState
ExpressRouteCircuit
Manages an ExpressRoute circuit.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleExpressRouteCircuit = new Azure.Network.ExpressRouteCircuit("exampleExpressRouteCircuit", new Azure.Network.ExpressRouteCircuitArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
ServiceProviderName = "Equinix",
PeeringLocation = "Silicon Valley",
BandwidthInMbps = 50,
Sku = new Azure.Network.Inputs.ExpressRouteCircuitSkuArgs
{
Tier = "Standard",
Family = "MeteredData",
},
Tags =
{
{ "environment", "Production" },
},
});
}
}
ExpressRouteCircuitArgs
ExpressRouteCircuitAuthorization
Manages an ExpressRoute Circuit Authorization.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleExpressRouteCircuit = new Azure.Network.ExpressRouteCircuit("exampleExpressRouteCircuit", new Azure.Network.ExpressRouteCircuitArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
ServiceProviderName = "Equinix",
PeeringLocation = "Silicon Valley",
BandwidthInMbps = 50,
Sku = new Azure.Network.Inputs.ExpressRouteCircuitSkuArgs
{
Tier = "Standard",
Family = "MeteredData",
},
AllowClassicOperations = false,
Tags =
{
{ "environment", "Production" },
},
});
var exampleExpressRouteCircuitAuthorization = new Azure.Network.ExpressRouteCircuitAuthorization("exampleExpressRouteCircuitAuthorization", new Azure.Network.ExpressRouteCircuitAuthorizationArgs
{
ExpressRouteCircuitName = exampleExpressRouteCircuit.Name,
ResourceGroupName = exampleResourceGroup.Name,
});
}
}
ExpressRouteCircuitAuthorizationArgs
ExpressRouteCircuitAuthorizationState
ExpressRouteCircuitPeering
Manages an ExpressRoute Circuit Peering.
ExpressRouteCircuitPeeringArgs
ExpressRouteCircuitPeeringState
ExpressRouteCircuitState
ExpressRouteGateway
Manages an ExpressRoute gateway.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleVirtualWan = new Azure.Network.VirtualWan("exampleVirtualWan", new Azure.Network.VirtualWanArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleVirtualHub = new Azure.Network.VirtualHub("exampleVirtualHub", new Azure.Network.VirtualHubArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
VirtualWanId = exampleVirtualWan.Id,
AddressPrefix = "10.0.1.0/24",
});
var exampleExpressRouteGateway = new Azure.Network.ExpressRouteGateway("exampleExpressRouteGateway", new Azure.Network.ExpressRouteGatewayArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
VirtualHubId = exampleVirtualHub.Id,
ScaleUnits = 1,
Tags =
{
{ "environment", "Production" },
},
});
}
}
ExpressRouteGatewayArgs
ExpressRouteGatewayState
Firewall
Manages an Azure Firewall.
FirewallApplicationRuleCollection
Manages an Application Rule Collection within an Azure Firewall.
FirewallApplicationRuleCollectionArgs
FirewallApplicationRuleCollectionState
FirewallArgs
FirewallNatRuleCollection
Manages a NAT Rule Collection within an Azure Firewall.
FirewallNatRuleCollectionArgs
FirewallNatRuleCollectionState
FirewallNetworkRuleCollection
Manages a Network Rule Collection within an Azure Firewall.
FirewallNetworkRuleCollectionArgs
FirewallNetworkRuleCollectionState
FirewallState
GetApplicationSecurityGroup
GetApplicationSecurityGroupArgs
GetApplicationSecurityGroupResult
GetExpressRouteCircuit
GetExpressRouteCircuitArgs
GetExpressRouteCircuitResult
GetFirewall
GetFirewallArgs
GetFirewallResult
GetGatewayConnection
GetGatewayConnectionArgs
GetGatewayConnectionResult
GetNatGateway
GetNatGatewayArgs
GetNatGatewayResult
GetNetworkDdosProtectionPlan
GetNetworkDdosProtectionPlanArgs
GetNetworkDdosProtectionPlanResult
GetNetworkInterface
GetNetworkInterfaceArgs
GetNetworkInterfaceResult
GetNetworkSecurityGroup
GetNetworkSecurityGroupArgs
GetNetworkSecurityGroupResult
GetNetworkWatcher
GetNetworkWatcherArgs
GetNetworkWatcherResult
GetPublicIP
GetPublicIPArgs
GetPublicIpPrefix
GetPublicIpPrefixArgs
GetPublicIpPrefixResult
GetPublicIPResult
GetPublicIPs
GetPublicIPsArgs
GetPublicIPsResult
GetRouteTable
GetRouteTableArgs
GetRouteTableResult
GetServiceTags
GetServiceTagsArgs
GetServiceTagsResult
GetSubnet
GetSubnetArgs
GetSubnetResult
GetTrafficManager
GetTrafficManagerArgs
GetTrafficManagerResult
GetVirtualHub
GetVirtualHubArgs
GetVirtualHubResult
GetVirtualNetwork
GetVirtualNetworkArgs
GetVirtualNetworkGateway
GetVirtualNetworkGatewayArgs
GetVirtualNetworkGatewayResult
GetVirtualNetworkResult
LocalNetworkGateway
Manages a local network gateway connection over which specific connections can be configured.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = new Azure.Core.ResourceGroup("example", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var home = new Azure.Network.LocalNetworkGateway("home", new Azure.Network.LocalNetworkGatewayArgs
{
ResourceGroupName = example.Name,
Location = example.Location,
GatewayAddress = "12.13.14.15",
AddressSpaces =
{
"10.0.0.0/16",
},
});
}
}
LocalNetworkGatewayArgs
LocalNetworkGatewayState
NatGateway
Manages a Azure NAT Gateway.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "eastus2",
});
var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new Azure.Network.PublicIpArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
AllocationMethod = "Static",
Sku = "Standard",
Zones =
{
"1",
},
});
var examplePublicIpPrefix = new Azure.Network.PublicIpPrefix("examplePublicIpPrefix", new Azure.Network.PublicIpPrefixArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PrefixLength = 30,
Zones =
{
"1",
},
});
var exampleNatGateway = new Azure.Network.NatGateway("exampleNatGateway", new Azure.Network.NatGatewayArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PublicIpAddressIds =
{
examplePublicIp.Id,
},
PublicIpPrefixIds =
{
examplePublicIpPrefix.Id,
},
SkuName = "Standard",
IdleTimeoutInMinutes = 10,
Zones =
{
"1",
},
});
}
}
NatGatewayArgs
NatGatewayPublicIpAssociation
Manages the association between a Nat Gateway and a Public IP.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new Azure.Network.PublicIpArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
AllocationMethod = "Static",
Sku = "Standard",
});
var exampleNatGateway = new Azure.Network.NatGateway("exampleNatGateway", new Azure.Network.NatGatewayArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
SkuName = "Standard",
});
var exampleNatGatewayPublicIpAssociation = new Azure.Network.NatGatewayPublicIpAssociation("exampleNatGatewayPublicIpAssociation", new Azure.Network.NatGatewayPublicIpAssociationArgs
{
NatGatewayId = exampleNatGateway.Id,
PublicIpAddressId = examplePublicIp.Id,
});
}
}
NatGatewayPublicIpAssociationArgs
NatGatewayPublicIpAssociationState
NatGatewayState
NetworkConnectionMonitor
Configures a Network Connection Monitor to monitor communication between a Virtual Machine and an endpoint using a Network Watcher.
NetworkConnectionMonitorArgs
NetworkConnectionMonitorState
NetworkInterface
Manages a Network Interface.
NetworkInterfaceApplicationGatewayBackendAddressPoolAssociation
Manages the association between a Network Interface and a Application Gateway's Backend Address Pool.
NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationArgs
NetworkInterfaceApplicationGatewayBackendAddressPoolAssociationState
NetworkInterfaceApplicationSecurityGroupAssociation
Manages the association between a Network Interface and a Application Security Group.
NetworkInterfaceApplicationSecurityGroupAssociationArgs
NetworkInterfaceApplicationSecurityGroupAssociationState
NetworkInterfaceArgs
NetworkInterfaceBackendAddressPoolAssociation
Manages the association between a Network Interface and a Load Balancer's Backend Address Pool.
NetworkInterfaceBackendAddressPoolAssociationArgs
NetworkInterfaceBackendAddressPoolAssociationState
NetworkInterfaceNatRuleAssociation
Manages the association between a Network Interface and a Load Balancer's NAT Rule.
NetworkInterfaceNatRuleAssociationArgs
NetworkInterfaceNatRuleAssociationState
NetworkInterfaceSecurityGroupAssociation
Manages the association between a Network Interface and a Network Security Group.
NetworkInterfaceSecurityGroupAssociationArgs
NetworkInterfaceSecurityGroupAssociationState
NetworkInterfaceState
NetworkPacketCapture
Configures Network Packet Capturing against a Virtual Machine using a Network Watcher.
NetworkPacketCaptureArgs
NetworkPacketCaptureState
NetworkSecurityGroup
Manages a network security group that contains a list of network security rules. Network security groups enable inbound or outbound traffic to be enabled or denied.
NOTE on Network Security Groups and Network Security Rules: This provider currently provides both a standalone Network Security Rule resource, and allows for Network Security Rules to be defined in-line within the Network Security Group resource. At this time you cannot use a Network Security Group with in-line Network Security Rules in conjunction with any Network Security Rule resources. Doing so will cause a conflict of rule settings and will overwrite rules.
NetworkSecurityGroupArgs
NetworkSecurityGroupState
NetworkSecurityRule
Manages a Network Security Rule.
NOTE on Network Security Groups and Network Security Rules: This provider currently provides both a standalone Network Security Rule resource, and allows for Network Security Rules to be defined in-line within the Network Security Group resource. At this time you cannot use a Network Security Group with in-line Network Security Rules in conjunction with any Network Security Rule resources. Doing so will cause a conflict of rule settings and will overwrite rules.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleNetworkSecurityGroup = new Azure.Network.NetworkSecurityGroup("exampleNetworkSecurityGroup", new Azure.Network.NetworkSecurityGroupArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleNetworkSecurityRule = new Azure.Network.NetworkSecurityRule("exampleNetworkSecurityRule", new Azure.Network.NetworkSecurityRuleArgs
{
Priority = 100,
Direction = "Outbound",
Access = "Allow",
Protocol = "Tcp",
SourcePortRange = "*",
DestinationPortRange = "*",
SourceAddressPrefix = "*",
DestinationAddressPrefix = "*",
ResourceGroupName = exampleResourceGroup.Name,
NetworkSecurityGroupName = exampleNetworkSecurityGroup.Name,
});
}
}
NetworkSecurityRuleArgs
NetworkSecurityRuleState
NetworkWatcher
Manages a Network Watcher.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleNetworkWatcher = new Azure.Network.NetworkWatcher("exampleNetworkWatcher", new Azure.Network.NetworkWatcherArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
}
}
NetworkWatcherArgs
NetworkWatcherFlowLog
Manages a Network Watcher Flow Log.
NetworkWatcherFlowLogArgs
NetworkWatcherFlowLogState
NetworkWatcherState
PacketCapture
Configures Packet Capturing against a Virtual Machine using a Network Watcher.
NOTE: This resource has been deprecated in favour of the
azure.network.NetworkConnectionMonitorresource and will be removed in the next major version of the AzureRM Provider. The new resource shares the same fields as this one, and information on migrating across can be found in this guide.
PacketCaptureArgs
PacketCaptureState
PointToPointVpnGateway
Manages a Point-to-Site VPN Gateway.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = new Azure.Network.PointToPointVpnGateway("example", new Azure.Network.PointToPointVpnGatewayArgs
{
Location = azurerm_resource_group.Example.Location,
ResourceGroupName = azurerm_resource_group.Example.Resource_group_name,
VirtualHubId = azurerm_virtual_hub.Example.Id,
VpnServerConfigurationId = azurerm_vpn_server_configuration.Example.Id,
ScaleUnit = 1,
});
}
}
PointToPointVpnGatewayArgs
PointToPointVpnGatewayState
Profile
Manages a Network Profile.
ProfileArgs
ProfileState
PublicIp
Manages a Public IP Address.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var examplePublicIp = new Azure.Network.PublicIp("examplePublicIp", new Azure.Network.PublicIpArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
AllocationMethod = "Static",
Tags =
{
{ "environment", "Production" },
},
});
}
}
PublicIpArgs
PublicIpPrefix
Manages a Public IP Prefix.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var examplePublicIpPrefix = new Azure.Network.PublicIpPrefix("examplePublicIpPrefix", new Azure.Network.PublicIpPrefixArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
PrefixLength = 31,
Tags =
{
{ "environment", "Production" },
},
});
}
}
PublicIpPrefixArgs
PublicIpPrefixState
PublicIpState
Route
Manages a Route within a Route Table.
NOTE on Route Tables and Routes: This provider currently provides both a standalone Route resource, and allows for Routes to be defined in-line within the Route Table resource. At this time you cannot use a Route Table with in-line Routes in conjunction with any Route resources. Doing so will cause a conflict of Route configurations and will overwrite Routes.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleRouteTable = new Azure.Network.RouteTable("exampleRouteTable", new Azure.Network.RouteTableArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleRoute = new Azure.Network.Route("exampleRoute", new Azure.Network.RouteArgs
{
ResourceGroupName = exampleResourceGroup.Name,
RouteTableName = exampleRouteTable.Name,
AddressPrefix = "10.1.0.0/16",
NextHopType = "vnetlocal",
});
}
}
RouteArgs
RouteState
RouteTable
Manages a Route Table
NOTE on Route Tables and Routes: There is both a standalone
routeresource, and allows for Routes to be defined in-line within theroute_tableresource. At this time you cannot use a Route Table with in-line Routes in conjunction with any Route resources. Doing so will cause a conflict of Route configurations and will overwrite Routes.
RouteTableArgs
RouteTableState
Subnet
Manages a subnet. Subnets represent network segments within the IP space defined by the virtual network.
NOTE on Virtual Networks and Subnet's: This provider currently provides both a standalone Subnet resource, and allows for Subnets to be defined in-line within the Virtual Network resource. At this time you cannot use a Virtual Network with in-line Subnets in conjunction with any Subnet resources. Doing so will cause a conflict of Subnet configurations and will overwrite Subnet's.
SubnetArgs
SubnetNatGatewayAssociation
Associates a NAT Gateway with a Subnet within a Virtual Network.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "East US 2",
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
{
AddressSpaces =
{
"10.0.0.0/16",
},
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleSubnet = new Azure.Network.Subnet("exampleSubnet", new Azure.Network.SubnetArgs
{
ResourceGroupName = exampleResourceGroup.Name,
VirtualNetworkName = exampleVirtualNetwork.Name,
AddressPrefix = "10.0.2.0/24",
});
var exampleNatGateway = new Azure.Network.NatGateway("exampleNatGateway", new Azure.Network.NatGatewayArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleSubnetNatGatewayAssociation = new Azure.Network.SubnetNatGatewayAssociation("exampleSubnetNatGatewayAssociation", new Azure.Network.SubnetNatGatewayAssociationArgs
{
SubnetId = exampleSubnet.Id,
NatGatewayId = exampleNatGateway.Id,
});
}
}
SubnetNatGatewayAssociationArgs
SubnetNatGatewayAssociationState
SubnetNetworkSecurityGroupAssociation
Associates a Network Security Group with a Subnet within a Virtual Network.
SubnetNetworkSecurityGroupAssociationArgs
SubnetNetworkSecurityGroupAssociationState
SubnetRouteTableAssociation
Associates a Route Table with a Subnet within a Virtual Network.
SubnetRouteTableAssociationArgs
SubnetRouteTableAssociationState
SubnetState
TrafficManagerEndpoint
Manages a Traffic Manager Endpoint.
TrafficManagerEndpointArgs
TrafficManagerEndpointState
TrafficManagerProfile
Manages a Traffic Manager Profile to which multiple endpoints can be attached.
TrafficManagerProfileArgs
TrafficManagerProfileState
VirtualHub
Manages a Virtual Hub within a Virtual WAN.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleVirtualWan = new Azure.Network.VirtualWan("exampleVirtualWan", new Azure.Network.VirtualWanArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleVirtualHub = new Azure.Network.VirtualHub("exampleVirtualHub", new Azure.Network.VirtualHubArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
VirtualWanId = exampleVirtualWan.Id,
AddressPrefix = "10.0.1.0/24",
});
}
}
VirtualHubArgs
VirtualHubConnection
Manages a Connection for a Virtual Hub.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
{
AddressSpaces =
{
"172.0.0.0/16",
},
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var test = new Azure.Network.VirtualWan("test", new Azure.Network.VirtualWanArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleVirtualHub = new Azure.Network.VirtualHub("exampleVirtualHub", new Azure.Network.VirtualHubArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
VirtualWanId = azurerm_virtual_wan.Example.Id,
AddressPrefix = "10.0.1.0/24",
});
var exampleVirtualHubConnection = new Azure.Network.VirtualHubConnection("exampleVirtualHubConnection", new Azure.Network.VirtualHubConnectionArgs
{
VirtualHubId = exampleVirtualHub.Id,
RemoteVirtualNetworkId = exampleVirtualNetwork.Id,
});
}
}
VirtualHubConnectionArgs
VirtualHubConnectionState
VirtualHubState
VirtualNetwork
Manages a virtual network including any configured subnets. Each subnet can optionally be configured with a security group to be associated with the subnet.
NOTE on Virtual Networks and Subnet's: This provider currently provides both a standalone Subnet resource, and allows for Subnets to be defined in-line within the Virtual Network resource. At this time you cannot use a Virtual Network with in-line Subnets in conjunction with any Subnet resources. Doing so will cause a conflict of Subnet configurations and will overwrite Subnet's.
VirtualNetworkArgs
VirtualNetworkGateway
Manages a Virtual Network Gateway to establish secure, cross-premises connectivity.
Note: Please be aware that provisioning a Virtual Network Gateway takes a long time (between 30 minutes and 1 hour)
VirtualNetworkGatewayArgs
VirtualNetworkGatewayConnection
Manages a connection in an existing Virtual Network Gateway.
VirtualNetworkGatewayConnectionArgs
VirtualNetworkGatewayConnectionState
VirtualNetworkGatewayState
VirtualNetworkPeering
Manages a virtual network peering which allows resources to access other resources in the linked virtual network.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = new Azure.Core.ResourceGroup("example", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var example_1VirtualNetwork = new Azure.Network.VirtualNetwork("example-1VirtualNetwork", new Azure.Network.VirtualNetworkArgs
{
ResourceGroupName = example.Name,
AddressSpaces =
{
"10.0.1.0/24",
},
Location = "West US",
});
var example_2VirtualNetwork = new Azure.Network.VirtualNetwork("example-2VirtualNetwork", new Azure.Network.VirtualNetworkArgs
{
ResourceGroupName = example.Name,
AddressSpaces =
{
"10.0.2.0/24",
},
Location = "West US",
});
var example_1VirtualNetworkPeering = new Azure.Network.VirtualNetworkPeering("example-1VirtualNetworkPeering", new Azure.Network.VirtualNetworkPeeringArgs
{
ResourceGroupName = example.Name,
VirtualNetworkName = example_1VirtualNetwork.Name,
RemoteVirtualNetworkId = example_2VirtualNetwork.Id,
});
var example_2VirtualNetworkPeering = new Azure.Network.VirtualNetworkPeering("example-2VirtualNetworkPeering", new Azure.Network.VirtualNetworkPeeringArgs
{
ResourceGroupName = example.Name,
VirtualNetworkName = example_2VirtualNetwork.Name,
RemoteVirtualNetworkId = example_1VirtualNetwork.Id,
});
}
}
Note
Virtual Network peerings cannot be created, updated or deleted concurrently.
VirtualNetworkPeeringArgs
VirtualNetworkPeeringState
VirtualNetworkState
VirtualWan
Manages a Virtual WAN.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleVirtualWan = new Azure.Network.VirtualWan("exampleVirtualWan", new Azure.Network.VirtualWanArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
}
}
VirtualWanArgs
VirtualWanState
VpnGateway
Manages a VPN Gateway within a Virtual Hub, which enables Site-to-Site communication.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
AddressSpaces =
{
"10.0.0.0/16",
},
});
var exampleVirtualWan = new Azure.Network.VirtualWan("exampleVirtualWan", new Azure.Network.VirtualWanArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleVirtualHub = new Azure.Network.VirtualHub("exampleVirtualHub", new Azure.Network.VirtualHubArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
VirtualWanId = exampleVirtualWan.Id,
AddressPrefix = "10.0.1.0/24",
});
var exampleVpnGateway = new Azure.Network.VpnGateway("exampleVpnGateway", new Azure.Network.VpnGatewayArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
VirtualHubId = exampleVirtualHub.Id,
});
}
}
VpnGatewayArgs
VpnGatewayState
VpnServerConfiguration
Manages a VPN Server Configuration.