1. Packages
  2. Azure Native v1
  3. API Docs
  4. managedservices
  5. RegistrationAssignment
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.managedservices.RegistrationAssignment

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Registration assignment. API Version: 2019-09-01.

    Example Usage

    Put Registration Assignment

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var registrationAssignment = new AzureNative.ManagedServices.RegistrationAssignment("registrationAssignment", new()
        {
            Properties = new AzureNative.ManagedServices.Inputs.RegistrationAssignmentPropertiesArgs
            {
                RegistrationDefinitionId = "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2",
            },
            RegistrationAssignmentId = "26c128c2-fefa-4340-9bb1-6e081c90ada2",
            Scope = "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
        });
    
    });
    
    package main
    
    import (
    	managedservices "github.com/pulumi/pulumi-azure-native-sdk/managedservices"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := managedservices.NewRegistrationAssignment(ctx, "registrationAssignment", &managedservices.RegistrationAssignmentArgs{
    			Properties: &managedservices.RegistrationAssignmentPropertiesArgs{
    				RegistrationDefinitionId: pulumi.String("/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2"),
    			},
    			RegistrationAssignmentId: pulumi.String("26c128c2-fefa-4340-9bb1-6e081c90ada2"),
    			Scope:                    pulumi.String("subscription/0afefe50-734e-4610-8a82-a144ahf49dea"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.managedservices.RegistrationAssignment;
    import com.pulumi.azurenative.managedservices.RegistrationAssignmentArgs;
    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 registrationAssignment = new RegistrationAssignment("registrationAssignment", RegistrationAssignmentArgs.builder()        
                .properties(Map.of("registrationDefinitionId", "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2"))
                .registrationAssignmentId("26c128c2-fefa-4340-9bb1-6e081c90ada2")
                .scope("subscription/0afefe50-734e-4610-8a82-a144ahf49dea")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    registration_assignment = azure_native.managedservices.RegistrationAssignment("registrationAssignment",
        properties=azure_native.managedservices.RegistrationAssignmentPropertiesArgs(
            registration_definition_id="/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2",
        ),
        registration_assignment_id="26c128c2-fefa-4340-9bb1-6e081c90ada2",
        scope="subscription/0afefe50-734e-4610-8a82-a144ahf49dea")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const registrationAssignment = new azure_native.managedservices.RegistrationAssignment("registrationAssignment", {
        properties: {
            registrationDefinitionId: "/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2",
        },
        registrationAssignmentId: "26c128c2-fefa-4340-9bb1-6e081c90ada2",
        scope: "subscription/0afefe50-734e-4610-8a82-a144ahf49dea",
    });
    
    resources:
      registrationAssignment:
        type: azure-native:managedservices:RegistrationAssignment
        properties:
          properties:
            registrationDefinitionId: /subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/registrationDefinitions/26c128c2-fefa-4340-9bb1-6e081c90ada2
          registrationAssignmentId: 26c128c2-fefa-4340-9bb1-6e081c90ada2
          scope: subscription/0afefe50-734e-4610-8a82-a144ahf49dea
    

    Create RegistrationAssignment Resource

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

    Constructor syntax

    new RegistrationAssignment(name: string, args: RegistrationAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def RegistrationAssignment(resource_name: str,
                               args: RegistrationAssignmentArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def RegistrationAssignment(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               scope: Optional[str] = None,
                               properties: Optional[RegistrationAssignmentPropertiesArgs] = None,
                               registration_assignment_id: Optional[str] = None)
    func NewRegistrationAssignment(ctx *Context, name string, args RegistrationAssignmentArgs, opts ...ResourceOption) (*RegistrationAssignment, error)
    public RegistrationAssignment(string name, RegistrationAssignmentArgs args, CustomResourceOptions? opts = null)
    public RegistrationAssignment(String name, RegistrationAssignmentArgs args)
    public RegistrationAssignment(String name, RegistrationAssignmentArgs args, CustomResourceOptions options)
    
    type: azure-native:managedservices:RegistrationAssignment
    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 RegistrationAssignmentArgs
    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 RegistrationAssignmentArgs
    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 RegistrationAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RegistrationAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RegistrationAssignmentArgs
    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 registrationAssignmentResource = new AzureNative.Managedservices.RegistrationAssignment("registrationAssignmentResource", new()
    {
        Scope = "string",
        Properties = 
        {
            { "registrationDefinitionId", "string" },
        },
        RegistrationAssignmentId = "string",
    });
    
    example, err := managedservices.NewRegistrationAssignment(ctx, "registrationAssignmentResource", &managedservices.RegistrationAssignmentArgs{
    	Scope: "string",
    	Properties: map[string]interface{}{
    		"registrationDefinitionId": "string",
    	},
    	RegistrationAssignmentId: "string",
    })
    
    var registrationAssignmentResource = new RegistrationAssignment("registrationAssignmentResource", RegistrationAssignmentArgs.builder()
        .scope("string")
        .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .registrationAssignmentId("string")
        .build());
    
    registration_assignment_resource = azure_native.managedservices.RegistrationAssignment("registrationAssignmentResource",
        scope=string,
        properties={
            registrationDefinitionId: string,
        },
        registration_assignment_id=string)
    
    const registrationAssignmentResource = new azure_native.managedservices.RegistrationAssignment("registrationAssignmentResource", {
        scope: "string",
        properties: {
            registrationDefinitionId: "string",
        },
        registrationAssignmentId: "string",
    });
    
    type: azure-native:managedservices:RegistrationAssignment
    properties:
        properties:
            registrationDefinitionId: string
        registrationAssignmentId: string
        scope: string
    

    RegistrationAssignment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The RegistrationAssignment resource accepts the following input properties:

    Scope string
    Scope of the resource.
    Properties Pulumi.AzureNative.ManagedServices.Inputs.RegistrationAssignmentProperties
    Properties of a registration assignment.
    RegistrationAssignmentId string
    Guid of the registration assignment.
    Scope string
    Scope of the resource.
    Properties RegistrationAssignmentPropertiesArgs
    Properties of a registration assignment.
    RegistrationAssignmentId string
    Guid of the registration assignment.
    scope String
    Scope of the resource.
    properties RegistrationAssignmentProperties
    Properties of a registration assignment.
    registrationAssignmentId String
    Guid of the registration assignment.
    scope string
    Scope of the resource.
    properties RegistrationAssignmentProperties
    Properties of a registration assignment.
    registrationAssignmentId string
    Guid of the registration assignment.
    scope str
    Scope of the resource.
    properties RegistrationAssignmentPropertiesArgs
    Properties of a registration assignment.
    registration_assignment_id str
    Guid of the registration assignment.
    scope String
    Scope of the resource.
    properties Property Map
    Properties of a registration assignment.
    registrationAssignmentId String
    Guid of the registration assignment.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the registration assignment.
    Type string
    Type of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the registration assignment.
    Type string
    Type of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the registration assignment.
    type String
    Type of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the registration assignment.
    type string
    Type of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the registration assignment.
    type str
    Type of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the registration assignment.
    type String
    Type of the resource.

    Supporting Types

    AuthorizationResponse, AuthorizationResponseArgs

    PrincipalId string
    Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
    RoleDefinitionId string
    The role definition identifier. This role will define all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role.
    DelegatedRoleDefinitionIds List<string>
    The delegatedRoleDefinitionIds field is required when the roleDefinitionId refers to the User Access Administrator Role. It is the list of role definition ids which define all the permissions that the user in the authorization can assign to other security groups/service principals/users.
    PrincipalIdDisplayName string
    Display name of the principal Id.
    PrincipalId string
    Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
    RoleDefinitionId string
    The role definition identifier. This role will define all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role.
    DelegatedRoleDefinitionIds []string
    The delegatedRoleDefinitionIds field is required when the roleDefinitionId refers to the User Access Administrator Role. It is the list of role definition ids which define all the permissions that the user in the authorization can assign to other security groups/service principals/users.
    PrincipalIdDisplayName string
    Display name of the principal Id.
    principalId String
    Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
    roleDefinitionId String
    The role definition identifier. This role will define all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role.
    delegatedRoleDefinitionIds List<String>
    The delegatedRoleDefinitionIds field is required when the roleDefinitionId refers to the User Access Administrator Role. It is the list of role definition ids which define all the permissions that the user in the authorization can assign to other security groups/service principals/users.
    principalIdDisplayName String
    Display name of the principal Id.
    principalId string
    Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
    roleDefinitionId string
    The role definition identifier. This role will define all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role.
    delegatedRoleDefinitionIds string[]
    The delegatedRoleDefinitionIds field is required when the roleDefinitionId refers to the User Access Administrator Role. It is the list of role definition ids which define all the permissions that the user in the authorization can assign to other security groups/service principals/users.
    principalIdDisplayName string
    Display name of the principal Id.
    principal_id str
    Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
    role_definition_id str
    The role definition identifier. This role will define all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role.
    delegated_role_definition_ids Sequence[str]
    The delegatedRoleDefinitionIds field is required when the roleDefinitionId refers to the User Access Administrator Role. It is the list of role definition ids which define all the permissions that the user in the authorization can assign to other security groups/service principals/users.
    principal_id_display_name str
    Display name of the principal Id.
    principalId String
    Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
    roleDefinitionId String
    The role definition identifier. This role will define all the permissions that the security group/service principal/user must have on the projected subscription. This role cannot be an owner role.
    delegatedRoleDefinitionIds List<String>
    The delegatedRoleDefinitionIds field is required when the roleDefinitionId refers to the User Access Administrator Role. It is the list of role definition ids which define all the permissions that the user in the authorization can assign to other security groups/service principals/users.
    principalIdDisplayName String
    Display name of the principal Id.

    PlanResponse, PlanResponseArgs

    Name string
    The plan name.
    Product string
    The product code.
    Publisher string
    The publisher ID.
    Version string
    The plan's version.
    Name string
    The plan name.
    Product string
    The product code.
    Publisher string
    The publisher ID.
    Version string
    The plan's version.
    name String
    The plan name.
    product String
    The product code.
    publisher String
    The publisher ID.
    version String
    The plan's version.
    name string
    The plan name.
    product string
    The product code.
    publisher string
    The publisher ID.
    version string
    The plan's version.
    name str
    The plan name.
    product str
    The product code.
    publisher str
    The publisher ID.
    version str
    The plan's version.
    name String
    The plan name.
    product String
    The product code.
    publisher String
    The publisher ID.
    version String
    The plan's version.

    RegistrationAssignmentProperties, RegistrationAssignmentPropertiesArgs

    RegistrationDefinitionId string
    Fully qualified path of the registration definition.
    RegistrationDefinitionId string
    Fully qualified path of the registration definition.
    registrationDefinitionId String
    Fully qualified path of the registration definition.
    registrationDefinitionId string
    Fully qualified path of the registration definition.
    registration_definition_id str
    Fully qualified path of the registration definition.
    registrationDefinitionId String
    Fully qualified path of the registration definition.

    RegistrationAssignmentPropertiesResponse, RegistrationAssignmentPropertiesResponseArgs

    ProvisioningState string
    Current state of the registration assignment.
    RegistrationDefinition Pulumi.AzureNative.ManagedServices.Inputs.RegistrationAssignmentPropertiesResponseRegistrationDefinition
    Registration definition inside registration assignment.
    RegistrationDefinitionId string
    Fully qualified path of the registration definition.
    ProvisioningState string
    Current state of the registration assignment.
    RegistrationDefinition RegistrationAssignmentPropertiesResponseRegistrationDefinition
    Registration definition inside registration assignment.
    RegistrationDefinitionId string
    Fully qualified path of the registration definition.
    provisioningState String
    Current state of the registration assignment.
    registrationDefinition RegistrationAssignmentPropertiesResponseRegistrationDefinition
    Registration definition inside registration assignment.
    registrationDefinitionId String
    Fully qualified path of the registration definition.
    provisioningState string
    Current state of the registration assignment.
    registrationDefinition RegistrationAssignmentPropertiesResponseRegistrationDefinition
    Registration definition inside registration assignment.
    registrationDefinitionId string
    Fully qualified path of the registration definition.
    provisioning_state str
    Current state of the registration assignment.
    registration_definition RegistrationAssignmentPropertiesResponseRegistrationDefinition
    Registration definition inside registration assignment.
    registration_definition_id str
    Fully qualified path of the registration definition.
    provisioningState String
    Current state of the registration assignment.
    registrationDefinition Property Map
    Registration definition inside registration assignment.
    registrationDefinitionId String
    Fully qualified path of the registration definition.

    RegistrationAssignmentPropertiesResponseProperties, RegistrationAssignmentPropertiesResponsePropertiesArgs

    Authorizations List<Pulumi.AzureNative.ManagedServices.Inputs.AuthorizationResponse>
    Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role.
    Description string
    Description of the registration definition.
    ManagedByTenantId string
    Id of the managedBy tenant.
    ManagedByTenantName string
    Name of the managedBy tenant.
    ManageeTenantId string
    Id of the home tenant.
    ManageeTenantName string
    Name of the home tenant.
    ProvisioningState string
    Current state of the registration definition.
    RegistrationDefinitionName string
    Name of the registration definition.
    Authorizations []AuthorizationResponse
    Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role.
    Description string
    Description of the registration definition.
    ManagedByTenantId string
    Id of the managedBy tenant.
    ManagedByTenantName string
    Name of the managedBy tenant.
    ManageeTenantId string
    Id of the home tenant.
    ManageeTenantName string
    Name of the home tenant.
    ProvisioningState string
    Current state of the registration definition.
    RegistrationDefinitionName string
    Name of the registration definition.
    authorizations List<AuthorizationResponse>
    Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role.
    description String
    Description of the registration definition.
    managedByTenantId String
    Id of the managedBy tenant.
    managedByTenantName String
    Name of the managedBy tenant.
    manageeTenantId String
    Id of the home tenant.
    manageeTenantName String
    Name of the home tenant.
    provisioningState String
    Current state of the registration definition.
    registrationDefinitionName String
    Name of the registration definition.
    authorizations AuthorizationResponse[]
    Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role.
    description string
    Description of the registration definition.
    managedByTenantId string
    Id of the managedBy tenant.
    managedByTenantName string
    Name of the managedBy tenant.
    manageeTenantId string
    Id of the home tenant.
    manageeTenantName string
    Name of the home tenant.
    provisioningState string
    Current state of the registration definition.
    registrationDefinitionName string
    Name of the registration definition.
    authorizations Sequence[AuthorizationResponse]
    Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role.
    description str
    Description of the registration definition.
    managed_by_tenant_id str
    Id of the managedBy tenant.
    managed_by_tenant_name str
    Name of the managedBy tenant.
    managee_tenant_id str
    Id of the home tenant.
    managee_tenant_name str
    Name of the home tenant.
    provisioning_state str
    Current state of the registration definition.
    registration_definition_name str
    Name of the registration definition.
    authorizations List<Property Map>
    Authorization tuple containing principal id of the user/security group or service principal and id of the build-in role.
    description String
    Description of the registration definition.
    managedByTenantId String
    Id of the managedBy tenant.
    managedByTenantName String
    Name of the managedBy tenant.
    manageeTenantId String
    Id of the home tenant.
    manageeTenantName String
    Name of the home tenant.
    provisioningState String
    Current state of the registration definition.
    registrationDefinitionName String
    Name of the registration definition.

    RegistrationAssignmentPropertiesResponseRegistrationDefinition, RegistrationAssignmentPropertiesResponseRegistrationDefinitionArgs

    Id string
    Fully qualified path of the registration definition.
    Name string
    Name of the registration definition.
    Type string
    Type of the resource (Microsoft.ManagedServices/registrationDefinitions).
    Plan Pulumi.AzureNative.ManagedServices.Inputs.PlanResponse
    Plan details for the managed services.
    Properties Pulumi.AzureNative.ManagedServices.Inputs.RegistrationAssignmentPropertiesResponseProperties
    Properties of registration definition inside registration assignment.
    Id string
    Fully qualified path of the registration definition.
    Name string
    Name of the registration definition.
    Type string
    Type of the resource (Microsoft.ManagedServices/registrationDefinitions).
    Plan PlanResponse
    Plan details for the managed services.
    Properties RegistrationAssignmentPropertiesResponseProperties
    Properties of registration definition inside registration assignment.
    id String
    Fully qualified path of the registration definition.
    name String
    Name of the registration definition.
    type String
    Type of the resource (Microsoft.ManagedServices/registrationDefinitions).
    plan PlanResponse
    Plan details for the managed services.
    properties RegistrationAssignmentPropertiesResponseProperties
    Properties of registration definition inside registration assignment.
    id string
    Fully qualified path of the registration definition.
    name string
    Name of the registration definition.
    type string
    Type of the resource (Microsoft.ManagedServices/registrationDefinitions).
    plan PlanResponse
    Plan details for the managed services.
    properties RegistrationAssignmentPropertiesResponseProperties
    Properties of registration definition inside registration assignment.
    id str
    Fully qualified path of the registration definition.
    name str
    Name of the registration definition.
    type str
    Type of the resource (Microsoft.ManagedServices/registrationDefinitions).
    plan PlanResponse
    Plan details for the managed services.
    properties RegistrationAssignmentPropertiesResponseProperties
    Properties of registration definition inside registration assignment.
    id String
    Fully qualified path of the registration definition.
    name String
    Name of the registration definition.
    type String
    Type of the resource (Microsoft.ManagedServices/registrationDefinitions).
    plan Property Map
    Plan details for the managed services.
    properties Property Map
    Properties of registration definition inside registration assignment.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:managedservices:RegistrationAssignment 484a7d5f-9729-4b87-bc9b-26610985a013 /subscriptions/0afefe50-734e-4610-8c82-a144aff49dea/providers/Microsoft.ManagedServices/registrationAssignments/484a7d5f-9729-4b87-bc9b-26610985a013 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi