1. Packages
  2. Azure Classic
  3. API Docs
  4. network
  5. BgpConnection

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.network.BgpConnection

Explore with Pulumi AI

Manages a Bgp Connection for a Virtual Hub.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleVirtualHub = new azure.network.VirtualHub("example", {
    name: "example-vhub",
    resourceGroupName: example.name,
    location: example.location,
    sku: "Standard",
});
const examplePublicIp = new azure.network.PublicIp("example", {
    name: "example-pip",
    location: example.location,
    resourceGroupName: example.name,
    allocationMethod: "Static",
    sku: "Standard",
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
    name: "example-vnet",
    addressSpaces: ["10.5.0.0/16"],
    location: example.location,
    resourceGroupName: example.name,
});
const exampleSubnet = new azure.network.Subnet("example", {
    name: "RouteServerSubnet",
    resourceGroupName: example.name,
    virtualNetworkName: exampleVirtualNetwork.name,
    addressPrefixes: ["10.5.1.0/24"],
});
const exampleVirtualHubIp = new azure.network.VirtualHubIp("example", {
    name: "example-vhubip",
    virtualHubId: exampleVirtualHub.id,
    privateIpAddress: "10.5.1.18",
    privateIpAllocationMethod: "Static",
    publicIpAddressId: examplePublicIp.id,
    subnetId: exampleSubnet.id,
});
const exampleBgpConnection = new azure.network.BgpConnection("example", {
    name: "example-vhub-bgpconnection",
    virtualHubId: exampleVirtualHub.id,
    peerAsn: 65514,
    peerIp: "169.254.21.5",
}, {
    dependsOn: [exampleVirtualHubIp],
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_virtual_hub = azure.network.VirtualHub("example",
    name="example-vhub",
    resource_group_name=example.name,
    location=example.location,
    sku="Standard")
example_public_ip = azure.network.PublicIp("example",
    name="example-pip",
    location=example.location,
    resource_group_name=example.name,
    allocation_method="Static",
    sku="Standard")
example_virtual_network = azure.network.VirtualNetwork("example",
    name="example-vnet",
    address_spaces=["10.5.0.0/16"],
    location=example.location,
    resource_group_name=example.name)
example_subnet = azure.network.Subnet("example",
    name="RouteServerSubnet",
    resource_group_name=example.name,
    virtual_network_name=example_virtual_network.name,
    address_prefixes=["10.5.1.0/24"])
example_virtual_hub_ip = azure.network.VirtualHubIp("example",
    name="example-vhubip",
    virtual_hub_id=example_virtual_hub.id,
    private_ip_address="10.5.1.18",
    private_ip_allocation_method="Static",
    public_ip_address_id=example_public_ip.id,
    subnet_id=example_subnet.id)
example_bgp_connection = azure.network.BgpConnection("example",
    name="example-vhub-bgpconnection",
    virtual_hub_id=example_virtual_hub.id,
    peer_asn=65514,
    peer_ip="169.254.21.5",
    opts = pulumi.ResourceOptions(depends_on=[example_virtual_hub_ip]))
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleVirtualHub, err := network.NewVirtualHub(ctx, "example", &network.VirtualHubArgs{
			Name:              pulumi.String("example-vhub"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			Sku:               pulumi.String("Standard"),
		})
		if err != nil {
			return err
		}
		examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
			Name:              pulumi.String("example-pip"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			AllocationMethod:  pulumi.String("Static"),
			Sku:               pulumi.String("Standard"),
		})
		if err != nil {
			return err
		}
		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
			Name: pulumi.String("example-vnet"),
			AddressSpaces: pulumi.StringArray{
				pulumi.String("10.5.0.0/16"),
			},
			Location:          example.Location,
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
			Name:               pulumi.String("RouteServerSubnet"),
			ResourceGroupName:  example.Name,
			VirtualNetworkName: exampleVirtualNetwork.Name,
			AddressPrefixes: pulumi.StringArray{
				pulumi.String("10.5.1.0/24"),
			},
		})
		if err != nil {
			return err
		}
		exampleVirtualHubIp, err := network.NewVirtualHubIp(ctx, "example", &network.VirtualHubIpArgs{
			Name:                      pulumi.String("example-vhubip"),
			VirtualHubId:              exampleVirtualHub.ID(),
			PrivateIpAddress:          pulumi.String("10.5.1.18"),
			PrivateIpAllocationMethod: pulumi.String("Static"),
			PublicIpAddressId:         examplePublicIp.ID(),
			SubnetId:                  exampleSubnet.ID(),
		})
		if err != nil {
			return err
		}
		_, err = network.NewBgpConnection(ctx, "example", &network.BgpConnectionArgs{
			Name:         pulumi.String("example-vhub-bgpconnection"),
			VirtualHubId: exampleVirtualHub.ID(),
			PeerAsn:      pulumi.Int(65514),
			PeerIp:       pulumi.String("169.254.21.5"),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleVirtualHubIp,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });

    var exampleVirtualHub = new Azure.Network.VirtualHub("example", new()
    {
        Name = "example-vhub",
        ResourceGroupName = example.Name,
        Location = example.Location,
        Sku = "Standard",
    });

    var examplePublicIp = new Azure.Network.PublicIp("example", new()
    {
        Name = "example-pip",
        Location = example.Location,
        ResourceGroupName = example.Name,
        AllocationMethod = "Static",
        Sku = "Standard",
    });

    var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
    {
        Name = "example-vnet",
        AddressSpaces = new[]
        {
            "10.5.0.0/16",
        },
        Location = example.Location,
        ResourceGroupName = example.Name,
    });

    var exampleSubnet = new Azure.Network.Subnet("example", new()
    {
        Name = "RouteServerSubnet",
        ResourceGroupName = example.Name,
        VirtualNetworkName = exampleVirtualNetwork.Name,
        AddressPrefixes = new[]
        {
            "10.5.1.0/24",
        },
    });

    var exampleVirtualHubIp = new Azure.Network.VirtualHubIp("example", new()
    {
        Name = "example-vhubip",
        VirtualHubId = exampleVirtualHub.Id,
        PrivateIpAddress = "10.5.1.18",
        PrivateIpAllocationMethod = "Static",
        PublicIpAddressId = examplePublicIp.Id,
        SubnetId = exampleSubnet.Id,
    });

    var exampleBgpConnection = new Azure.Network.BgpConnection("example", new()
    {
        Name = "example-vhub-bgpconnection",
        VirtualHubId = exampleVirtualHub.Id,
        PeerAsn = 65514,
        PeerIp = "169.254.21.5",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            exampleVirtualHubIp,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualHub;
import com.pulumi.azure.network.VirtualHubArgs;
import com.pulumi.azure.network.PublicIp;
import com.pulumi.azure.network.PublicIpArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.network.VirtualHubIp;
import com.pulumi.azure.network.VirtualHubIpArgs;
import com.pulumi.azure.network.BgpConnection;
import com.pulumi.azure.network.BgpConnectionArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());

        var exampleVirtualHub = new VirtualHub("exampleVirtualHub", VirtualHubArgs.builder()
            .name("example-vhub")
            .resourceGroupName(example.name())
            .location(example.location())
            .sku("Standard")
            .build());

        var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
            .name("example-pip")
            .location(example.location())
            .resourceGroupName(example.name())
            .allocationMethod("Static")
            .sku("Standard")
            .build());

        var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
            .name("example-vnet")
            .addressSpaces("10.5.0.0/16")
            .location(example.location())
            .resourceGroupName(example.name())
            .build());

        var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
            .name("RouteServerSubnet")
            .resourceGroupName(example.name())
            .virtualNetworkName(exampleVirtualNetwork.name())
            .addressPrefixes("10.5.1.0/24")
            .build());

        var exampleVirtualHubIp = new VirtualHubIp("exampleVirtualHubIp", VirtualHubIpArgs.builder()
            .name("example-vhubip")
            .virtualHubId(exampleVirtualHub.id())
            .privateIpAddress("10.5.1.18")
            .privateIpAllocationMethod("Static")
            .publicIpAddressId(examplePublicIp.id())
            .subnetId(exampleSubnet.id())
            .build());

        var exampleBgpConnection = new BgpConnection("exampleBgpConnection", BgpConnectionArgs.builder()
            .name("example-vhub-bgpconnection")
            .virtualHubId(exampleVirtualHub.id())
            .peerAsn(65514)
            .peerIp("169.254.21.5")
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleVirtualHubIp)
                .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleVirtualHub:
    type: azure:network:VirtualHub
    name: example
    properties:
      name: example-vhub
      resourceGroupName: ${example.name}
      location: ${example.location}
      sku: Standard
  examplePublicIp:
    type: azure:network:PublicIp
    name: example
    properties:
      name: example-pip
      location: ${example.location}
      resourceGroupName: ${example.name}
      allocationMethod: Static
      sku: Standard
  exampleVirtualNetwork:
    type: azure:network:VirtualNetwork
    name: example
    properties:
      name: example-vnet
      addressSpaces:
        - 10.5.0.0/16
      location: ${example.location}
      resourceGroupName: ${example.name}
  exampleSubnet:
    type: azure:network:Subnet
    name: example
    properties:
      name: RouteServerSubnet
      resourceGroupName: ${example.name}
      virtualNetworkName: ${exampleVirtualNetwork.name}
      addressPrefixes:
        - 10.5.1.0/24
  exampleVirtualHubIp:
    type: azure:network:VirtualHubIp
    name: example
    properties:
      name: example-vhubip
      virtualHubId: ${exampleVirtualHub.id}
      privateIpAddress: 10.5.1.18
      privateIpAllocationMethod: Static
      publicIpAddressId: ${examplePublicIp.id}
      subnetId: ${exampleSubnet.id}
  exampleBgpConnection:
    type: azure:network:BgpConnection
    name: example
    properties:
      name: example-vhub-bgpconnection
      virtualHubId: ${exampleVirtualHub.id}
      peerAsn: 65514
      peerIp: 169.254.21.5
    options:
      dependsOn:
        - ${exampleVirtualHubIp}
