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

	if args.DisplayName == nil {
		return nil, errors.New("invalid value for required argument 'DisplayName'")
	}
	if args.UserPrincipalName == nil {
		return nil, errors.New("invalid value for required argument 'UserPrincipalName'")
	}
	var resource User
	err := ctx.RegisterResource("azuread:index/user:User", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewUser registers a new resource with the given unique name, arguments, and options.
NewUser registers a new resource with the given unique name, arguments, and options.
// NewUser registers a new resource with the given unique name arguments and options .
func NewUser(ctx *pulumi.Context,
	name string, args *UserArgs, opts ...pulumi.ResourceOption) (*User, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.DisplayName == nil {
		return nil, errors.New("invalid value for required argument 'DisplayName'")
	}
	if args.UserPrincipalName == nil {
		return nil, errors.New("invalid value for required argument 'UserPrincipalName'")
	}
	var resource User
	err := ctx.RegisterResource("azuread:index/user:User", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewUser ( ctx * pulumi . Context , name string , args * UserArgs , opts ... pulumi . ResourceOption ) ( * User , error ) { if args == nil { return nil , errors . New ( " " ) } if args . DisplayName == nil { return nil , errors . New ( " " ) } if args . UserPrincipalName == nil { return nil , errors . New ( " " ) } var resource User err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewUser registers a new resource with the given unique name, arguments, and options.
NewUser registers a new resource with the given unique name arguments and options .