Azure – Reset subscription or fix web app

azure

I'm trying to set up a web app, but I keep on getting errors.

If I try in the portal I keep on seeing that the status is "deleted" and the deployment failed because application insights is not supported in my region.

I do not need application insights.

In Visual Studio I get the following error

————————— Microsoft Visual Studio
————————— Following errors occured during the deployment:

Error during deployment for resource 'AppInsightsComponents MySite'
in resource group 'MegaSale': MissingRegistrationForLocation: 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..

Error during deployment for resource 'MySite' in resource group
'MegaSale': NoRegisteredProviderFound: No registered resource provider
found for location 'West Europe' and API version '2.0' for type
'servers'. The supported api-versions are '2014-01-01, 2014-04-01,
2014-04-01-preview'. The supported locations are 'centralus, eastus,
westus, southcentralus, eastus2, northcentralus, eastasia,
southeastasia, japanwest, japaneast, northeurope, westeurope,
brazilsouth, australiaeast, australiasoutheast, centralindia,
westindia, southindia, canadacentral, canadaeast, westus2,
westcentralus, uksouth, ukwest'..

and this occurs no matter which region I choose.

I would like to use Western Europe, but can accept a different region if it would just work.

I don't mind scraping my whole subscription and starting anew, though I'd rather not if possible.

The resource group I certainly don't mind trashing totally.

Best Answer

I had the same problem today. The only way I could bypass this was:

  1. Create a new web application on https://portal.azure.com
  2. Change "Application Insights" in Monitoring Section of the new web app to force it to one of the available zones (in dropdown list)
  3. Export the publishing setting for this web app
  4. In Visual studio, publish the application importing the above publishing settings instead using Azure publishing options
Related Topic