Error during deployment of resource – Subscription is not registered in region–error while publishing to Azure Websites or Azure API Apps

This was a frustrating error – trying to publish your VS web app to an Azure Website, gives a long-winded error message about regions and subscriptions…



The workaround – Change your default region settings

Step 1 – Check if windows powershell is installed

Get-Module PowerShellGet -list | Select-Object Name,Version,Path

Step 2 – Install Azure Powershell from the Windows PS command

Install-Module AzureRM

Step 3 – Run the following from Azure Powershell

  1. Login-AzureRmAccount // Enter credentials to correct to your subscription
  2. $resource = Get-AzureRmResource  
  3. $resource | where { $_.ResourceType -eq ‘Microsoft.insights/autoscalesettings’ } | Remove-AzureRmResource  
  4. $resource | where { $_.ResourceType -eq ‘Microsoft.insights/alertrules’ } | Remove-AzureRmResource 

Cloud Advisory Services | Security Advisory Services | Data Science Advisory and Research

Specializing in high volume web and cloud application architecture, Anuj Varma’s customer base includes Fortune 100 companies (, British Petroleum, Schlumberger).

All content on this site is original and owned by AdverSite Web Holdings, Inc. – the parent company of No part of it may be reproduced without EXPLICIT consent from the owner of the content.

Anuj Varma – who has written posts on Anuj Varma, Technology Architect.

Leave a Reply

Your email address will not be published. Required fields are marked *