The subscription is not registered to use namespace 'Microsoft.OperationalInsights'. See https://aka.ms/rps-not-found for how to register subscriptions.

2025-08-11T19:03:31.8766667+00:00

How to solve this VS Code console error
The subscription is not registered to use namespace 'Microsoft.OperationalInsights'. See https://aka.ms/rps-not-found for how to register subscriptions.

Cost Management
Cost Management

A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.

0 comments No comments

Answer accepted by question author
hossein jalilian 13,365 Reputation points Volunteer Moderator
2025-08-11T19:30:23+00:00

Thanks for posting your question in the Microsoft Q&A forum.

That “subscription is not registered to use namespace Microsoft.OperationalInsights” error just means your Azure subscription hasn’t enabled the resource provider needed for things like Log Analytics, Azure Monitor, or App Insights. The fix is to register it—either in the Azure Portal under your subscription’s “Resource providers” or with the CLI command az provider register --namespace Microsoft.OperationalInsights. Once registered, try your deployment again and it should work.


Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

Was this answer helpful?

2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Thakane Moeti 0 Reputation points
    2026-09-30T15:08:16.0766667+00:00

    I registered mine and the status comes back saying its registering how long does it take ?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.