NOTE: The Azure Service Management Provider has been superseded by the Azure Resource Manager Provider and is no longer being actively developed by HashiCorp employees. It continues to be supported by the community. We recommend using the Azure Resource Manager based Microsoft Azure Provider if possible.
Defines a new Firewall Rule to be applied across the given Database Servers.
resource "azure_sql_database_server" "sql-serv1" { # ... } resource "azure_sql_database_server" "sql-serv2" { # ... } resource "azure_sql_database_server_firewall_rule" "constraint" { name = "terraform-testing-rule" start_ip = "154.0.0.0" end_ip = "154.0.0.255" database_server_names = [ "${azure_sql_database_server.sql-serv1.name}", "${azure_sql_database_server.sql-serv2.name}", ] }
The following arguments are supported:
name
- (Required) The name of the rule. Changing forces the creation of a new resource.
start_ip
- (Required) The IPv4 which will represent the lower bound of the rule's application IP's. Traffic to/from IP's greater than or equal to this one up to the end_ip
will be permitted.
end_ip
- (Required) The IPv4 which will represent the upper bound of the rule's application IP's. Traffic to/from IP's lesser that or equal to this one all the way down to the start_ip
will be permitted.
database_server_names
- (Required) The set of names of the Azure SQL Database servers the rule should be enforced on.
The following attributes are exported:
id
- The database server ID. Coincides with the given name
.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azure/r/sql_database_server_firewall_rule.html