1. Registry
  2. Packages
  3. Aiven Provider
  4. API Docs
  5. getAzureOrgVpcPeeringConnection
Viewing docs for Aiven v6.59.0
published on Thursday, Sep 17, 2026 by Pulumi
aiven logo aiven logo
Viewing docs for Aiven v6.59.0
published on Thursday, Sep 17, 2026 by Pulumi

    Gets information about an Azure VPC peering connection.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const example = aiven.getAzureOrgVpcPeeringConnection({
        organizationId: "org1a23f456789",
        organizationVpcId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
        azureSubscriptionId: "12345678-1234-1234-1234-123456789012",
        vnetName: "my-vnet",
        peerResourceGroup: "my-resource-group",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example = aiven.get_azure_org_vpc_peering_connection(organization_id="org1a23f456789",
        organization_vpc_id="1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
        azure_subscription_id="12345678-1234-1234-1234-123456789012",
        vnet_name="my-vnet",
        peer_resource_group="my-resource-group")
    
    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 {
    		_, err := aiven.GetAzureOrgVpcPeeringConnection(ctx, &aiven.LookupAzureOrgVpcPeeringConnectionArgs{
    			OrganizationId:      "org1a23f456789",
    			OrganizationVpcId:   "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
    			AzureSubscriptionId: "12345678-1234-1234-1234-123456789012",
    			VnetName:            "my-vnet",
    			PeerResourceGroup:   "my-resource-group",
    		}, nil)
    		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 example = Aiven.GetAzureOrgVpcPeeringConnection.Invoke(new()
        {
            OrganizationId = "org1a23f456789",
            OrganizationVpcId = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
            AzureSubscriptionId = "12345678-1234-1234-1234-123456789012",
            VnetName = "my-vnet",
            PeerResourceGroup = "my-resource-group",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.AivenFunctions;
    import com.pulumi.aiven.inputs.GetAzureOrgVpcPeeringConnectionArgs;
    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) {
            final var example = AivenFunctions.getAzureOrgVpcPeeringConnection(GetAzureOrgVpcPeeringConnectionArgs.builder()
                .organizationId("org1a23f456789")
                .organizationVpcId("1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d")
                .azureSubscriptionId("12345678-1234-1234-1234-123456789012")
                .vnetName("my-vnet")
                .peerResourceGroup("my-resource-group")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aiven:getAzureOrgVpcPeeringConnection
          arguments:
            organizationId: org1a23f456789
            organizationVpcId: 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
            azureSubscriptionId: 12345678-1234-1234-1234-123456789012
            vnetName: my-vnet
            peerResourceGroup: my-resource-group
    
    pulumi {
      required_providers {
        aiven = {
          source = "pulumi/aiven"
        }
      }
    }
    
    data "aiven_getazureorgvpcpeeringconnection" "example" {
      organization_id       = "org1a23f456789"
      organization_vpc_id   = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
      azure_subscription_id = "12345678-1234-1234-1234-123456789012"
      vnet_name             = "my-vnet"
      peer_resource_group   = "my-resource-group"
    }
    

    Using getAzureOrgVpcPeeringConnection

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAzureOrgVpcPeeringConnection(args: GetAzureOrgVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetAzureOrgVpcPeeringConnectionResult>
    function getAzureOrgVpcPeeringConnectionOutput(args: GetAzureOrgVpcPeeringConnectionOutputArgs, opts?: InvokeOutputOptions): Output<GetAzureOrgVpcPeeringConnectionResult>
    def get_azure_org_vpc_peering_connection(azure_subscription_id: Optional[str] = None,
                                             organization_id: Optional[str] = None,
                                             organization_vpc_id: Optional[str] = None,
                                             peer_resource_group: Optional[str] = None,
                                             timeouts: Optional[GetAzureOrgVpcPeeringConnectionTimeouts] = None,
                                             vnet_name: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetAzureOrgVpcPeeringConnectionResult
    def get_azure_org_vpc_peering_connection_output(azure_subscription_id: pulumi.Input[Optional[str]] = None,
                                             organization_id: pulumi.Input[Optional[str]] = None,
                                             organization_vpc_id: pulumi.Input[Optional[str]] = None,
                                             peer_resource_group: pulumi.Input[Optional[str]] = None,
                                             timeouts: pulumi.Input[Optional[GetAzureOrgVpcPeeringConnectionTimeoutsArgs]] = None,
                                             vnet_name: pulumi.Input[Optional[str]] = None,
                                             opts: Optional[InvokeOutputOptions] = None) -> Output[GetAzureOrgVpcPeeringConnectionResult]
    func LookupAzureOrgVpcPeeringConnection(ctx *Context, args *LookupAzureOrgVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupAzureOrgVpcPeeringConnectionResult, error)
    func LookupAzureOrgVpcPeeringConnectionOutput(ctx *Context, args *LookupAzureOrgVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupAzureOrgVpcPeeringConnectionResultOutput

    > Note: This function is named LookupAzureOrgVpcPeeringConnection in the Go SDK.

    public static class GetAzureOrgVpcPeeringConnection 
    {
        public static Task<GetAzureOrgVpcPeeringConnectionResult> InvokeAsync(GetAzureOrgVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
        public static Output<GetAzureOrgVpcPeeringConnectionResult> Invoke(GetAzureOrgVpcPeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAzureOrgVpcPeeringConnectionResult> Invoke(GetAzureOrgVpcPeeringConnectionInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAzureOrgVpcPeeringConnectionResult> getAzureOrgVpcPeeringConnection(GetAzureOrgVpcPeeringConnectionArgs args, InvokeOptions options)
    public static Output<GetAzureOrgVpcPeeringConnectionResult> getAzureOrgVpcPeeringConnection(GetAzureOrgVpcPeeringConnectionArgs args, InvokeOptions options)
    public static Output<GetAzureOrgVpcPeeringConnectionResult> getAzureOrgVpcPeeringConnection(GetAzureOrgVpcPeeringConnectionArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aiven:index/getAzureOrgVpcPeeringConnection:getAzureOrgVpcPeeringConnection
      arguments:
        # arguments dictionary
    data "aiven_get_azure_org_vpc_peering_connection" "name" {
        # arguments
    }

    The following arguments are supported:

    AzureSubscriptionId string
    The ID of the Azure subscription in UUID4 format.
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    Organization VPC ID.
    PeerResourceGroup string
    The name of the Azure resource group associated with the VNet.
    VnetName string
    The name of the Azure VNet.
    Timeouts GetAzureOrgVpcPeeringConnectionTimeouts
    AzureSubscriptionId string
    The ID of the Azure subscription in UUID4 format.
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    Organization VPC ID.
    PeerResourceGroup string
    The name of the Azure resource group associated with the VNet.
    VnetName string
    The name of the Azure VNet.
    Timeouts GetAzureOrgVpcPeeringConnectionTimeouts
    azure_subscription_id string
    The ID of the Azure subscription in UUID4 format.
    organization_id string
    ID of an organization.
    organization_vpc_id string
    Organization VPC ID.
    peer_resource_group string
    The name of the Azure resource group associated with the VNet.
    vnet_name string
    The name of the Azure VNet.
    timeouts object
    azureSubscriptionId String
    The ID of the Azure subscription in UUID4 format.
    organizationId String
    ID of an organization.
    organizationVpcId String
    Organization VPC ID.
    peerResourceGroup String
    The name of the Azure resource group associated with the VNet.
    vnetName String
    The name of the Azure VNet.
    timeouts GetAzureOrgVpcPeeringConnectionTimeouts
    azureSubscriptionId string
    The ID of the Azure subscription in UUID4 format.
    organizationId string
    ID of an organization.
    organizationVpcId string
    Organization VPC ID.
    peerResourceGroup string
    The name of the Azure resource group associated with the VNet.
    vnetName string
    The name of the Azure VNet.
    timeouts GetAzureOrgVpcPeeringConnectionTimeouts
    azure_subscription_id str
    The ID of the Azure subscription in UUID4 format.
    organization_id str
    ID of an organization.
    organization_vpc_id str
    Organization VPC ID.
    peer_resource_group str
    The name of the Azure resource group associated with the VNet.
    vnet_name str
    The name of the Azure VNet.
    timeouts GetAzureOrgVpcPeeringConnectionTimeouts
    azureSubscriptionId String
    The ID of the Azure subscription in UUID4 format.
    organizationId String
    ID of an organization.
    organizationVpcId String
    Organization VPC ID.
    peerResourceGroup String
    The name of the Azure resource group associated with the VNet.
    vnetName String
    The name of the Azure VNet.
    timeouts Property Map

    getAzureOrgVpcPeeringConnection Result

    The following output properties are available:

    AzureSubscriptionId string
    The ID of the Azure subscription in UUID4 format.
    Id string
    Resource ID composed as: organization_id/organization_vpc_id/azure_subscription_id/vnet_name/peer_resource_group.
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    Organization VPC ID.
    PeerAzureAppId string
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format.
    PeerAzureTenantId string
    The Azure tenant ID in UUID4 format.
    PeerResourceGroup string
    The name of the Azure resource group associated with the VNet.
    PeeringConnectionId string
    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_PEER and REJECTED_BY_PEER.
    VnetName string
    The name of the Azure VNet.
    Timeouts GetAzureOrgVpcPeeringConnectionTimeouts
    AzureSubscriptionId string
    The ID of the Azure subscription in UUID4 format.
    Id string
    Resource ID composed as: organization_id/organization_vpc_id/azure_subscription_id/vnet_name/peer_resource_group.
    OrganizationId string
    ID of an organization.
    OrganizationVpcId string
    Organization VPC ID.
    PeerAzureAppId string
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format.
    PeerAzureTenantId string
    The Azure tenant ID in UUID4 format.
    PeerResourceGroup string
    The name of the Azure resource group associated with the VNet.
    PeeringConnectionId string
    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_PEER and REJECTED_BY_PEER.
    VnetName string
    The name of the Azure VNet.
    Timeouts GetAzureOrgVpcPeeringConnectionTimeouts
    azure_subscription_id string
    The ID of the Azure subscription in UUID4 format.
    id string
    Resource ID composed as: organization_id/organization_vpc_id/azure_subscription_id/vnet_name/peer_resource_group.
    organization_id string
    ID of an organization.
    organization_vpc_id string
    Organization VPC ID.
    peer_azure_app_id string
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format.
    peer_azure_tenant_id string
    The Azure tenant ID in UUID4 format.
    peer_resource_group string
    The name of the Azure resource group associated with the VNet.
    peering_connection_id string
    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_PEER and REJECTED_BY_PEER.
    vnet_name string
    The name of the Azure VNet.
    timeouts object
    azureSubscriptionId String
    The ID of the Azure subscription in UUID4 format.
    id String
    Resource ID composed as: organization_id/organization_vpc_id/azure_subscription_id/vnet_name/peer_resource_group.
    organizationId String
    ID of an organization.
    organizationVpcId String
    Organization VPC ID.
    peerAzureAppId String
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format.
    peerAzureTenantId String
    The Azure tenant ID in UUID4 format.
    peerResourceGroup String
    The name of the Azure resource group associated with the VNet.
    peeringConnectionId String
    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_PEER and REJECTED_BY_PEER.
    vnetName String
    The name of the Azure VNet.
    timeouts GetAzureOrgVpcPeeringConnectionTimeouts
    azureSubscriptionId string
    The ID of the Azure subscription in UUID4 format.
    id string
    Resource ID composed as: organization_id/organization_vpc_id/azure_subscription_id/vnet_name/peer_resource_group.
    organizationId string
    ID of an organization.
    organizationVpcId string
    Organization VPC ID.
    peerAzureAppId string
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format.
    peerAzureTenantId string
    The Azure tenant ID in UUID4 format.
    peerResourceGroup string
    The name of the Azure resource group associated with the VNet.
    peeringConnectionId string
    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_PEER and REJECTED_BY_PEER.
    vnetName string
    The name of the Azure VNet.
    timeouts GetAzureOrgVpcPeeringConnectionTimeouts
    azure_subscription_id str
    The ID of the Azure subscription in UUID4 format.
    id str
    Resource ID composed as: organization_id/organization_vpc_id/azure_subscription_id/vnet_name/peer_resource_group.
    organization_id str
    ID of an organization.
    organization_vpc_id str
    Organization VPC ID.
    peer_azure_app_id str
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format.
    peer_azure_tenant_id str
    The Azure tenant ID in UUID4 format.
    peer_resource_group str
    The name of the Azure resource group associated with the VNet.
    peering_connection_id str
    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_PEER and REJECTED_BY_PEER.
    vnet_name str
    The name of the Azure VNet.
    timeouts GetAzureOrgVpcPeeringConnectionTimeouts
    azureSubscriptionId String
    The ID of the Azure subscription in UUID4 format.
    id String
    Resource ID composed as: organization_id/organization_vpc_id/azure_subscription_id/vnet_name/peer_resource_group.
    organizationId String
    ID of an organization.
    organizationVpcId String
    Organization VPC ID.
    peerAzureAppId String
    The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format.
    peerAzureTenantId String
    The Azure tenant ID in UUID4 format.
    peerResourceGroup String
    The name of the Azure resource group associated with the VNet.
    peeringConnectionId String
    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_PEER and REJECTED_BY_PEER.
    vnetName String
    The name of the Azure VNet.
    timeouts Property Map

    Supporting Types

    GetAzureOrgVpcPeeringConnectionTimeouts

    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 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 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 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 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 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 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).

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo aiven logo
    Viewing docs for Aiven v6.59.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial