Deployment Error: "The subscription is not registered for the resource type 'components' in the location 'centralus'. Please re-register for this provider in order to have access to this location."
garymansell opened this issue · 1 comments
I have tried numerous deployments to various Azure Locations using a new (free) subscription and repeatedly get this error - any ideas?
New-AzureRmResourceGroupDeployment : 14:46:30 - Resource microsoft.insights/components 'mydrivingAPI-gqvh2d2stc4dq' failed with message '{
"error": {
"code": "MissingRegistrationForLocation",
"message": "The subscription is not registered for the resource type 'components' in the location 'centralus'. Please re-register for this provider in order to have access to this location."
}
}'
At C:\MyDriving\scripts\PowerShell\deploy.ps1:147 char:16
- ... ployment2 = New-AzureRmResourceGroupDeployment -Name "$DeploymentName ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
- FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
Change the file scenario_complete.json line to this (as I am in north europe):
"appInsightsLocation": "northeurope", /* App Insights is currently only available in Central US */