published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
The Azure VPC Peering Connection resource allows the creation and management of Aiven VPC Peering Connections.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var foo = new Aiven.AzureVpcPeeringConnection("foo", new()
{
VpcId = data.Aiven_project_vpc.Vpc.Id,
AzureSubscriptionId = "xxxxxx",
PeerResourceGroup = "my-pr1",
VnetName = "my-vnet1",
PeerAzureAppId = "xxxxxx",
PeerAzureTenantId = "xxxxxx",
});
});
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v5/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.NewAzureVpcPeeringConnection(ctx, "foo", &aiven.AzureVpcPeeringConnectionArgs{
VpcId: pulumi.Any(data.Aiven_project_vpc.Vpc.Id),
AzureSubscriptionId: pulumi.String("xxxxxx"),
PeerResourceGroup: pulumi.String("my-pr1"),
VnetName: pulumi.String("my-vnet1"),
PeerAzureAppId: pulumi.String("xxxxxx"),
PeerAzureTenantId: pulumi.String("xxxxxx"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.AzureVpcPeeringConnection;
import com.pulumi.aiven.AzureVpcPeeringConnectionArgs;
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 foo = new AzureVpcPeeringConnection("foo", AzureVpcPeeringConnectionArgs.builder()
.vpcId(data.aiven_project_vpc().vpc().id())
.azureSubscriptionId("xxxxxx")
.peerResourceGroup("my-pr1")
.vnetName("my-vnet1")
.peerAzureAppId("xxxxxx")
.peerAzureTenantId("xxxxxx")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const foo = new aiven.AzureVpcPeeringConnection("foo", {
vpcId: data.aiven_project_vpc.vpc.id,
azureSubscriptionId: "xxxxxx",
peerResourceGroup: "my-pr1",
vnetName: "my-vnet1",
peerAzureAppId: "xxxxxx",
peerAzureTenantId: "xxxxxx",
});
import pulumi
import pulumi_aiven as aiven
foo = aiven.AzureVpcPeeringConnection("foo",
vpc_id=data["aiven_project_vpc"]["vpc"]["id"],
azure_subscription_id="xxxxxx",
peer_resource_group="my-pr1",
vnet_name="my-vnet1",
peer_azure_app_id="xxxxxx",
peer_azure_tenant_id="xxxxxx")
resources:
foo:
type: aiven:AzureVpcPeeringConnection
properties:
vpcId: ${data.aiven_project_vpc.vpc.id}
azureSubscriptionId: xxxxxx
peerResourceGroup: my-pr1
vnetName: my-vnet1
peerAzureAppId: xxxxxx
peerAzureTenantId: xxxxxx
Create AzureVpcPeeringConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzureVpcPeeringConnection(name: string, args: AzureVpcPeeringConnectionArgs, opts?: CustomResourceOptions);@overload
def AzureVpcPeeringConnection(resource_name: str,
args: AzureVpcPeeringConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AzureVpcPeeringConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
azure_subscription_id: Optional[str] = None,
peer_azure_app_id: Optional[str] = None,
peer_azure_tenant_id: Optional[str] = None,
peer_resource_group: Optional[str] = None,
vnet_name: Optional[str] = None,
vpc_id: Optional[str] = None)func NewAzureVpcPeeringConnection(ctx *Context, name string, args AzureVpcPeeringConnectionArgs, opts ...ResourceOption) (*AzureVpcPeeringConnection, error)public AzureVpcPeeringConnection(string name, AzureVpcPeeringConnectionArgs args, CustomResourceOptions? opts = null)
public AzureVpcPeeringConnection(String name, AzureVpcPeeringConnectionArgs args)
public AzureVpcPeeringConnection(String name, AzureVpcPeeringConnectionArgs args, CustomResourceOptions options)
type: aiven:AzureVpcPeeringConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AzureVpcPeeringConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AzureVpcPeeringConnectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AzureVpcPeeringConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AzureVpcPeeringConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AzureVpcPeeringConnectionArgs
- 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 azureVpcPeeringConnectionResource = new Aiven.AzureVpcPeeringConnection("azureVpcPeeringConnectionResource", new()
{
AzureSubscriptionId = "string",
PeerAzureAppId = "string",
PeerAzureTenantId = "string",
PeerResourceGroup = "string",
VnetName = "string",
VpcId = "string",
});
example, err := aiven.NewAzureVpcPeeringConnection(ctx, "azureVpcPeeringConnectionResource", &aiven.AzureVpcPeeringConnectionArgs{
AzureSubscriptionId: pulumi.String("string"),
PeerAzureAppId: pulumi.String("string"),
PeerAzureTenantId: pulumi.String("string"),
PeerResourceGroup: pulumi.String("string"),
VnetName: pulumi.String("string"),
VpcId: pulumi.String("string"),
})
var azureVpcPeeringConnectionResource = new AzureVpcPeeringConnection("azureVpcPeeringConnectionResource", AzureVpcPeeringConnectionArgs.builder()
.azureSubscriptionId("string")
.peerAzureAppId("string")
.peerAzureTenantId("string")
.peerResourceGroup("string")
.vnetName("string")
.vpcId("string")
.build());
azure_vpc_peering_connection_resource = aiven.AzureVpcPeeringConnection("azureVpcPeeringConnectionResource",
azure_subscription_id="string",
peer_azure_app_id="string",
peer_azure_tenant_id="string",
peer_resource_group="string",
vnet_name="string",
vpc_id="string")
const azureVpcPeeringConnectionResource = new aiven.AzureVpcPeeringConnection("azureVpcPeeringConnectionResource", {
azureSubscriptionId: "string",
peerAzureAppId: "string",
peerAzureTenantId: "string",
peerResourceGroup: "string",
vnetName: "string",
vpcId: "string",
});
type: aiven:AzureVpcPeeringConnection
properties:
azureSubscriptionId: string
peerAzureAppId: string
peerAzureTenantId: string
peerResourceGroup: string
vnetName: string
vpcId: string
AzureVpcPeeringConnection 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 AzureVpcPeeringConnection resource accepts the following input properties:
- Azure
Subscription stringId - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Azure stringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Azure stringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Resource stringGroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Vnet
Name string - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- Vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- Azure
Subscription stringId - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Azure stringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Azure stringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Resource stringGroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Vnet
Name string - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- Vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- azure
Subscription StringId - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure StringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure StringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer
Resource StringGroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- vnet
Name String - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- vpc
Id String - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- azure
Subscription stringId - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure stringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure stringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer
Resource stringGroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- vnet
Name string - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- azure_
subscription_ strid - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- peer_
azure_ strapp_ id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- peer_
azure_ strtenant_ id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer_
resource_ strgroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- vnet_
name str - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- vpc_
id str - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- azure
Subscription StringId - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure StringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure StringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer
Resource StringGroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- vnet
Name String - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- vpc
Id String - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the AzureVpcPeeringConnection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Peering
Connection stringId - Cloud provider identifier for the peering connection if available
- State string
- State of the peering connection
- State
Info Dictionary<string, object> - State-specific help or error information
- Id string
- The provider-assigned unique ID for this managed resource.
- Peering
Connection stringId - Cloud provider identifier for the peering connection if available
- State string
- State of the peering connection
- State
Info map[string]interface{} - State-specific help or error information
- id String
- The provider-assigned unique ID for this managed resource.
- peering
Connection StringId - Cloud provider identifier for the peering connection if available
- state String
- State of the peering connection
- state
Info Map<String,Object> - State-specific help or error information
- id string
- The provider-assigned unique ID for this managed resource.
- peering
Connection stringId - Cloud provider identifier for the peering connection if available
- state string
- State of the peering connection
- state
Info {[key: string]: any} - State-specific help or error information
- id str
- The provider-assigned unique ID for this managed resource.
- peering_
connection_ strid - Cloud provider identifier for the peering connection if available
- state str
- State of the peering connection
- state_
info Mapping[str, Any] - State-specific help or error information
- id String
- The provider-assigned unique ID for this managed resource.
- peering
Connection StringId - Cloud provider identifier for the peering connection if available
- state String
- State of the peering connection
- state
Info Map<Any> - State-specific help or error information
Look up Existing AzureVpcPeeringConnection Resource
Get an existing AzureVpcPeeringConnection 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?: AzureVpcPeeringConnectionState, opts?: CustomResourceOptions): AzureVpcPeeringConnection@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
azure_subscription_id: Optional[str] = None,
peer_azure_app_id: Optional[str] = None,
peer_azure_tenant_id: Optional[str] = None,
peer_resource_group: Optional[str] = None,
peering_connection_id: Optional[str] = None,
state: Optional[str] = None,
state_info: Optional[Mapping[str, Any]] = None,
vnet_name: Optional[str] = None,
vpc_id: Optional[str] = None) -> AzureVpcPeeringConnectionfunc GetAzureVpcPeeringConnection(ctx *Context, name string, id IDInput, state *AzureVpcPeeringConnectionState, opts ...ResourceOption) (*AzureVpcPeeringConnection, error)public static AzureVpcPeeringConnection Get(string name, Input<string> id, AzureVpcPeeringConnectionState? state, CustomResourceOptions? opts = null)public static AzureVpcPeeringConnection get(String name, Output<String> id, AzureVpcPeeringConnectionState state, CustomResourceOptions options)resources: _: type: aiven:AzureVpcPeeringConnection get: id: ${id}- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Azure
Subscription stringId - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Azure stringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Azure stringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Resource stringGroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Peering
Connection stringId - Cloud provider identifier for the peering connection if available
- State string
- State of the peering connection
- State
Info Dictionary<string, object> - State-specific help or error information
- Vnet
Name string - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- Vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- Azure
Subscription stringId - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Azure stringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Azure stringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- Peer
Resource stringGroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- Peering
Connection stringId - Cloud provider identifier for the peering connection if available
- State string
- State of the peering connection
- State
Info map[string]interface{} - State-specific help or error information
- Vnet
Name string - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- Vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- azure
Subscription StringId - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure StringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure StringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer
Resource StringGroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peering
Connection StringId - Cloud provider identifier for the peering connection if available
- state String
- State of the peering connection
- state
Info Map<String,Object> - State-specific help or error information
- vnet
Name String - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- vpc
Id String - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- azure
Subscription stringId - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure stringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure stringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer
Resource stringGroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peering
Connection stringId - Cloud provider identifier for the peering connection if available
- state string
- State of the peering connection
- state
Info {[key: string]: any} - State-specific help or error information
- vnet
Name string - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- vpc
Id string - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- azure_
subscription_ strid - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- peer_
azure_ strapp_ id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- peer_
azure_ strtenant_ id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer_
resource_ strgroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peering_
connection_ strid - Cloud provider identifier for the peering connection if available
- state str
- State of the peering connection
- state_
info Mapping[str, Any] - State-specific help or error information
- vnet_
name str - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- vpc_
id str - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
- azure
Subscription StringId - Azure Subscription ID. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure StringApp Id - Azure app registration id in UUID4 form that is allowed to create a peering to the peer vnet. This property cannot be changed, doing so forces recreation of the resource.
- peer
Azure StringTenant Id - Azure tenant id in UUID4 form. This property cannot be changed, doing so forces recreation of the resource.
- peer
Resource StringGroup - Azure resource group name of the peered VPC. This property cannot be changed, doing so forces recreation of the resource.
- peering
Connection StringId - Cloud provider identifier for the peering connection if available
- state String
- State of the peering connection
- state
Info Map<Any> - State-specific help or error information
- vnet
Name String - Azure Network name. This property cannot be changed, doing so forces recreation of the resource.
- vpc
Id String - The VPC the peering connection belongs to. This property cannot be changed, doing so forces recreation of the resource.
Import
$ pulumi import aiven:index/azureVpcPeeringConnection:AzureVpcPeeringConnection foo project_name/vpc_id/azure_subscription_id/vnet_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.
published on Monday, Mar 9, 2026 by Pulumi
