Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/azurerm: add subnet resource #4595

Merged
merged 1 commit into from
Jan 9, 2016

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Jan 9, 2016

@jen20 Scaffold the Azure RM Subnet resource

  • Schema
  • CRUD
  • Acceptance Tests
  • Documentation
make testacc TEST=./builtin/providers/azurerm TESTARGS='-run=AzureRMSubnet' 2>~/tf.log
==> Checking that code complies with gofmt requirements...
go generate ./...
TF_ACC=1 go test ./builtin/providers/azurerm -v -run=AzureRMSubnet -timeout 120m
=== RUN   TestAccAzureRMSubnet_basic
--- PASS: TestAccAzureRMSubnet_basic (132.11s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/azurerm    132.123s

the changes to the virtual_network resource is to mark subnets as Optional as they will compete with the use of azurerm_subnet

make testacc TEST=./builtin/providers/azurerm TESTARGS='-run=AzureRMVirtualNetwork' 2>~/tf.log
==> Checking that code complies with gofmt requirements...
go generate ./...
TF_ACC=1 go test ./builtin/providers/azurerm -v -run=AzureRMVirtualNetwork -timeout 120m
=== RUN   TestAccAzureRMVirtualNetwork_basic
--- PASS: TestAccAzureRMVirtualNetwork_basic (125.13s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/azurerm    125.140s

@@ -57,7 +57,7 @@ The following arguments are supported:
* `dns_servers` - (Optional) List of names of DNS servers previously registered
on Azure.

* `subnet` - (Required) Can be specified multiple times to define multiple
* `subnet` - (Optional) Can be specified multiple times to define multiple
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary here to use either all inline subnets or all separate resources? If so we should document this here and in the subnet doc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jen20 this is exactly the same behaviour as for Network Security Group / Network Security Rule

From Slack (with @phinze):


stack72 [2:01 PM] 
oh they can’t be mixed?

phinze [2:01 PM] 
right because they'll always fight

stack72 [2:01 PM] 
ah so you would set up a basic network_acl and ​*then add*​ the rules?

​[2:01] 
now i see

​[2:01] 
that makes more sense

phinze [2:01 PM] 
yep, all nested or all _rule is the key

@jen20
Copy link
Contributor

jen20 commented Jan 9, 2016

LGTM. I put a comment in line but it doesn't affect the operation of it and we can make that change later if it is deemed necessary. Thanks @stack72!

jen20 added a commit that referenced this pull request Jan 9, 2016
provider/azurerm: add subnet resource
@jen20 jen20 merged commit e7e58df into hashicorp:master Jan 9, 2016
@stack72 stack72 deleted the azurerm-network-subnet branch January 9, 2016 18:36
@ghost
Copy link

ghost commented Apr 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants