hashicorp / terraform-provider-azure-classic

Terraform Azure Classic (Service Management) provider
https://www.terraform.io/docs/providers/azure/
Mozilla Public License 2.0
3 stars 11 forks source link

Cannot create an Azure virtual network, missing location or affinity group #10

Closed hashibot closed 6 years ago

hashibot commented 7 years ago

This issue was originally opened by @progre55 as hashicorp/terraform#3976. It was migrated here as part of the provider split. The original body of the issue is below.


Whenever I try to create a virtual network, I'm getting the following error:

azure_virtual_network.default: Error creating Virtual Network test-network: Error response from Azure. Code: BadRequest, Message: Neither Affinity Group nor Location elemet is specified in virtual network site 'AppMySiteNetwork'. Either Affinity Group or Location must be specified for every virtual network.

Here is my code:

resource "azure_virtual_network" "default" {
    name = "test-network"
    address_space = ["10.1.2.0/24"]
    location = "West US"

    subnet {
        name = "subnet1"
        address_prefix = "10.1.2.0/25"
    }
}
vancluever commented 6 years ago

Hello!

Thank you for opening this issue and participating in the discussion. Today (December 19, 2017) we’ve announced the deprecation and archival of the Azure Classic Provider. Matching Microsoft’s commitment to gradually remove access to Azure Classic (or Service Management) which is outlined in this blog post, we are closing all open PR's and Issues here. This repository will remain available here on GitHub, but in an archived state, and no longer receiving support or new releases.

The Azure (Resource Manager) Provider remains fully supported and is our recommended approach for managing Azure with Terraform. More information about this process is available in the blog post linked above.

Thanks! The Terraform Team