azure-native.managedservices.RegistrationAssignment
Explore with Pulumi AI
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.
Azure Native. Managed Services. Inputs. Registration Assignment Properties - Properties of a registration assignment.
- Registration
Assignment stringId - Guid of the registration assignment.
- Scope string
- Scope of the resource.
- Properties
Registration
Assignment Properties Args - Properties of a registration assignment.
- Registration
Assignment stringId - Guid of the registration assignment.
- scope String
- Scope of the resource.
- properties
Registration
Assignment Properties - Properties of a registration assignment.
- registration
Assignment StringId - Guid of the registration assignment.
- scope string
- Scope of the resource.
- properties
Registration
Assignment Properties - Properties of a registration assignment.
- registration
Assignment stringId - Guid of the registration assignment.
- scope str
- Scope of the resource.
- properties
Registration
Assignment Properties Args - Properties of a registration assignment.
- registration_
assignment_ strid - Guid of the registration assignment.
- scope String
- Scope of the resource.
- properties Property Map
- Properties of a registration assignment.
- registration
Assignment StringId - Guid of the registration assignment.
Outputs
All input properties are implicitly available as output properties. Additionally, the RegistrationAssignment resource produces the following output properties:
Supporting Types
AuthorizationResponse, AuthorizationResponseArgs
- Principal
Id string - Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
- Role
Definition stringId - 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 List<string>Definition Ids - 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 stringDisplay Name - Display name of the principal Id.
- Principal
Id string - Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
- Role
Definition stringId - 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 []stringDefinition Ids - 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 stringDisplay Name - Display name of the principal Id.
- principal
Id String - Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
- role
Definition StringId - 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 List<String>Definition Ids - 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 StringDisplay Name - Display name of the principal Id.
- principal
Id string - Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
- role
Definition stringId - 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 string[]Definition Ids - 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 stringDisplay Name - 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_ strid - 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_ Sequence[str]definition_ ids - 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_ strdisplay_ name - Display name of the principal Id.
- principal
Id String - Principal Id of the security group/service principal/user that would be assigned permissions to the projected subscription
- role
Definition StringId - 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 List<String>Definition Ids - 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 StringDisplay Name - Display name of the principal Id.
PlanResponse, PlanResponseArgs
RegistrationAssignmentProperties, RegistrationAssignmentPropertiesArgs
- Registration
Definition stringId - Fully qualified path of the registration definition.
- Registration
Definition stringId - Fully qualified path of the registration definition.
- registration
Definition StringId - Fully qualified path of the registration definition.
- registration
Definition stringId - Fully qualified path of the registration definition.
- registration_
definition_ strid - Fully qualified path of the registration definition.
- registration
Definition StringId - Fully qualified path of the registration definition.
RegistrationAssignmentPropertiesResponse, RegistrationAssignmentPropertiesResponseArgs
- Provisioning
State string - Current state of the registration assignment.
- Registration
Definition Pulumi.Azure Native. Managed Services. Inputs. Registration Assignment Properties Response Registration Definition - Registration definition inside registration assignment.
- Registration
Definition stringId - Fully qualified path of the registration definition.
- Provisioning
State string - Current state of the registration assignment.
- Registration
Definition RegistrationAssignment Properties Response Registration Definition - Registration definition inside registration assignment.
- Registration
Definition stringId - Fully qualified path of the registration definition.
- provisioning
State String - Current state of the registration assignment.
- registration
Definition RegistrationAssignment Properties Response Registration Definition - Registration definition inside registration assignment.
- registration
Definition StringId - Fully qualified path of the registration definition.
- provisioning
State string - Current state of the registration assignment.
- registration
Definition RegistrationAssignment Properties Response Registration Definition - Registration definition inside registration assignment.
- registration
Definition stringId - Fully qualified path of the registration definition.
- provisioning_
state str - Current state of the registration assignment.
- registration_
definition RegistrationAssignment Properties Response Registration Definition - Registration definition inside registration assignment.
- registration_
definition_ strid - Fully qualified path of the registration definition.
- provisioning
State String - Current state of the registration assignment.
- registration
Definition Property Map - Registration definition inside registration assignment.
- registration
Definition StringId - Fully qualified path of the registration definition.
RegistrationAssignmentPropertiesResponseProperties, RegistrationAssignmentPropertiesResponsePropertiesArgs
- List<Pulumi.
Azure Native. Managed Services. Inputs. Authorization Response> - 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.
- Managed
By stringTenant Id - Id of the managedBy tenant.
- Managed
By stringTenant Name - Name of the managedBy tenant.
- Managee
Tenant stringId - Id of the home tenant.
- Managee
Tenant stringName - Name of the home tenant.
- Provisioning
State string - Current state of the registration definition.
- Registration
Definition stringName - Name of the registration definition.
- []Authorization
Response - 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.
- Managed
By stringTenant Id - Id of the managedBy tenant.
- Managed
By stringTenant Name - Name of the managedBy tenant.
- Managee
Tenant stringId - Id of the home tenant.
- Managee
Tenant stringName - Name of the home tenant.
- Provisioning
State string - Current state of the registration definition.
- Registration
Definition stringName - Name of the registration definition.
- List<Authorization
Response> - 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.
- managed
By StringTenant Id - Id of the managedBy tenant.
- managed
By StringTenant Name - Name of the managedBy tenant.
- managee
Tenant StringId - Id of the home tenant.
- managee
Tenant StringName - Name of the home tenant.
- provisioning
State String - Current state of the registration definition.
- registration
Definition StringName - Name of the registration definition.
- Authorization
Response[] - 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.
- managed
By stringTenant Id - Id of the managedBy tenant.
- managed
By stringTenant Name - Name of the managedBy tenant.
- managee
Tenant stringId - Id of the home tenant.
- managee
Tenant stringName - Name of the home tenant.
- provisioning
State string - Current state of the registration definition.
- registration
Definition stringName - Name of the registration definition.
- Sequence[Authorization
Response] - 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_ strtenant_ id - Id of the managedBy tenant.
- managed_
by_ strtenant_ name - Name of the managedBy tenant.
- managee_
tenant_ strid - Id of the home tenant.
- managee_
tenant_ strname - Name of the home tenant.
- provisioning_
state str - Current state of the registration definition.
- registration_
definition_ strname - Name of the registration definition.
- 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.
- managed
By StringTenant Id - Id of the managedBy tenant.
- managed
By StringTenant Name - Name of the managedBy tenant.
- managee
Tenant StringId - Id of the home tenant.
- managee
Tenant StringName - Name of the home tenant.
- provisioning
State String - Current state of the registration definition.
- registration
Definition StringName - 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.
Azure Native. Managed Services. Inputs. Plan Response - Plan details for the managed services.
- Properties
Pulumi.
Azure Native. Managed Services. Inputs. Registration Assignment Properties Response Properties - 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
Plan
Response - Plan details for the managed services.
- Properties
Registration
Assignment Properties Response Properties - 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
Plan
Response - Plan details for the managed services.
- properties
Registration
Assignment Properties Response Properties - 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
Plan
Response - Plan details for the managed services.
- properties
Registration
Assignment Properties Response Properties - 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
Plan
Response - Plan details for the managed services.
- properties
Registration
Assignment Properties Response Properties - 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