File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,32 +21,3 @@ locals {
2121 db_connection_string = " Server=tcp:${ local . sql_server_name } .database.windows.net,1433;Initial Catalog=pocketddd-dev-sqldatabase;Persist Security Info=False;User ID=${ random_string . admin_login . result } ;Password=${ random_password . admin_password . result } ;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
2222}
2323
24- resource "azurerm_virtual_network" "vnet" {
25- name = " ${ local . resource_prefix } -vnet"
26- location = azurerm_resource_group. rg . location
27- resource_group_name = azurerm_resource_group. rg . name
28- address_space = [" 10.0.0.0/16" ]
29- dns_servers = [" 10.0.0.4" , " 10.0.0.5" ]
30-
31- tags = {
32- environment = var.env
33- }
34- }
35-
36- resource "azurerm_subnet" "subnet" {
37- name = " default-subnet"
38- resource_group_name = azurerm_resource_group. rg . name
39- virtual_network_name = azurerm_virtual_network. vnet . name
40- address_prefixes = [" 10.0.1.0/24" ]
41-
42- delegation {
43- name = " delegation"
44-
45- service_delegation {
46- name = " Microsoft.Web/serverFarms"
47- actions = [" Microsoft.Network/virtualNetworks/subnets/action" ]
48- }
49- }
50-
51- service_endpoints = [" Microsoft.Sql" ]
52- }
You can’t perform that action at this time.
0 commit comments