1. Packages
  2. Azure Classic
  3. API Docs
  4. eventgrid
  5. PartnerRegistration

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

azure.eventgrid.PartnerRegistration

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

    Manages an EventGrid Partner Registration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const examplePartnerRegistration = new azure.eventgrid.PartnerRegistration("example", {
        name: "example-partner-registration",
        resourceGroupName: example.name,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_partner_registration = azure.eventgrid.PartnerRegistration("example",
        name="example-partner-registration",
        resource_group_name=example.name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"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 := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = eventgrid.NewPartnerRegistration(ctx, "example", &eventgrid.PartnerRegistrationArgs{
    			Name:              pulumi.String("example-partner-registration"),
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var examplePartnerRegistration = new Azure.EventGrid.PartnerRegistration("example", new()
        {
            Name = "example-partner-registration",
            ResourceGroupName = example.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.eventgrid.PartnerRegistration;
    import com.pulumi.azure.eventgrid.PartnerRegistrationArgs;
    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) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var examplePartnerRegistration = new PartnerRegistration("examplePartnerRegistration", PartnerRegistrationArgs.builder()
                .name("example-partner-registration")
                .resourceGroupName(example.name())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      examplePartnerRegistration:
        type: azure:eventgrid:PartnerRegistration
        name: example
        properties:
          name: example-partner-registration
          resourceGroupName: ${example.name}
    

    API Providers

    This resource uses the following Azure API Providers:

    • Microsoft.EventGrid - 2022-06-15

    Create PartnerRegistration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PartnerRegistration(name: string, args: PartnerRegistrationArgs, opts?: CustomResourceOptions);
    @overload
    def PartnerRegistration(resource_name: str,
                            args: PartnerRegistrationArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def PartnerRegistration(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            resource_group_name: Optional[str] = None,
                            name: Optional[str] = None,
                            tags: Optional[Mapping[str, str]] = None)
    func NewPartnerRegistration(ctx *Context, name string, args PartnerRegistrationArgs, opts ...ResourceOption) (*PartnerRegistration, error)
    public PartnerRegistration(string name, PartnerRegistrationArgs args, CustomResourceOptions? opts = null)
    public PartnerRegistration(String name, PartnerRegistrationArgs args)
    public PartnerRegistration(String name, PartnerRegistrationArgs args, CustomResourceOptions options)
    
    type: azure:eventgrid:PartnerRegistration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PartnerRegistrationArgs
    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 PartnerRegistrationArgs
    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 PartnerRegistrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PartnerRegistrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PartnerRegistrationArgs
    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 partnerRegistrationResource = new Azure.EventGrid.PartnerRegistration("partnerRegistrationResource", new()
    {
        ResourceGroupName = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := eventgrid.NewPartnerRegistration(ctx, "partnerRegistrationResource", &eventgrid.PartnerRegistrationArgs{
    	ResourceGroupName: pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var partnerRegistrationResource = new PartnerRegistration("partnerRegistrationResource", PartnerRegistrationArgs.builder()
        .resourceGroupName("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    partner_registration_resource = azure.eventgrid.PartnerRegistration("partnerRegistrationResource",
        resource_group_name="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const partnerRegistrationResource = new azure.eventgrid.PartnerRegistration("partnerRegistrationResource", {
        resourceGroupName: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:eventgrid:PartnerRegistration
    properties:
        name: string
        resourceGroupName: string
        tags:
            string: string
    

    PartnerRegistration 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 PartnerRegistration resource accepts the following input properties:

    ResourceGroupName string
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    Name string
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the EventGrid Partner Registration.
    ResourceGroupName string
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    Name string
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the EventGrid Partner Registration.
    resourceGroupName String
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    name String
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the EventGrid Partner Registration.
    resourceGroupName string
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    name string
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the EventGrid Partner Registration.
    resource_group_name str
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    name str
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the EventGrid Partner Registration.
    resourceGroupName String
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    name String
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the EventGrid Partner Registration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PartnerRegistration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    PartnerRegistrationId string
    The immutable id of the corresponding partner registration.
    Id string
    The provider-assigned unique ID for this managed resource.
    PartnerRegistrationId string
    The immutable id of the corresponding partner registration.
    id String
    The provider-assigned unique ID for this managed resource.
    partnerRegistrationId String
    The immutable id of the corresponding partner registration.
    id string
    The provider-assigned unique ID for this managed resource.
    partnerRegistrationId string
    The immutable id of the corresponding partner registration.
    id str
    The provider-assigned unique ID for this managed resource.
    partner_registration_id str
    The immutable id of the corresponding partner registration.
    id String
    The provider-assigned unique ID for this managed resource.
    partnerRegistrationId String
    The immutable id of the corresponding partner registration.

    Look up Existing PartnerRegistration Resource

    Get an existing PartnerRegistration 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?: PartnerRegistrationState, opts?: CustomResourceOptions): PartnerRegistration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            partner_registration_id: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> PartnerRegistration
    func GetPartnerRegistration(ctx *Context, name string, id IDInput, state *PartnerRegistrationState, opts ...ResourceOption) (*PartnerRegistration, error)
    public static PartnerRegistration Get(string name, Input<string> id, PartnerRegistrationState? state, CustomResourceOptions? opts = null)
    public static PartnerRegistration get(String name, Output<String> id, PartnerRegistrationState state, CustomResourceOptions options)
    resources:  _:    type: azure:eventgrid:PartnerRegistration    get:      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.
    The following state arguments are supported:
    Name string
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    PartnerRegistrationId string
    The immutable id of the corresponding partner registration.
    ResourceGroupName string
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the EventGrid Partner Registration.
    Name string
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    PartnerRegistrationId string
    The immutable id of the corresponding partner registration.
    ResourceGroupName string
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the EventGrid Partner Registration.
    name String
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    partnerRegistrationId String
    The immutable id of the corresponding partner registration.
    resourceGroupName String
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the EventGrid Partner Registration.
    name string
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    partnerRegistrationId string
    The immutable id of the corresponding partner registration.
    resourceGroupName string
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the EventGrid Partner Registration.
    name str
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    partner_registration_id str
    The immutable id of the corresponding partner registration.
    resource_group_name str
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the EventGrid Partner Registration.
    name String
    The name which should be used for this EventGrid Partner Registration. Changing this forces a new EventGrid Partner Registration to be created.
    partnerRegistrationId String
    The immutable id of the corresponding partner registration.
    resourceGroupName String
    The name of the Resource Group where the EventGrid Partner Registration should exist. Changing this forces a new EventGrid Partner Registration to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the EventGrid Partner Registration.

    Import

    EventGrid Partner Registrations can be imported using the resource id, e.g.

    $ pulumi import azure:eventgrid/partnerRegistration:PartnerRegistration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.EventGrid/partnerRegistrations/example
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi