This AI Stock Is the Ultimate Set-It-and-Forget-It Buy for Long-Term Investors
By Maksym Misichenko · Nasdaq ·
By Maksym Misichenko · Nasdaq ·
What AI agents think about this news
The panelists agree that Microsoft's AI and cloud growth are promising, but they express concerns about execution risks, competition, and potential margin compression due to increased capital expenditure. The 'set-it-and-forget-it' narrative is challenged, and the 25x forward earnings multiple is seen as optimistic by some.
Risk: Margin compression due to increased capital expenditure and potential slowdown in AI demand or enterprise spend.
Opportunity: Microsoft's 'Sovereign AI' strategy, which involves selling private, localized Azure instances to governments and regulated industries.
This analysis is generated by the StockScreener pipeline — four leading LLMs (Claude, GPT, Gemini, Grok) receive identical prompts with built-in anti-hallucination guards. Read methodology →
This particular tech company has proven its earnings and stock performance strengths over time.
It generates revenue from many businesses and has built a solid position in AI.
Artificial intelligence (AI) stocks have been driving the S&P 500 to incredible gains in recent years. Investors have rushed to get in on key players powering this revolution, as well as lesser-known companies that could be winners of the future. The reason for all of this excitement is simple: AI, even in its early days, has shown us it can deliver efficiency and help companies become more innovative. And all of this may lead to significant earnings growth for the developers and users of the technology.
This is a fast-moving field, but that doesn't necessarily mean all AI stocks are risky or must be watched like a pot of boiling water on your stove. In fact, one AI company in particular offers a package that cautious investors will like: a long history of earnings strength due to multiple businesses and a solid position in AI. And that's what makes this AI stock the ultimate set-it-and-forget-it buy for long-term investors. Let's check it out.
Will AI create the world's first trillionaire? Our team just released a report on the one little-known company, called an "Indispensable Monopoly" providing the critical technology Nvidia and Intel both need. Continue »
The player I'm referring to is involved in many areas of technology and is among the world's biggest companies. At the same time, it got in early on AI and has emerged as one of the major players in the field. This stock to buy and hold for the long term is Microsoft (NASDAQ: MSFT).
Most of us are familiar with Microsoft because it's the owner of something we use every day: Microsoft 365, which includes famous products like Word and Excel. Microsoft sells these packages to individuals and businesses -- but the company's offerings go well beyond this software and apps suite.
Microsoft also generates revenue from ownership of professional networking platform LinkedIn, gaming brand Xbox, its cloud business, and more. All of this has helped the company's earnings grow over time. This track record offers Microsoft investors a certain sense of security as they can count on revenue and growth from the tech giant.
Meanwhile, the company has also become a key player in the AI boom. Microsoft has invested about $13 billion in OpenAI over time -- and through the partnership, it gained access to the AI research lab's models and became its main cloud provider.
On top of this, Microsoft's cloud business is delivering tremendous growth due to its offerings of AI products and services to its customers. In the recent quarter, for example, the AI business' annual revenue run rate topped $37 billion -- that's up 123%. And the entire cloud business delivered quarterly revenue of $54 billion for a 29% increase. Microsoft, as well as other cloud providers and chip companies such as leader Nvidia, have all delivered the same message in recent times: Compute demand for AI workloads continues to soar.
Some investors have shied away from Microsoft in recent months, though, fearing that AI will replace its software in the years to come. This has weighed on the stock, driving it to a 12% decline this year. I don't see AI as a threat since corporate customers have deeply integrated Microsoft's software into their systems -- it's unlikely they would unwind these systems in favor of an AI tool. Instead, the growth in AI may be an opportunity for Microsoft, as the company is integrating AI tools into its software to make this software more and more powerful.
And now that the AI boom is shifting into the era of AI agents, or the software that solves problems and completes tasks, Microsoft could emerge as a big winner. The tech titan is building out cloud infrastructure to support this technology and building agentic systems, too.
Meanwhile, Microsoft stock today trades for 25x forward earnings estimates right now, down from more than 35x about a year ago. This is a fantastic buying opportunity for a company that offers well-established growth drivers as well as leadership in the hot area of AI. And that's why it's the ultimate set-it-and-forget-it AI stock to buy now.
Before you buy stock in Microsoft, consider this:
The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Microsoft wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.
Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $483,476! Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,362,941!
Now, it’s worth noting Stock Advisor’s total average return is 998% — a market-crushing outperformance compared to 207% for the S&P 500. Don't miss the latest top 10 list, available with Stock Advisor, and join an investing community built by individual investors for individual investors.
**Stock Advisor returns as of May 19, 2026. *
Adria Cimino has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Microsoft and Nvidia. The Motley Fool has a disclosure policy.
The views and opinions expressed herein are the views and opinions of the author and do not necessarily reflect those of Nasdaq, Inc.
Four leading AI models discuss this article
"Microsoft’s diversification cushions downside but its AI premium still requires flawless execution that the article does not stress-test."
Microsoft’s Azure AI run-rate of $37B and 29% cloud growth underscore real revenue momentum from its OpenAI partnership and early infrastructure bets. Yet the article underplays execution risks: hyperscale capex is surging while monetization of AI agents remains unproven, and enterprise customers may delay upgrades amid budget scrutiny. At 25x forward earnings—down from 35x—the multiple still assumes sustained 20%+ EPS growth that faces competition from AWS, Google Cloud, and open-source alternatives. Regulatory pressure on the OpenAI tie-up and potential software displacement add further uncertainty for true set-and-forget investors.
If AI agents drive faster productivity gains and stickier Microsoft 365 adoption than expected, the current valuation could prove conservative rather than stretched, rewarding long-term holders who ignore near-term noise.
"MSFT's valuation compression from 35x to 25x reflects market skepticism about AI monetization, not a bargain—the stock is fairly priced for a 15-18% CAGR, not a 'set-it-and-forget-it' winner."
This piece conflates diversification with defensiveness. Yes, MSFT trades at 25x forward P/E (down from 35x), and yes, the $37B AI revenue run rate growing 123% is real. But the article ignores a critical tension: Microsoft's core software moat (Office, Windows) is mature and faces structural headwinds—enterprise software adoption is plateauing. The AI upside is priced in; the 25x multiple assumes sustained 20%+ EPS growth. If AI monetization disappoints or competition from OpenAI/Anthropic erodes margins, there's no earnings cushion from legacy business to catch the fall. 'Set-and-forget' is marketing language masking execution risk.
The strongest case against me: Microsoft's $54B quarterly cloud revenue with 29% growth, plus embedded AI integration across 400M+ Office users, creates genuine network effects that are genuinely hard to disrupt. If Copilot adoption accelerates enterprise spending, the stock could re-rate to 28-30x.
"Microsoft's valuation compression is justified by the transition from high-margin software sales to a high-CapEx infrastructure model that carries significant execution risk."
Microsoft (MSFT) is currently priced at roughly 25x forward earnings, which is a reasonable entry point for a company with its cloud scale and enterprise moat. The 'set-it-and-forget-it' narrative, however, ignores the massive capital expenditure (CapEx) cycle. Microsoft is spending billions on data centers and GPU clusters to support Azure AI, and the ROI on these assets remains unproven at scale. While the 123% run rate growth in AI services is impressive, it is still a fraction of overall revenue. Investors are essentially betting that Microsoft can successfully transition from a software-margin business to a capital-intensive infrastructure provider without compressing its long-term operating margins.
If the 'AI agent' revolution fails to drive significant enterprise productivity gains, Microsoft will be left with a multi-billion dollar bill for underutilized, depreciating server infrastructure.
"MSFT is priced for continued AI-driven growth; any miss on AI monetization or cloud demand could lead to meaningful multiple compression."
The piece markets MSFT as an immortal AI winner, a 'set-it-and-forget-it' idea built on OpenAI ties and cloud strength. But the skeptical read flags: AI demand could decelerate or be back‑ended into margins, cloud/AIS capex pressure may compress margins, and fierce competition from Google Cloud and AWS could erode pricing power. Regulatory and data-privacy scrutiny around AI usage could slow enterprise adoption. At ~25x forward earnings, MSFT looks priced for solid growth; any miss on AI monetization or cloud growth risks meaningful multiple compression, especially if the AI hype cycle cools.
The strongest counter is that AI demand could surprise to the upside, with Azure AI uptake and Copilot monetization potentially driving earnings upgrades fast enough to justify a higher multiple. If adoption slows or regulatory headwinds bite, sentiment could abruptly reverse and trigger meaningful multiple compression.
"Microsoft's existing infrastructure could limit AI-driven margin compression to 200-300 bps if utilization ramps within 18 months."
Gemini highlights the CapEx burden but misses how Microsoft's pre-existing data centers and long-term power deals could compress the ROI timeline to 18 months versus longer for AWS or Google. This integration might cap operating margin pressure at 200-300 basis points rather than triggering steeper declines. Yet if enterprise AI spend slips even one quarter, that cushion vanishes and the 25x multiple quickly looks optimistic.
"Microsoft's capex advantage is overstated if enterprise AI adoption disappoints—idle infrastructure becomes a balance-sheet liability, not a moat."
Grok's 18-month ROI claim needs scrutiny. Microsoft's existing infrastructure advantage is real, but 'pre-existing data centers' aren't free—they're already depreciated assets now being repurposed at opportunity cost. The 200-300 bps margin cushion assumes utilization ramps predictably; one soft quarter in enterprise AI spend doesn't just erode cushion, it forces asset write-downs if capacity sits idle. Nobody's modeled the downside scenario where capex accelerates but revenue growth stalls.
"Microsoft's focus on sovereign, compliance-heavy AI cloud deployments provides a recurring revenue buffer that mitigates the risks of standard enterprise budget cuts."
Claude is right to challenge the ROI timeline, but we are all ignoring the 'Sovereign AI' shift. Microsoft is aggressively selling private, localized Azure instances to governments and regulated industries—a moat that AWS and Google struggle to replicate due to Microsoft’s deep-rooted legacy enterprise compliance. This isn't just about GPU utilization; it's about locking in multi-year, high-margin government contracts that are immune to general enterprise budget scrutiny, effectively insulating their margins against the CapEx volatility Gemini fears.
"Sovereign AI alone cannot shield Microsoft from capex risk; the real upside hinges on monetizing AI broadly in the commercial market, not government contracts."
The 'Sovereign AI' moat is real but not a panacea. Government and regulated-industry deals can be high-margin, but procurement cycles are long and sales cycles can be lumpier than broad enterprise spend; budget constraints and export controls can cap upside. Moreover, even if gov demand remains sticky, it doesn't shield margins from overall capex intensity or from non-government AI monetization risk. The real earnings lever is Copilot/agent monetization across commercial customers, not sovereign wins.
The panelists agree that Microsoft's AI and cloud growth are promising, but they express concerns about execution risks, competition, and potential margin compression due to increased capital expenditure. The 'set-it-and-forget-it' narrative is challenged, and the 25x forward earnings multiple is seen as optimistic by some.
Microsoft's 'Sovereign AI' strategy, which involves selling private, localized Azure instances to governments and regulated industries.
Margin compression due to increased capital expenditure and potential slowdown in AI demand or enterprise spend.