1. Packages
  2. Aiven Provider
  3. API Docs
  4. getAzureVpcPeeringConnection
Aiven v6.37.0 published on Thursday, Apr 10, 2025 by Pulumi

aiven.getAzureVpcPeeringConnection

Explore with Pulumi AI

Gets information about about an Azure VPC peering connection.

Example Usage

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

const azureToAivenPeering = aiven.getAzureVpcPeeringConnection({
    vpcId: exampleVpc.id,
    azureSubscriptionId: "00000000-0000-0000-0000-000000000000",
    peerResourceGroup: "example-resource-group",
    vnetName: "example-vnet",
    peerAzureAppId: "00000000-0000-0000-0000-000000000000",
    peerAzureTenantId: "00000000-0000-0000-0000-000000000000",
});
Copy
import pulumi
import pulumi_aiven as aiven

azure_to_aiven_peering = aiven.get_azure_vpc_peering_connection(vpc_id=example_vpc["id"],
    azure_subscription_id="00000000-0000-0000-0000-000000000000",
    peer_resource_group="example-resource-group",
    vnet_name="example-vnet",
    peer_azure_app_id="00000000-0000-0000-0000-000000000000",
    peer_azure_tenant_id="00000000-0000-0000-0000-000000000000")
Copy
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.LookupAzureVpcPeeringConnection(ctx, &aiven.LookupAzureVpcPeeringConnectionArgs{
			VpcId:               exampleVpc.Id,
			AzureSubscriptionId: "00000000-0000-0000-0000-000000000000",
			PeerResourceGroup:   "example-resource-group",
			VnetName:            "example-vnet",
			PeerAzureAppId:      "00000000-0000-0000-0000-000000000000",
			PeerAzureTenantId:   "00000000-0000-0000-0000-000000000000",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;

return await Deployment.RunAsync(() => 
{
    var azureToAivenPeering = Aiven.GetAzureVpcPeeringConnection.Invoke(new()
    {
        VpcId = exampleVpc.Id,
        AzureSubscriptionId = "00000000-0000-0000-0000-000000000000",
        PeerResourceGroup = "example-resource-group",
        VnetName = "example-vnet",
        PeerAzureAppId = "00000000-0000-0000-0000-000000000000",
        PeerAzureTenantId = "00000000-0000-0000-0000-000000000000",
    });

});
Copy
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.GetAzureVpcPeeringConnectionArgs;
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) {
        final var azureToAivenPeering = AivenFunctions.getAzureVpcPeeringConnection(GetAzureVpcPeeringConnectionArgs.builder()
            .vpcId(exampleVpc.id())
            .azureSubscriptionId("00000000-0000-0000-0000-000000000000")
            .peerResourceGroup("example-resource-group")
            .vnetName("example-vnet")
            .peerAzureAppId("00000000-0000-0000-0000-000000000000")
            .peerAzureTenantId("00000000-0000-0000-0000-000000000000")
            .build());

    }
}
Copy
variables:
  azureToAivenPeering:
    fn::invoke:
      function: aiven:getAzureVpcPeeringConnection
      arguments:
        vpcId: ${exampleVpc.id}
        azureSubscriptionId: 00000000-0000-0000-0000-000000000000
        peerResourceGroup: example-resource-group
        vnetName: example-vnet
        peerAzureAppId: 00000000-0000-0000-0000-000000000000
        peerAzureTenantId: 00000000-0000-0000-0000-000000000000
Copy

Using getAzureVpcPeeringConnection

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 getAzureVpcPeeringConnection(args: GetAzureVpcPeeringConnectionArgs, opts?: InvokeOptions): Promise<GetAzureVpcPeeringConnectionResult>
function getAzureVpcPeeringConnectionOutput(args: GetAzureVpcPeeringConnectionOutputArgs, opts?: InvokeOptions): Output<GetAzureVpcPeeringConnectionResult>
Copy
def get_azure_vpc_peering_connection(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,
                                     opts: Optional[InvokeOptions] = None) -> GetAzureVpcPeeringConnectionResult
def get_azure_vpc_peering_connection_output(azure_subscription_id: Optional[pulumi.Input[str]] = None,
                                     peer_azure_app_id: Optional[pulumi.Input[str]] = None,
                                     peer_azure_tenant_id: Optional[pulumi.Input[str]] = None,
                                     peer_resource_group: Optional[pulumi.Input[str]] = None,
                                     vnet_name: Optional[pulumi.Input[str]] = None,
                                     vpc_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetAzureVpcPeeringConnectionResult]
