Failed Deployment – Subscription is not registered to use namespace “Microsoft.OperationalInsights”
Problem
Section titled “Problem”Installation of CloudMonitor Analytics Engine fails and a deployment error with a message appears stating: “The Subscription is not registered to use namespace ‘Microsoft.XYZ’” (For example, XYZ = “Microsoft.OperationalInsights”).
This error means that CloudMonitor has requested to deploy a type of resource that it requires and the Azure Provider is not currently registered on the Subscription where you are installing CloudMonitor to.
Here are some of the Providers that CloudMonitor users
Section titled “Here are some of the Providers that CloudMonitor users”- Microsoft.BotService
- Microsoft.Synapse
- Microsoft.OperationalInsights
Solution
Section titled “Solution”1) Open the Subscription where you are trying to install the CloudMonitor Analytics Engine
Section titled “1) Open the Subscription where you are trying to install the CloudMonitor Analytics Engine”Click on “Resource providers” in the menu on the left (see screenshot below).
Then type the name of the missing namespace (.e.g Microsoft.OperationalInsights) into the search box.

You will see that the Status of the resource we searched shows as “NotRegistered”. This is an essential component in the CloudMonitor Analytics Engine for auditing, so just click on the “Register” button to enable it.
2) After a few minutes, refresh the page and you will see that it has now changed to “Registered” with a green tick.
Section titled “2) After a few minutes, refresh the page and you will see that it has now changed to “Registered” with a green tick.”
3) You can now attempt to re-install the CloudMonitor Analytics Engine from the marketplace and it should get past this error.
Section titled “3) You can now attempt to re-install the CloudMonitor Analytics Engine from the marketplace and it should get past this error.”Note: There are multiple different types of Resource Providers required which would have the same solution if the problem arose.