We recommend using Azure Native.
Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi
azure.eventgrid.getPartnerRegistration
Explore with Pulumi AI
Use this data source to access information about an existing EventGrid Partner Registration
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.eventgrid.getPartnerRegistration({
name: "my-eventgrid-partner-registration",
resourceGroupName: "example-resources",
});
export const eventgridPartnerRegistrationId = example.then(example => example.partnerRegistrationId);
import pulumi
import pulumi_azure as azure
example = azure.eventgrid.get_partner_registration(name="my-eventgrid-partner-registration",
resource_group_name="example-resources")
pulumi.export("eventgridPartnerRegistrationId", example.partner_registration_id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/eventgrid"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := eventgrid.LookupPartnerRegistration(ctx, &eventgrid.LookupPartnerRegistrationArgs{
Name: "my-eventgrid-partner-registration",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
ctx.Export("eventgridPartnerRegistrationId", example.PartnerRegistrationId)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.EventGrid.GetPartnerRegistration.Invoke(new()
{
Name = "my-eventgrid-partner-registration",
ResourceGroupName = "example-resources",
});
return new Dictionary<string, object?>
{
["eventgridPartnerRegistrationId"] = example.Apply(getPartnerRegistrationResult => getPartnerRegistrationResult.PartnerRegistrationId),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.eventgrid.EventgridFunctions;
import com.pulumi.azure.eventgrid.inputs.GetPartnerRegistrationArgs;
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 example = EventgridFunctions.getPartnerRegistration(GetPartnerRegistrationArgs.builder()
.name("my-eventgrid-partner-registration")
.resourceGroupName("example-resources")
.build());
ctx.export("eventgridPartnerRegistrationId", example.partnerRegistrationId());
}
}
variables:
example:
fn::invoke:
function: azure:eventgrid:getPartnerRegistration
arguments:
name: my-eventgrid-partner-registration
resourceGroupName: example-resources
outputs:
eventgridPartnerRegistrationId: ${example.partnerRegistrationId}
API Providers
This data source uses the following Azure API Providers:
Microsoft.EventGrid
- 2022-06-15
Using getPartnerRegistration
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 getPartnerRegistration(args: GetPartnerRegistrationArgs, opts?: InvokeOptions): Promise<GetPartnerRegistrationResult>
function getPartnerRegistrationOutput(args: GetPartnerRegistrationOutputArgs, opts?: InvokeOptions): Output<GetPartnerRegistrationResult>
def get_partner_registration(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPartnerRegistrationResult
def get_partner_registration_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPartnerRegistrationResult]
func LookupPartnerRegistration(ctx *Context, args *LookupPartnerRegistrationArgs, opts ...InvokeOption) (*LookupPartnerRegistrationResult, error)
func LookupPartnerRegistrationOutput(ctx *Context, args *LookupPartnerRegistrationOutputArgs, opts ...InvokeOption) LookupPartnerRegistrationResultOutput
> Note: This function is named LookupPartnerRegistration
in the Go SDK.
public static class GetPartnerRegistration
{
public static Task<GetPartnerRegistrationResult> InvokeAsync(GetPartnerRegistrationArgs args, InvokeOptions? opts = null)
public static Output<GetPartnerRegistrationResult> Invoke(GetPartnerRegistrationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPartnerRegistrationResult> getPartnerRegistration(GetPartnerRegistrationArgs args, InvokeOptions options)
public static Output<GetPartnerRegistrationResult> getPartnerRegistration(GetPartnerRegistrationArgs args, InvokeOptions options)
fn::invoke:
function: azure:eventgrid/getPartnerRegistration:getPartnerRegistration
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the EventGrid Partner Registration resource.
- Resource
Group stringName - The name of the resource group in which the EventGrid Partner Registration exists.
- Name string
- The name of the EventGrid Partner Registration resource.
- Resource
Group stringName - The name of the resource group in which the EventGrid Partner Registration exists.
- name String
- The name of the EventGrid Partner Registration resource.
- resource
Group StringName - The name of the resource group in which the EventGrid Partner Registration exists.
- name string
- The name of the EventGrid Partner Registration resource.
- resource
Group stringName - The name of the resource group in which the EventGrid Partner Registration exists.
- name str
- The name of the EventGrid Partner Registration resource.
- resource_
group_ strname - The name of the resource group in which the EventGrid Partner Registration exists.
- name String
- The name of the EventGrid Partner Registration resource.
- resource
Group StringName - The name of the resource group in which the EventGrid Partner Registration exists.
getPartnerRegistration Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Partner
Registration stringId - The immutable id of the corresponding partner registration.
- Resource
Group stringName - Dictionary<string, string>
- A mapping of tags which are assigned to the EventGrid Partner Registration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Partner
Registration stringId - The immutable id of the corresponding partner registration.
- Resource
Group stringName - map[string]string
- A mapping of tags which are assigned to the EventGrid Partner Registration.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- partner
Registration StringId - The immutable id of the corresponding partner registration.
- resource
Group StringName - Map<String,String>
- A mapping of tags which are assigned to the EventGrid Partner Registration.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- partner
Registration stringId - The immutable id of the corresponding partner registration.
- resource
Group stringName - {[key: string]: string}
- A mapping of tags which are assigned to the EventGrid Partner Registration.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- partner_
registration_ strid - The immutable id of the corresponding partner registration.
- resource_
group_ strname - Mapping[str, str]
- A mapping of tags which are assigned to the EventGrid Partner Registration.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- partner
Registration StringId - The immutable id of the corresponding partner registration.
- resource
Group StringName - Map<String>
- A mapping of tags which are assigned to the EventGrid Partner Registration.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.