3.5 KiB
3.5 KiB
Azure Private Link private endpoint for Azure SQL Database
This template deploys an Azure Virtual Network, a subnet, a Azure NAT Gateway, a two public IP addresses, a Linux virtual machine, an Azure SQL server and database, and a private endpoint for the Azure SQL server.
Terraform resource types
- azurerm_resource_group
- azurerm_virtual_network
- azurerm_subnet
- azurerm_public_ip
- azurerm_nat_gateway
- azurerm_nat_gateway_public_ip_association
- azurerm_subnet_nat_gateway_association
- azurerm_network_security_group
- azurerm_linux_virtual_machine
- azurerm_network_interface
- azurerm_network_interface_security_group_association
- azurerm_storage_account
- random_id
- random_pet
- random_password
- azurerm_mssql_server
- azurerm_mssql_database
- azurerm_private_endpoint
- azurerm_private_dns_zone
- azurerm_private_dns_zone_virtual_network_link
Variables
Name | Description | Default |
---|---|---|
resource_group_name_prefix |
Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. | rg |
resource_group_location |
Location of the resource group. | eastus |
username |
Username of the administrator account of the virtual machine. | azureuser |
sql_db_name |
The name of the SQL Database. | SampleDB |
admin_username |
The administrator username of the SQL logical server. | azureadmin |
admin_password |
The administrator password of the SQL logical server. | null; If value is null, a random password is generated. |