Copy

Create BgpConnection Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new BgpConnection(name: string, args: BgpConnectionArgs, opts?: CustomResourceOptions);
@overload
def BgpConnection(resource_name: str,
                  args: BgpConnectionArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def BgpConnection(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  peer_asn: Optional[int] = None,
                  peer_ip: Optional[str] = None,
                  virtual_hub_id: Optional[str] = None,
                  name: Optional[str] = None,
                  virtual_network_connection_id: Optional[str] = None)
func NewBgpConnection(ctx *Context, name string, args BgpConnectionArgs, opts ...ResourceOption) (*BgpConnection, error)
public BgpConnection(string name, BgpConnectionArgs args, CustomResourceOptions? opts = null)
public BgpConnection(String name, BgpConnectionArgs args)
public BgpConnection(String name, BgpConnectionArgs args, CustomResourceOptions options)
type: azure:network:BgpConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BgpConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BgpConnectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BgpConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BgpConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BgpConnectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var bgpConnectionResource = new Azure.Network.BgpConnection("bgpConnectionResource", new()
{
    PeerAsn = 0,
    PeerIp = "string",
    VirtualHubId = "string",
    Name = "string",
    VirtualNetworkConnectionId = "string",
});
Copy
example, err := network.NewBgpConnection(ctx, "bgpConnectionResource", &network.BgpConnectionArgs{
	PeerAsn:                    pulumi.Int(0),
	PeerIp:                     pulumi.String("string"),
	VirtualHubId:               pulumi.String("string"),
	Name:                       pulumi.String("string"),
	VirtualNetworkConnectionId: pulumi.String("string"),
})
Copy
var bgpConnectionResource = new BgpConnection("bgpConnectionResource", BgpConnectionArgs.builder()
    .peerAsn(0)
    .peerIp("string")
    .virtualHubId("string")
    .name("string")
    .virtualNetworkConnectionId("string")
    .build());
Copy
bgp_connection_resource = azure.network.BgpConnection("bgpConnectionResource",
    peer_asn=0,
    peer_ip="string",
    virtual_hub_id="string",
    name="string",
    virtual_network_connection_id="string")
Copy
const bgpConnectionResource = new azure.network.BgpConnection("bgpConnectionResource", {
    peerAsn: 0,
    peerIp: "string",
    virtualHubId: "string",
    name: "string",
    virtualNetworkConnectionId: "string",
});
Copy
type: azure:network:BgpConnection
properties:
    name: string
    peerAsn: 0
    peerIp: string
    virtualHubId: string
    virtualNetworkConnectionId: string
Copy

BgpConnection Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The BgpConnection resource accepts the following input properties:

PeerAsn
This property is required.
Changes to this property will trigger replacement.
int
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
PeerIp
This property is required.
Changes to this property will trigger replacement.
string
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
VirtualHubId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
VirtualNetworkConnectionId string
The ID of virtual network connection.
PeerAsn
This property is required.
Changes to this property will trigger replacement.
int
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
PeerIp
This property is required.
Changes to this property will trigger replacement.
string
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
VirtualHubId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
Name Changes to this property will trigger replacement. string
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
VirtualNetworkConnectionId string
The ID of virtual network connection.
peerAsn
This property is required.
Changes to this property will trigger replacement.
Integer
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peerIp
This property is required.
Changes to this property will trigger replacement.
String
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtualHubId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtualNetworkConnectionId String
The ID of virtual network connection.
peerAsn
This property is required.
Changes to this property will trigger replacement.
number
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peerIp
This property is required.
Changes to this property will trigger replacement.
string
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtualHubId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. string
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtualNetworkConnectionId string
The ID of virtual network connection.
peer_asn
This property is required.
Changes to this property will trigger replacement.
int
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peer_ip
This property is required.
Changes to this property will trigger replacement.
str
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtual_hub_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. str
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtual_network_connection_id str
The ID of virtual network connection.
peerAsn
This property is required.
Changes to this property will trigger replacement.
Number
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peerIp
This property is required.
Changes to this property will trigger replacement.
String
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtualHubId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
name Changes to this property will trigger replacement. String
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtualNetworkConnectionId String
The ID of virtual network connection.

Outputs

All input properties are implicitly available as output properties. Additionally, the BgpConnection resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing BgpConnection Resource

Get an existing BgpConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BgpConnectionState, opts?: CustomResourceOptions): BgpConnection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        peer_asn: Optional[int] = None,
        peer_ip: Optional[str] = None,
        virtual_hub_id: Optional[str] = None,
        virtual_network_connection_id: Optional[str] = None) -> BgpConnection
