title: Deploying MVC app to Azure App Services Error - subscription is not registered for the resource type
body: <p>I am trying to public an MVC application to azure from Visual Studio 2015 directly.<em>[Right click project > Publish > To Azure]</em>
  Every time i try to Publish my web application to my azure account i get the following error:</p>
  
  <pre><code>**The subscription is not registered for the resource type 'components' in the location 'Central US'. Please re-register for this provider in order to have access to this location.**
  </code></pre>
  
  <p>I have tried to use multiple locations to host the application and the error still continues</p>
  
  <p><strong>Q:</strong> How does one register for this component? (i have not included application insights in my application on creation)</p>
  
  <p>Below is more details around the error:</p>
  
  <pre><code>OPERATION IDC16287A675C4B7D3
  TRACKING IDb0355f45-867b-4328-95cd-6d627751c619
  STATUSConflict
  PROVISIONING STATEFailed
  TIMESTAMP12/3/2016, 3:12:24 PM
  DURATIONPT0.8505384S
  TYPEmicrosoft.insights/components
  RESOURCE ID/subscriptions/a955ba0f-a5f6-4ba4-b7d4-a0dae7b87215/resourceGroups/DemoBEEApp1Resources/providers/microsoft.insights/components/DemoBEEApp2
  STATUSMESSAGE{
    "error": {
      "code": "MissingRegistrationForLocation",
      "message": "The subscription is not registered for the resource type 'components' in the location 'Central US'. Please re-register for this provider in order to have access to this location."
    }
  }
  RESOURCEDemoBEEApp2
  </code></pre>
  
  <p>When i try find the areas supported using the powershell command:</p>
  
  <pre><code>((Get-AzureRmResourceProvider -ProviderNamespace microsoft.insights).ResourceTypes | Where-Object ResourceTypeName -eq sites).Locations
  </code></pre>
  
  <p>The result comes back blank. </p>
  
  <p><a href="https://i.stack.imgur.com/WwJoH.png" rel="noreferrer">See Screenshot</a></p>
  
  <p><strong>Q:</strong> What is this microsoft.insights and why is it automatically required but not available?</p>
  
  <p>I really hope somebody can assist me</p>