forked from Azure/terraform-azurerm-aci-devops-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vnet.tf
26 lines (22 loc) · 805 Bytes
/
vnet.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
resource "azurerm_virtual_network" "vnet" {
name = "pepsico-vnet-aci-devops"
address_space = ["10.0.0.0/16"]
location = var.location
resource_group_name = var.resource_group_name
}
resource "azurerm_subnet" "aci-subnet" {
name = "pepsico-aci-subnet"
resource_group_name = var.resource_group_name
virtual_network_name = azurerm_virtual_network.vnet.name
address_prefixes = ["10.0.1.0/24"]
delegation {
name = "acidelegation"
service_delegation {
name = "Microsoft.ContainerInstance/containerGroups"
actions = ["Microsoft.Network/virtualNetworks/subnets/join/action", "Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action"]
}
}
depends_on = [
azurerm_virtual_network.vnet
]
}