func GetBgpConnection(ctx *Context, name string, id IDInput, state *BgpConnectionState, opts ...ResourceOption) (*BgpConnection, error)
public static BgpConnection Get(string name, Input<string> id, BgpConnectionState? state, CustomResourceOptions? opts = null)
public static BgpConnection get(String name, Output<String> id, BgpConnectionState state, CustomResourceOptions options)
resources:  _:    type: azure:network:BgpConnection    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Name Changes to this property will trigger replacement. string
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
PeerAsn Changes to this property will trigger replacement. int
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
PeerIp Changes to this property will trigger replacement. string
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
VirtualHubId Changes to this property will trigger replacement. string
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
VirtualNetworkConnectionId string
The ID of virtual network connection.
Name Changes to this property will trigger replacement. string
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
PeerAsn Changes to this property will trigger replacement. int
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
PeerIp Changes to this property will trigger replacement. string
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
VirtualHubId Changes to this property will trigger replacement. string
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
VirtualNetworkConnectionId string
The ID of virtual network connection.
name Changes to this property will trigger replacement. String
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peerAsn Changes to this property will trigger replacement. Integer
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peerIp Changes to this property will trigger replacement. String
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtualHubId Changes to this property will trigger replacement. String
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
virtualNetworkConnectionId String
The ID of virtual network connection.
name Changes to this property will trigger replacement. string
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peerAsn Changes to this property will trigger replacement. number
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peerIp Changes to this property will trigger replacement. string
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtualHubId Changes to this property will trigger replacement. string
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
virtualNetworkConnectionId string
The ID of virtual network connection.
name Changes to this property will trigger replacement. str
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peer_asn Changes to this property will trigger replacement. int
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peer_ip Changes to this property will trigger replacement. str
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtual_hub_id Changes to this property will trigger replacement. str
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
virtual_network_connection_id str
The ID of virtual network connection.
name Changes to this property will trigger replacement. String
The name which should be used for this Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peerAsn Changes to this property will trigger replacement. Number
The peer autonomous system number for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
peerIp Changes to this property will trigger replacement. String
The peer IP address for the Virtual Hub Bgp Connection. Changing this forces a new resource to be created.
virtualHubId Changes to this property will trigger replacement. String
The ID of the Virtual Hub within which this Bgp connection should be created. Changing this forces a new resource to be created.
virtualNetworkConnectionId String
The ID of virtual network connection.

Import

Virtual Hub Bgp Connections can be imported using the resource id, e.g.

$ pulumi import azure:network/bgpConnection:BgpConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/virtualHubs/virtualHub1/bgpConnections/connection1
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.