You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ Error: creating Resource Group "rg-gen008-mlw-dev": resources.GroupsClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="LocationNotAvailableForResourceGroup" Message="The provided location 'spaincentral' is not available for resource group. List of available regions is 'eastasia,southeastasia,australiaeast,australiasoutheast,brazilsouth,canadacentral,canadaeast,switzerlandnorth,germanywestcentral,eastus2,eastus,centralus,northcentralus,francecentral,uksouth,ukwest,centralindia,southindia,jioindiawest,italynorth,japaneast,japanwest,koreacentral,koreasouth,mexicocentral,northeurope,norwayeast,polandcentral,qatarcentral,swedencentral,uaenorth,westcentralus,westeurope,westus2,westus,southcentralus,westus3,southafricanorth,australiacentral,australiacentral2,israelcentral,westindia'."
│
│ with module.azure-machine-learning.azurerm_resource_group.mlw_rg,
│ on .terraform/modules/azure-machine-learning/modules/azure-machine-learning/main.tf line 59, in resource "azurerm_resource_group""mlw_rg":
│ 59: resource "azurerm_resource_group""mlw_rg" {
Expected Behaviour
Deploy resources to Spain Central region
Actual Behaviour
It does not happen
Steps to Reproduce
Our tenant is able to deploy resources to Spain Central but when I assign location to "spaincentral" in a resource group with Terraform, as it refers to another resource group that we have deployed in this region, it is not allowed.
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
Per the Azure documentation the Spain Central region is still "coming soon" and so doesn't appear to be generally available yet:
Whilst you may have access to/resources deployed within this Region, until it's generally available there may be some additional configuration required for the Service Principal/User Account in question, so I'd suggest reaching out to Azure Support who should be able to provide further information. The error message that you've quoted above is being returned from the Azure API, so whilst Terraform has support for this region, ultimately Azure Support (or your contact who granted access to this "coming soon" region) should be able to provide further information here.
Note that if you're using the Azure CLI to authenticate to Terraform, if you don't specify the subscription_id then we'll use the default Subscription ID from the Azure CLI, which could be a potential source of this issue - if one subscription has access to this region but another doesn't? You should be able to confirm this by checking the subscription_id being returned from the azurerm_client_config data source.
However since the AzureRM Provider has support for this region and this error is coming from the Azure API, I'm going to close this issue for the moment - but as mentioned above Azure Support should be able to clarify what's going on here since this error message is coming from the Azure API.
Is there an existing issue for this?
Community Note
Terraform Version
last
AzureRM Provider Version
last
Affected Resource(s)/Data Source(s)
azurerm_resource_group
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Deploy resources to Spain Central region
Actual Behaviour
It does not happen
Steps to Reproduce
Our tenant is able to deploy resources to Spain Central but when I assign location to "spaincentral" in a resource group with Terraform, as it refers to another resource group that we have deployed in this region, it is not allowed.
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: