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",
});
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")
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
	})
}
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",
    });
});
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());
    }
}
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
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>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]func LookupAzureVpcPeeringConnection(ctx *Context, args *LookupAzureVpcPeeringConnectionArgs, opts ...InvokeOption) (*LookupAzureVpcPeeringConnectionResult, error)
func LookupAzureVpcPeeringConnectionOutput(ctx *Context, args *LookupAzureVpcPeeringConnectionOutputArgs, opts ...InvokeOption) LookupAzureVpcPeeringConnectionResultOutput> 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)
}public static CompletableFuture<GetAzureVpcPeeringConnectionResult> getAzureVpcPeeringConnection(GetAzureVpcPeeringConnectionArgs args, InvokeOptions options)
public static Output<GetAzureVpcPeeringConnectionResult> getAzureVpcPeeringConnection(GetAzureVpcPeeringConnectionArgs args, InvokeOptions options)
fn::invoke:
  function: aiven:index/getAzureVpcPeeringConnection:getAzureVpcPeeringConnection
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AzureSubscription stringId 
- The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- PeerAzure stringApp Id 
- 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.
- PeerAzure stringTenant Id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- PeerResource stringGroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- 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.
- AzureSubscription stringId 
- The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- PeerAzure stringApp Id 
- 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.
- PeerAzure stringTenant Id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- PeerResource stringGroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- 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.
- azureSubscription StringId 
- The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peerAzure StringApp Id 
- 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.
- peerAzure StringTenant Id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peerResource StringGroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- 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.
- azureSubscription stringId 
- The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peerAzure stringApp Id 
- 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.
- peerAzure stringTenant Id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peerResource stringGroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- 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_ strid 
- The ID of the Azure subscription in UUID4 format. 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. Changing this property forces recreation of the resource.
- peer_azure_ strtenant_ id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer_resource_ strgroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- 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.
- azureSubscription StringId 
- The ID of the Azure subscription in UUID4 format. Changing this property forces recreation of the resource.
- peerAzure StringApp Id 
- 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.
- peerAzure StringTenant Id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peerResource StringGroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- 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.
getAzureVpcPeeringConnection Result
The following output properties are available:
- AzureSubscription stringId 
- 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.
- PeerAzure stringApp Id 
- 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.
- PeerAzure stringTenant Id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- PeerResource stringGroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- PeeringConnection stringId 
- 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.
- AzureSubscription stringId 
- 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.
- PeerAzure stringApp Id 
- 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.
- PeerAzure stringTenant Id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- PeerResource stringGroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- PeeringConnection stringId 
- 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.
- azureSubscription StringId 
- 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.
- peerAzure StringApp Id 
- 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.
- peerAzure StringTenant Id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peerResource StringGroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peeringConnection StringId 
- 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.
- azureSubscription stringId 
- 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.
- peerAzure stringApp Id 
- 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.
- peerAzure stringTenant Id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peerResource stringGroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peeringConnection stringId 
- 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_ strid 
- 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_ strapp_ id 
- 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_ strtenant_ id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peer_resource_ strgroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peering_connection_ strid 
- 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.
- azureSubscription StringId 
- 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.
- peerAzure StringApp Id 
- 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.
- peerAzure StringTenant Id 
- The Azure tenant ID in UUID4 format. Changing this property forces recreation of the resource.
- peerResource StringGroup 
- The name of the Azure resource group associated with the VNet. Changing this property forces recreation of the resource.
- peeringConnection StringId 
- 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 aivenTerraform Provider.