Copy
func LookupAzureVpcPeeringConnection(ctx *Context, args *LookupAzureVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupAzureVpcPeeringConnectionResult, error)
func LookupAzureVpcPeeringConnectionOutput(ctx *Context, args *LookupAzureVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupAzureVpcPeeringConnectionResultOutput
Copy

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

public static class GetAzureVpcPeeringConnection 
{
    public static Task<GetAzureVpcPeeringConnectionResult> InvokeAsync(GetAzureVpcPeeringConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetAzureVpcPeeringConnectionResult> Invoke(GetAzureVpcPeeringConnectionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAzureVpcPeeringConnectionResult> getAzureVpcPeeringConnection(GetAzureVpcPeeringConnectionArgs args, InvokeOptions options)
public static Output<GetAzureVpcPeeringConnectionResult> getAzureVpcPeeringConnection(GetAzureVpcPeeringConnectionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aiven:index/getAzureVpcPeeringConnection:getAzureVpcPeeringConnection
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AzureSubscriptionId This property is required. string
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
PeerAzureAppId This property is required. string
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
PeerAzureTenantId This property is required. string
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
PeerResourceGroup This property is required. string
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
VnetName This property is required. string
The name of the Azure VNet. Changing this property forces recreation of the resource.
VpcId This property is required. string
The ID of the Aiven VPC. Changing this property forces recreation of the resource.
AzureSubscriptionId This property is required. string
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
PeerAzureAppId This property is required. string
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
PeerAzureTenantId This property is required. string
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
PeerResourceGroup This property is required. string
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
VnetName This property is required. string
The name of the Azure VNet. Changing this property forces recreation of the resource.
VpcId This property is required. string
The ID of the Aiven VPC. Changing this property forces recreation of the resource.
azureSubscriptionId This property is required. String
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
peerAzureAppId This property is required. String
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
peerAzureTenantId This property is required. String
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
peerResourceGroup This property is required. String
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
vnetName This property is required. String
The name of the Azure VNet. Changing this property forces recreation of the resource.
vpcId This property is required. String
The ID of the Aiven VPC. Changing this property forces recreation of the resource.
azureSubscriptionId This property is required. string
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
peerAzureAppId This property is required. string
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
peerAzureTenantId This property is required. string
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
peerResourceGroup This property is required. string
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
vnetName This property is required. string
The name of the Azure VNet. Changing this property forces recreation of the resource.
vpcId This property is required. string
The ID of the Aiven VPC. Changing this property forces recreation of the resource.
azure_subscription_id This property is required. str
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
peer_azure_app_id This property is required. str
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
peer_azure_tenant_id This property is required. str
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
peer_resource_group This property is required. str
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
vnet_name This property is required. str
The name of the Azure VNet. Changing this property forces recreation of the resource.
vpc_id This property is required. str
The ID of the Aiven VPC. Changing this property forces recreation of the resource.
azureSubscriptionId This property is required. String
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
peerAzureAppId This property is required. String
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
peerAzureTenantId This property is required. String
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
peerResourceGroup This property is required. String
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
vnetName This property is required. String
The name of the Azure VNet. Changing this property forces recreation of the resource.
vpcId This property is required. String
The ID of the Aiven VPC. Changing this property forces recreation of the resource.

getAzureVpcPeeringConnection Result

The following output properties are available:

AzureSubscriptionId string
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
Id string
The provider-assigned unique ID for this managed resource.
PeerAzureAppId string
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
PeerAzureTenantId string
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
PeerResourceGroup string
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
PeeringConnectionId string
The ID of the cloud provider for the peering connection.
State string
State of the peering connection
StateInfo Dictionary<string, string>
State-specific help or error information.
VnetName string
The name of the Azure VNet. Changing this property forces recreation of the resource.
VpcId string
The ID of the Aiven VPC. Changing this property forces recreation of the resource.
AzureSubscriptionId string
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
Id string
The provider-assigned unique ID for this managed resource.
PeerAzureAppId string
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
PeerAzureTenantId string
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
PeerResourceGroup string
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
PeeringConnectionId string
The ID of the cloud provider for the peering connection.
State string
State of the peering connection
StateInfo map[string]string
State-specific help or error information.
VnetName string
The name of the Azure VNet. Changing this property forces recreation of the resource.
VpcId string
The ID of the Aiven VPC. Changing this property forces recreation of the resource.
azureSubscriptionId String
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
id String
The provider-assigned unique ID for this managed resource.
peerAzureAppId String
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
peerAzureTenantId String
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
peerResourceGroup String
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
peeringConnectionId String
The ID of the cloud provider for the peering connection.
state String
State of the peering connection
stateInfo Map<String,String>
State-specific help or error information.
vnetName String
The name of the Azure VNet. Changing this property forces recreation of the resource.
vpcId String
The ID of the Aiven VPC. Changing this property forces recreation of the resource.
azureSubscriptionId string
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
id string
The provider-assigned unique ID for this managed resource.
peerAzureAppId string
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
peerAzureTenantId string
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
peerResourceGroup string
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
peeringConnectionId string
The ID of the cloud provider for the peering connection.
state string
State of the peering connection
stateInfo {[key: string]: string}
State-specific help or error information.
vnetName string
The name of the Azure VNet. Changing this property forces recreation of the resource.
vpcId string
The ID of the Aiven VPC. Changing this property forces recreation of the resource.
azure_subscription_id str
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
id str
The provider-assigned unique ID for this managed resource.
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. Changing this property forces recreation of the resource.
peer_azure_tenant_id str
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
peer_resource_group str
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
peering_connection_id str
The ID of the cloud provider for the peering connection.
state str
State of the peering connection
state_info Mapping[str, str]
State-specific help or error information.
vnet_name str
The name of the Azure VNet. Changing this property forces recreation of the resource.
vpc_id str
The ID of the Aiven VPC. Changing this property forces recreation of the resource.
azureSubscriptionId String
The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
id String
The provider-assigned unique ID for this managed resource.
peerAzureAppId String
The ID of the Azure app that is allowed to create a peering to the Azure Virtual Network (VNet) in UUID4 format. Changing this property forces recreation of the resource.
peerAzureTenantId String
The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
peerResourceGroup String
The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
peeringConnectionId String
The ID of the cloud provider for the peering connection.
state String
State of the peering connection
stateInfo Map<String>
State-specific help or error information.
vnetName String
The name of the Azure VNet. Changing this property forces recreation of the resource.
vpcId String
The ID of the Aiven VPC. Changing this property forces recreation of the resource.

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.