published on Thursday, Oct 22, 2026 by Pulumi
published on Thursday, Oct 22, 2026 by Pulumi
Creates and manages an Azure VPC peering connection with an Aiven VPC. If this resource is missing (for example, after a service power off), it’s removed from the state and a new create plan is generated.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const exampleOrganization = new aiven.Organization("example", {name: "Aiven Ltd"});
const exampleOrganizationVpc = new aiven.OrganizationVpc("example", {
organizationId: exampleOrganization.id,
cloudName: "aws-eu-west-1",
networkCidr: "10.0.0.0/24",
});
const example = new aiven.AzureOrgVpcPeeringConnection("example", {
organizationId: exampleOrganization.id,
organizationVpcId: exampleOrganizationVpc.organizationVpcId,
azureSubscriptionId: "12345678-1234-1234-1234-123456789012",
vnetName: "my-vnet",
peerResourceGroup: "my-resource-group",
peerAzureAppId: "87654321-4321-4321-4321-210987654321",
peerAzureTenantId: "11111111-2222-3333-4444-555555555555",
});
import pulumi
import pulumi_aiven as aiven
example_organization = aiven.Organization("example", name="Aiven Ltd")
example_organization_vpc = aiven.OrganizationVpc("example",
organization_id=example_organization.id,
cloud_name="aws-eu-west-1",
network_cidr="10.0.0.0/24")
example = aiven.AzureOrgVpcPeeringConnection("example",
organization_id=example_organization.id,
organization_vpc_id=example_organization_vpc.organization_vpc_id,
azure_subscription_id="12345678-1234-1234-1234-123456789012",
vnet_name="my-vnet",
peer_resource_group="my-resource-group",
peer_azure_app_id="87654321-4321-4321-4321-210987654321",
peer_azure_tenant_id="11111111-2222-3333-4444-555555555555")
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleOrganization, err := aiven.NewOrganization(ctx, "example", &aiven.OrganizationArgs{
Name: pulumi.String("Aiven Ltd"),
})
if err != nil {
return err
}
exampleOrganizationVpc, err := aiven.NewOrganizationVpc(ctx, "example", &aiven.OrganizationVpcArgs{
OrganizationId: exampleOrganization.ID().ToIDOutput().ToStringOutput(),
CloudName: pulumi.String("aws-eu-west-1"),
NetworkCidr: pulumi.String("10.0.0.0/24"),
})
if err != nil {
return err
}
_, err = aiven.NewAzureOrgVpcPeeringConnection(ctx, "example", &aiven.AzureOrgVpcPeeringConnectionArgs{
OrganizationId: exampleOrganization.ID().ToIDOutput().ToStringOutput(),
OrganizationVpcId: exampleOrganizationVpc.OrganizationVpcId,
AzureSubscriptionId: pulumi.String("12345678-1234-1234-1234-123456789012"),
VnetName: pulumi.String("my-vnet"),
PeerResourceGroup: pulumi.String("my-resource-group"),
PeerAzureAppId: pulumi.String("87654321-4321-4321-4321-210987654321"),
PeerAzureTenantId: pulumi.String("11111111-2222-3333-4444-555555555555"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var exampleOrganization = new Aiven.Organization("example", new()
{
Name = "Aiven Ltd",
});
var exampleOrganizationVpc = new Aiven.OrganizationVpc("example", new()
{
OrganizationId = exampleOrganization.Id,
CloudName = "aws-eu-west-1",
NetworkCidr = "10.0.0.0/24",
});
var example = new Aiven.AzureOrgVpcPeeringConnection("example", new()
{
OrganizationId = exampleOrganization.Id,
OrganizationVpcId = exampleOrganizationVpc.OrganizationVpcId,
AzureSubscriptionId = "12345678-1234-1234-1234-123456789012",
VnetName = "my-vnet",
PeerResourceGroup = "my-resource-group",
PeerAzureAppId = "87654321-4321-4321-4321-210987654321",
PeerAzureTenantId = "11111111-2222-3333-4444-555555555555",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.Organization;
import com.pulumi.aiven.OrganizationArgs;
import com.pulumi.aiven.OrganizationVpc;
import com.pulumi.aiven.OrganizationVpcArgs;
import com.pulumi.aiven.AzureOrgVpcPeeringConnection;
import com.pulumi.aiven.AzureOrgVpcPeeringConnectionArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 exampleOrganization = new Organization("exampleOrganization", OrganizationArgs.builder()
.name("Aiven Ltd")
.build());
var exampleOrganizationVpc = new OrganizationVpc("exampleOrganizationVpc", OrganizationVpcArgs.builder()
.organizationId(exampleOrganization.id())
.cloudName("aws-eu-west-1")
.networkCidr("10.0.0.0/24")
.build());
var example = new AzureOrgVpcPeeringConnection("example", AzureOrgVpcPeeringConnectionArgs.builder()
.organizationId(exampleOrganization.id())
.organizationVpcId(exampleOrganizationVpc.organizationVpcId())
.azureSubscriptionId("12345678-1234-1234-1234-123456789012")
.vnetName("my-vnet")
.peerResourceGroup("my-resource-group")
.peerAzureAppId("87654321-4321-4321-4321-210987654321")
.peerAzureTenantId("11111111-2222-3333-4444-555555555555")
.build());
}
}
resources:
example:
type: aiven:AzureOrgVpcPeeringConnection
properties:
organizationId: ${exampleOrganization.id}
organizationVpcId: ${exampleOrganizationVpc.organizationVpcId}
azureSubscriptionId: 12345678-1234-1234-1234-123456789012
vnetName: my-vnet
peerResourceGroup: my-resource-group
peerAzureAppId: 87654321-4321-4321-4321-210987654321
peerAzureTenantId: 11111111-2222-3333-4444-555555555555
exampleOrganizationVpc:
type: aiven:OrganizationVpc
name: example
properties:
organizationId: ${exampleOrganization.id}
cloudName: aws-eu-west-1
networkCidr: 10.0.0.0/24
exampleOrganization:
type: aiven:Organization
name: example
properties:
name: Aiven Ltd
terraform {
required_providers {
aiven = {
source = "pulumi/aiven"
}
}
}
resource "aiven_azure_org_vpc_peering_connection" "example" {
lifecycle {
create_before_destroy = true
}
organization_id = aiven_organization.example.id
organization_vpc_id = aiven_organization_vpc.example.organization_vpc_id
azure_subscription_id = "12345678-1234-1234-1234-123456789012"
vnet_name = "my-vnet"
peer_resource_group = "my-resource-group"
peer_azure_app_id = "87654321-4321-4321-4321-210987654321"
peer_azure_tenant_id = "11111111-2222-3333-4444-555555555555"
}
resource "aiven_organization_vpc" "example" {
lifecycle {
create_before_destroy = true
}
organization_id = aiven_organization.example.id
cloud_name = "aws-eu-west-1"
network_cidr = "10.0.0.0/24"
}
resource "aiven_organization" "example" {
lifecycle {
create_before_destroy = true
}
name = "Aiven Ltd"
}
Create AzureOrgVpcPeeringConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AzureOrgVpcPeeringConnection(name: string, args: AzureOrgVpcPeeringConnectionArgs, opts?: CustomResourceOptions);@overload
def AzureOrgVpcPeeringConnection(resource_name: str,
args: AzureOrgVpcPeeringConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AzureOrgVpcPeeringConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
azure_subscription_id: Optional[str] = None,
organization_id: Optional[str] = None,
organization_vpc_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,
timeouts: Optional[AzureOrgVpcPeeringConnectionTimeoutsArgs] = None)func NewAzureOrgVpcPeeringConnection(ctx *Context, name string, args AzureOrgVpcPeeringConnectionArgs, opts ...ResourceOption) (*AzureOrgVpcPeeringConnection, error)public AzureOrgVpcPeeringConnection(string name, AzureOrgVpcPeeringConnectionArgs args, CustomResourceOptions? opts = null)
public AzureOrgVpcPeeringConnection(String name, AzureOrgVpcPeeringConnectionArgs args)
public AzureOrgVpcPeeringConnection(String name, AzureOrgVpcPeeringConnectionArgs args, CustomResourceOptions options)
type: aiven:AzureOrgVpcPeeringConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aiven_azure_org_vpc_peering_connection" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AzureOrgVpcPeeringConnectionArgs
- 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 AzureOrgVpcPeeringConnectionArgs
- 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 AzureOrgVpcPeeringConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AzureOrgVpcPeeringConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AzureOrgVpcPeeringConnectionArgs
- 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 azureOrgVpcPeeringConnectionResource = new Aiven.AzureOrgVpcPeeringConnection("azureOrgVpcPeeringConnectionResource", new()
{
AzureSubscriptionId = "string",
OrganizationId = "string",
OrganizationVpcId = "string",
PeerAzureAppId = "string",
PeerAzureTenantId = "string",
PeerResourceGroup = "string",
VnetName = "string",
Timeouts = new Aiven.Inputs.AzureOrgVpcPeeringConnectionTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := aiven.NewAzureOrgVpcPeeringConnection(ctx, "azureOrgVpcPeeringConnectionResource", &aiven.AzureOrgVpcPeeringConnectionArgs{
AzureSubscriptionId: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
OrganizationVpcId: pulumi.String("string"),
PeerAzureAppId: pulumi.String("string"),
PeerAzureTenantId: pulumi.String("string"),
PeerResourceGroup: pulumi.String("string"),
VnetName: pulumi.String("string"),
Timeouts: &aiven.AzureOrgVpcPeeringConnectionTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
resource "aiven_azure_org_vpc_peering_connection" "azureOrgVpcPeeringConnectionResource" {
lifecycle {
create_before_destroy = true
}
azure_subscription_id = "string"
organization_id = "string"
organization_vpc_id = "string"
peer_azure_app_id = "string"
peer_azure_tenant_id = "string"
peer_resource_group = "string"
vnet_name = "string"
timeouts = {
create = "string"
delete = "string"
read = "string"
update = "string"
}
}
var azureOrgVpcPeeringConnectionResource = new AzureOrgVpcPeeringConnection("azureOrgVpcPeeringConnectionResource", AzureOrgVpcPeeringConnectionArgs.builder()
.azureSubscriptionId("string")
.organizationId("string")
.organizationVpcId("string")
.peerAzureAppId("string")
.peerAzureTenantId("string")
.peerResourceGroup("string")
.vnetName("string")
.timeouts(AzureOrgVpcPeeringConnectionTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
azure_org_vpc_peering_connection_resource = aiven.AzureOrgVpcPeeringConnection("azureOrgVpcPeeringConnectionResource",
azure_subscription_id="string",
organization_id="string",
organization_vpc_id="string",
peer_azure_app_id="string",
peer_azure_tenant_id="string",
peer_resource_group="string",
vnet_name="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const azureOrgVpcPeeringConnectionResource = new aiven.AzureOrgVpcPeeringConnection("azureOrgVpcPeeringConnectionResource", {
azureSubscriptionId: "string",
organizationId: "string",
organizationVpcId: "string",
peerAzureAppId: "string",
peerAzureTenantId: "string",
peerResourceGroup: "string",
vnetName: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: aiven:AzureOrgVpcPeeringConnection
properties:
azureSubscriptionId: string
organizationId: string
organizationVpcId: string
peerAzureAppId: string
peerAzureTenantId: string
peerResourceGroup: string
timeouts:
create: string
delete: string
read: string
update: string
vnetName: string
AzureOrgVpcPeeringConnection 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 AzureOrgVpcPeeringConnection resource accepts the following input properties:
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Organization
Id string - ID of an organization. Changing this property forces recreation of the resource.
- Organization
Vpc stringId - Organization VPC ID. Changing this property forces recreation of the resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - Vnet
Name string - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - Timeouts
Azure
Org Vpc Peering Connection Timeouts
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Organization
Id string - ID of an organization. Changing this property forces recreation of the resource.
- Organization
Vpc stringId - Organization VPC ID. Changing this property forces recreation of the resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - Vnet
Name string - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - Timeouts
Azure
Org Vpc Peering Connection Timeouts Args
- azure_
subscription_ stringid - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - organization_
id string - ID of an organization. Changing this property forces recreation of the resource.
- organization_
vpc_ stringid - Organization VPC ID. Changing this property forces recreation of the resource.
- peer_
azure_ stringapp_ id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer_
azure_ stringtenant_ id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer_
resource_ stringgroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - vnet_
name string - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - timeouts object
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - organization
Id String - ID of an organization. Changing this property forces recreation of the resource.
- organization
Vpc StringId - Organization VPC ID. Changing this property forces recreation of the resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - vnet
Name String - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - timeouts
Azure
Org Vpc Peering Connection Timeouts
- azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - organization
Id string - ID of an organization. Changing this property forces recreation of the resource.
- organization
Vpc stringId - Organization VPC ID. Changing this property forces recreation of the resource.
- peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - vnet
Name string - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - timeouts
Azure
Org Vpc Peering Connection Timeouts
- azure_
subscription_ strid - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - organization_
id str - ID of an organization. Changing this property forces recreation of the resource.
- organization_
vpc_ strid - Organization VPC ID. Changing this property forces recreation of the resource.
- peer_
azure_ strapp_ id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer_
azure_ strtenant_ id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer_
resource_ strgroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - vnet_
name str - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - timeouts
Azure
Org Vpc Peering Connection Timeouts Args
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - organization
Id String - ID of an organization. Changing this property forces recreation of the resource.
- organization
Vpc StringId - Organization VPC ID. Changing this property forces recreation of the resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - vnet
Name String - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AzureOrgVpcPeeringConnection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Peering
Connection stringId - Organization peering connection ID.
- State string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peering
Connection stringId - Organization peering connection ID.
- State string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER.
- id string
- The provider-assigned unique ID for this managed resource.
- peering_
connection_ stringid - Organization peering connection ID.
- state string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER.
- id String
- The provider-assigned unique ID for this managed resource.
- peering
Connection StringId - Organization peering connection ID.
- state String
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER.
- id string
- The provider-assigned unique ID for this managed resource.
- peering
Connection stringId - Organization peering connection ID.
- state string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER.
- id str
- The provider-assigned unique ID for this managed resource.
- peering_
connection_ strid - Organization peering connection ID.
- state str
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER.
- id String
- The provider-assigned unique ID for this managed resource.
- peering
Connection StringId - Organization peering connection ID.
- state String
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER.
Look up Existing AzureOrgVpcPeeringConnection Resource
Get an existing AzureOrgVpcPeeringConnection 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?: AzureOrgVpcPeeringConnectionState, opts?: CustomResourceOptions): AzureOrgVpcPeeringConnection@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
azure_subscription_id: Optional[str] = None,
organization_id: Optional[str] = None,
organization_vpc_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,
timeouts: Optional[AzureOrgVpcPeeringConnectionTimeoutsArgs] = None,
vnet_name: Optional[str] = None) -> AzureOrgVpcPeeringConnectionfunc GetAzureOrgVpcPeeringConnection(ctx *Context, name string, id IDInput, state *AzureOrgVpcPeeringConnectionState, opts ...ResourceOption) (*AzureOrgVpcPeeringConnection, error)public static AzureOrgVpcPeeringConnection Get(string name, Input<string> id, AzureOrgVpcPeeringConnectionState? state, CustomResourceOptions? opts = null)public static AzureOrgVpcPeeringConnection get(String name, Output<String> id, AzureOrgVpcPeeringConnectionState state, CustomResourceOptions options)resources: _: type: aiven:AzureOrgVpcPeeringConnection get: id: ${id}import {
to = aiven_azure_org_vpc_peering_connection.example
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 - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Organization
Id string - ID of an organization. Changing this property forces recreation of the resource.
- Organization
Vpc stringId - Organization VPC ID. Changing this property forces recreation of the resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - Peering
Connection stringId - Organization peering connection ID.
- State string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - Timeouts
Azure
Org Vpc Peering Connection Timeouts - Vnet
Name string - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource.
- Azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Organization
Id string - ID of an organization. Changing this property forces recreation of the resource.
- Organization
Vpc stringId - Organization VPC ID. Changing this property forces recreation of the resource.
- Peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - Peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - Peering
Connection stringId - Organization peering connection ID.
- State string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - Timeouts
Azure
Org Vpc Peering Connection Timeouts Args - Vnet
Name string - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource.
- azure_
subscription_ stringid - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - organization_
id string - ID of an organization. Changing this property forces recreation of the resource.
- organization_
vpc_ stringid - Organization VPC ID. Changing this property forces recreation of the resource.
- peer_
azure_ stringapp_ id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer_
azure_ stringtenant_ id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer_
resource_ stringgroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - peering_
connection_ stringid - Organization peering connection ID.
- state string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - timeouts object
- vnet_
name string - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource.
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - organization
Id String - ID of an organization. Changing this property forces recreation of the resource.
- organization
Vpc StringId - Organization VPC ID. Changing this property forces recreation of the resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - peering
Connection StringId - Organization peering connection ID.
- state String
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - timeouts
Azure
Org Vpc Peering Connection Timeouts - vnet
Name String - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource.
- azure
Subscription stringId - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - organization
Id string - ID of an organization. Changing this property forces recreation of the resource.
- organization
Vpc stringId - Organization VPC ID. Changing this property forces recreation of the resource.
- peer
Azure stringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Azure stringTenant Id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Resource stringGroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - peering
Connection stringId - Organization peering connection ID.
- state string
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - timeouts
Azure
Org Vpc Peering Connection Timeouts - vnet
Name string - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource.
- azure_
subscription_ strid - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - organization_
id str - ID of an organization. Changing this property forces recreation of the resource.
- organization_
vpc_ strid - Organization VPC ID. Changing this property forces recreation of the resource.
- peer_
azure_ strapp_ id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer_
azure_ strtenant_ id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer_
resource_ strgroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - peering_
connection_ strid - Organization peering connection ID.
- state str
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - timeouts
Azure
Org Vpc Peering Connection Timeouts Args - vnet_
name str - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource.
- azure
Subscription StringId - The ID of the Azure subscription in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - organization
Id String - ID of an organization. Changing this property forces recreation of the resource.
- organization
Vpc StringId - Organization VPC ID. Changing this property forces recreation of the resource.
- peer
Azure StringApp Id - The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Azure StringTenant Id - The Azure tenant ID in UUID4 format. Maximum length:
1024. Changing this property forces recreation of the resource. - peer
Resource StringGroup - The name of the Azure resource group associated with the VNet. Maximum length:
1024. Changing this property forces recreation of the resource. - peering
Connection StringId - Organization peering connection ID.
- state String
- State of the peering connection. The possible values are
ACTIVE,APPROVED,APPROVED_PEER_REQUESTED,DELETED,DELETED_BY_PEER,DELETING,ERROR,INVALID_SPECIFICATION,PENDING_PEERandREJECTED_BY_PEER. - timeouts Property Map
- vnet
Name String - The name of the Azure VNet. Maximum length:
1024. Changing this property forces recreation of the resource.
Supporting Types
AzureOrgVpcPeeringConnectionTimeouts, AzureOrgVpcPeeringConnectionTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default_ String
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default string
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default str
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- default String
- Timeout for all operations. Deprecated, use operation-specific timeouts instead.
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
$ pulumi import aiven:index/azureOrgVpcPeeringConnection:AzureOrgVpcPeeringConnection example ORGANIZATION_ID/ORGANIZATION_VPC_ID/AZURE_SUBSCRIPTION_ID/VNET_NAME/PEER_RESOURCE_GROUP
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 Thursday, Oct 22, 2026 by Pulumi