No requirements.
Name | Version |
---|---|
azurerm | n/a |
No modules.
Name | Type |
---|---|
azurerm_resource_group.rg | resource |
azurerm_vpn_server_configuration.vpnsc | resource |
azurerm_vpn_server_configuration_policy_group.vpnscpg | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
azure_active_directory_authentication | (Optional) A azure_active_directory_authentication block as defined above. | object({ |
null |
no |
client_revoked_certificate | (Optional) One or more client_revoked_certificate blocks as defined above. | map(object({ |
null |
no |
client_root_certificate | (Optional) One or more client_root_certificate blocks as defined above. | map(object({ |
null |
no |
deploy_resource_group | (Optional) Specifies whether to deploy the resource group or not. Defaults to true. | bool |
true |
no |
ipsec_policy | (Optional) A ipsec_policy block as defined above. | object({ |
null |
no |
location | (Required) The Azure location where this VPN Server Configuration should be created. Changing this forces a new resource to be created. | string |
"westeurope" |
no |
managed_by | (Optional) The ID of the resource or application that manages this Resource Group. | string |
null |
no |
name | (Required) The Name which should be used for this VPN Server Configuration. Changing this forces a new resource to be created. | string |
n/a | yes |
policy_groups | (Optional) One or more policy_groups blocks as defined above. | map(object({ |
null |
no |
radius | (Optional) A radius block as defined above. | object({ |
null |
no |
resource_group_name | (Required) The Name of the Resource Group in which this VPN Server Configuration should be created. Changing this forces a new resource to be created. | string |
n/a | yes |
tags | (Optional) A mapping of tags to assign to the resources | any |
null |
no |
vpn_authentication_types | (Required) A list of Authentication Types applicable for this VPN Server Configuration. Possible values are AAD (Azure Active Directory), Certificate and Radius. | list(string) |
n/a | yes |
vpn_protocols | (Optional) A list of VPN Protocols to use for this Server Configuration. Possible values are IkeV2 and OpenVPN. | list(string) |
[] |
no |
Name | Description |
---|---|
id | The ID of the VPN Server Configuration. |
data "azurerm_client_config" "current" {
}
module "vpn_server_configuration" {
source = "github.com/fjdev/terraform-azurerm-vpn-server-configuration"
name = "example-vpnsc"
deploy_resource_group = false
resource_group_name = "example-rg"
location = "West Europe"
vpn_authentication_types = ["AAD"]
vpn_protocols = ["OpenVPN"]
azure_active_directory_authentication = {
audience = "41b23e61-6c1e-4545-b367-cd054e0ed4b4"
issuer = "https://sts.windows.net/${data.azurerm_client_config.current.tenant_id}/"
tenant = "https://login.microsoftonline.com/${data.azurerm_client_config.current.tenant_id}/"
}
}