Simple module to create a Subnet (no NSG).
- a Resource Group
- a Virtual Network (VNet)
module "sn-test_Nate-Fr" {
source = "github.com/nfrappart/azTerraSubnetWithNSG?ref=v1.0.0"
SubnetName = "sn-test_Nate-Fr"
RgName = module.rg-core-eu.Name #ref to an existing RG created via module named RG-Core-Fr
VNetName = module.vn-hub-eu.Name #ref to an existing VNet created via module named VN-Fr
SubnetAddressPrefix = ["10.0.1.0/24"] #CIDR lock must be part of VNet IPspace
}