Subscription is not registered azure Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist https://www.anujvarma.com/tag/subscription-is-not-registered-azure/ Production Grade Technical Solutions | Data Encryption and Public Cloud Expert Fri, 27 Apr 2018 17:10:07 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://www.anujvarma.com/wp-content/uploads/anujtech.png Subscription is not registered azure Archives - Anuj Varma, Hands-On Technology Architect, Clean Air Activist https://www.anujvarma.com/tag/subscription-is-not-registered-azure/ 32 32 Error during deployment of resource – Subscription is not registered in region–error while publishing to Azure Websites or Azure API Apps https://www.anujvarma.com/subscription-is-not-registered-in-region-error-while-publishing-to-azure-websites-or-azure-api-apps/ https://www.anujvarma.com/subscription-is-not-registered-in-region-error-while-publishing-to-azure-websites-or-azure-api-apps/#respond Fri, 30 Mar 2018 17:31:40 +0000 http://www.anujvarma.com/?p=4963 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 – […]

The post Error during deployment of resource – Subscription is not registered in region–error while publishing to Azure Websites or Azure API Apps appeared first on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.

]]>
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…

image

 

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

The post Error during deployment of resource – Subscription is not registered in region–error while publishing to Azure Websites or Azure API Apps appeared first on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.

]]>
https://www.anujvarma.com/subscription-is-not-registered-in-region-error-while-publishing-to-azure-websites-or-azure-api-apps/feed/ 0