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

nsg naming mapping issue #135

Open
1 task done
1mpale opened this issue Feb 10, 2025 · 0 comments
Open
1 task done

nsg naming mapping issue #135

1mpale opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@1mpale
Copy link

1mpale commented Feb 10, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Module Version

8.4.1

Terraform Version

1.5.7

AzureRM Provider Version

4.0.0

Short Description

following the documentation, but still getting an error when running terrafrom plan

Terraform Configuration Files

module "vnet" {
source = "CloudNationHQ/vnet/azure"
version = "8.4.1"

naming = local.naming_primary_region

#location = var.region_short
#resource_group = module.rg.groups.ticketbuddy.name

vnet = {
name = "vnet-${var.environment}-${var.region_short}-nl-ticketbuddy"
location = var.location
resource_group = module.rg.groups.ticketbuddy.name
address_space = ["10.0.0.0/22"]

subnets = {
  cae = {
    name = "cae"
    address_prefixes = ["10.0.0.0/23"]
    delegations = {
      appservice = {
        name = "Microsoft.App/environments"
        actions = [
          "Microsoft.Network/virtualNetworks/subnets/join/action",
        ]
      }
    }
  }
  vm = {
    name = "vm"
    address_prefixes = ["10.0.2.0/26"]
    network_security_group = {
      # name = "allow_rdp"
      rules = {
        allow_rdp = {
          # name                     = "allow_rdp"
          priority                   = 100
          direction                  = "Inbound"
          access                     = "Allow"
          protocol                   = "Tcp"
          source_port_range          = "*"
          destination_port_range     = "3389"
          source_address_prefix      = "*"
          destination_address_prefix = "*"
        }
      }
    }
  }
  pe = {
    name = "pe"
    address_prefixes = ["10.0.3.0/26"]
  }
  bastion = {
    name = "AzureBastionSubnet"
    address_prefixes = ["10.0.3.64/26"]
  }
}

}
}

Expected Behaviour

No response

Actual Behaviour

Image

Steps to Reproduce

No response

Additional Context

No response

References

No response

@1mpale 1mpale added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant