Knicks management is making a huge effort to get on the good side of Janis Porzingis, the agent/brother of Kristaps.

Before the Knicks’ 106-101 victory over the Jazz Wednesday night, team president Steve Mills and general manager Scott Perry spoke amiably with Janis on the sidelines for nearly 30 minutes during warm-ups.

Before the Cavaliers game on Monday, Janis met with Knicks coach Jeff Hornacek after his pregame interview.

Hornacek was responsible for firing former assistant Joshua Longstaff, whom Porzingis considered his favorite coach. (Longstaff is now with the Jazz as their G-League coach.)

Janis Porzingis and former team president Phil Jackson never got along — and were never seen publicly talking, though Janis was always a pregame presence. Jackson made a habit of not conversing publicly with agents.

According to a source, Perry believes it’s important to improve that relationship with Janis, a former professional player in Europe.

Janis was quoted two weeks ago in a Latvian magazine, making a threatening remark about his brother’s long-term future as a Knick and creating a furor. According to a source, Janis felt badly about the way the quotes were portrayed.

Kristaps Porzingis, who finished with 22 points and eight rebounds, is a free agent in 2019 and could sign a rookie contract extension this summer. Janis also took ownership of the skipped exit meeting, indicating it was a way to protest the team’s operations.

In the translation, Janis said, “We are more focused on some other values [than money] and not just to quickly sign a new contract so we can collect the money. That’s definitely not our goal, so we won’t be feverishly counting minutes or counting points. You can’t escape the reality and the Knicks must also see that.”

According to the translation, Janis added the Knicks “cannot upset him much or otherwise, at the end of the season, he will say, “It’s not so cool here.”

On the Michael Kay radio show Tuesday, Kristaps Porzingis said of his brother’s comments: “He said what he said. He said it in a different way. When you translated it, it sounds totally different. It was taken out of context and sounded way worse than it was. I’m sure there’ll be moment after the season is over we’ll talk about what he said deeper.’’

With the Knicks, now 8-6, Porzingis sounded very happy here.

“We have the fundamentals as a team,’’ Porzingis said. “First of all, we play defense and we’ll be competitive in a lot of those games. We’re together as a team. And I believe we have the fundamentals offensively and defensively to keep going.”

Ron Baker (shoulder) was inactive again. … The Knicks finished a stretch Wednesday during which eight of their last nine games were at the Garden.