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