func NewUserAssignedIdentity(ctx *pulumi.Context,
	name string, args *UserAssignedIdentityArgs, opts ...pulumi.ResourceOption) (*UserAssignedIdentity, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	aliases := pulumi.Aliases([]pulumi.Alias{
		{
			Type: pulumi.String("azure:msi/userAssignedIdentity:UserAssignedIdentity"),
		},
	})
	opts = append(opts, aliases)
	var resource UserAssignedIdentity
	err := ctx.RegisterResource("azure:authorization/userAssignedIdentity:UserAssignedIdentity", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewUserAssignedIdentity registers a new resource with the given unique name, arguments, and options.
NewUserAssignedIdentity registers a new resource with the given unique name, arguments, and options.
// NewUserAssignedIdentity registers a new resource with the given unique name arguments and options .
func NewUserAssignedIdentity(ctx *pulumi.Context,
	name string, args *UserAssignedIdentityArgs, opts ...pulumi.ResourceOption) (*UserAssignedIdentity, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	aliases := pulumi.Aliases([]pulumi.Alias{
		{
			Type: pulumi.String("azure:msi/userAssignedIdentity:UserAssignedIdentity"),
		},
	})
	opts = append(opts, aliases)
	var resource UserAssignedIdentity
	err := ctx.RegisterResource("azure:authorization/userAssignedIdentity:UserAssignedIdentity", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewUserAssignedIdentity ( ctx * pulumi . Context , name string , args * UserAssignedIdentityArgs , opts ... pulumi . ResourceOption ) ( * UserAssignedIdentity , error ) { if args == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } aliases := pulumi . Aliases ( [ ] pulumi . Alias { { Type : pulumi . String ( " " ) , } , } ) opts = append ( opts , aliases ) var resource UserAssignedIdentity err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewUserAssignedIdentity registers a new resource with the given unique name, arguments, and options.
NewUserAssignedIdentity registers a new resource with the given unique name arguments and options .