Skip to content

Commit

Permalink
added 810 net gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
HoussemDellai committed Jan 29, 2024
1 parent 695c0c6 commit b1e8732
Show file tree
Hide file tree
Showing 26 changed files with 48 additions and 28 deletions.
4 changes: 2 additions & 2 deletions 006_route_table/terraform.tfstate
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@
"resource_group_name": "rg-spoke-1-006",
"secret": [],
"secure_boot_enabled": false,
"size": "Standard_B2als_v2",
"size": "Standard_B2ats_v2",
"source_image_id": "",
"source_image_reference": [
{
Expand Down Expand Up @@ -978,7 +978,7 @@
"resource_group_name": "rg-spoke-2-006",
"secret": [],
"secure_boot_enabled": false,
"size": "Standard_B2als_v2",
"size": "Standard_B2ats_v2",
"source_image_id": "",
"source_image_reference": [
{
Expand Down
4 changes: 3 additions & 1 deletion 300_load_balancer_vm/vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ resource "azurerm_linux_virtual_machine" "vm" {
name = "vm-linux"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
disable_password_authentication = false
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic_vm.id]
priority = "Spot"
eviction_policy = "Deallocate"

custom_data = filebase64("../scripts/install-webapp.sh")

Expand Down
2 changes: 1 addition & 1 deletion 301_load_balancer_vmss/vmss.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "vmss" {
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
instances = 3
sku = "Standard_B2als_v2"
sku = "Standard_B2ats_v2"
zones = ["1", "2", "3"]
disable_password_authentication = false
admin_username = "azureuser"
Expand Down
2 changes: 1 addition & 1 deletion 302_load_balancer_internal_vmss_natgateway/vmss.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "vmss" {
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
instances = 3
sku = "Standard_B2als_v2"
sku = "Standard_B2ats_v2"
zones = ["1", "2", "3"]
disable_password_authentication = false
admin_username = "azureuser"
Expand Down
4 changes: 3 additions & 1 deletion 400_private_dns_zone/vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ resource "azurerm_linux_virtual_machine" "vm" {
name = "vm-linux"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
disable_password_authentication = false
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic_vm.id]
priority = "Spot"
eviction_policy = "Deallocate"

os_disk {
caching = "ReadWrite"
Expand Down
2 changes: 1 addition & 1 deletion 410_private_endpoint_mssql/vm_jumpbox.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "azurerm_windows_virtual_machine" "vm" {
name = "vm-jumpbox-w11"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic-vm.id]
Expand Down
4 changes: 3 additions & 1 deletion 420_private_endpoint_pls/vm_jumpbox.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ resource "azurerm_linux_virtual_machine" "vm" {
name = "vm-linux"
resource_group_name = azurerm_resource_group.rg-consumer.name
location = azurerm_resource_group.rg-consumer.location
size = "Standard_B2ls_v2" # "Standard_B2als_v2"
size = "Standard_B2ls_v2" # "Standard_B2ats_v2"
disable_password_authentication = false
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic_vm.id]
priority = "Spot"
eviction_policy = "Deallocate"

os_disk {
caching = "ReadWrite"
Expand Down
2 changes: 1 addition & 1 deletion 420_private_endpoint_pls/vmss.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "vmss" {
resource_group_name = azurerm_resource_group.rg-provider.name
location = azurerm_resource_group.rg-provider.location
instances = 3
sku = "Standard_B2als_v2"
sku = "Standard_B2ats_v2"
zones = ["1", "2", "3"]
disable_password_authentication = false
admin_username = "azureuser"
Expand Down
4 changes: 3 additions & 1 deletion 430_service_endpoint_storage_account/linux_vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ resource "azurerm_linux_virtual_machine" "vm" {
name = "vm-linux"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
disable_password_authentication = false
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic_vm.id]
priority = "Spot"
eviction_policy = "Deallocate"

os_disk {
caching = "ReadWrite"
Expand Down
4 changes: 3 additions & 1 deletion 431_service_endpoint_app_service/linux_vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ resource "azurerm_linux_virtual_machine" "vm" {
name = "vm-linux"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
disable_password_authentication = false
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic_vm.id]
priority = "Spot"
eviction_policy = "Deallocate"

os_disk {
caching = "ReadWrite"
Expand Down
2 changes: 1 addition & 1 deletion 500_application_gateway_vmss/vmss.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "vmss" {
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
instances = 3
sku = "Standard_B2als_v2"
sku = "Standard_B2ats_v2"
zones = ["1", "2", "3"]
disable_password_authentication = false
admin_username = "azureuser"
Expand Down
2 changes: 1 addition & 1 deletion 520_application_gateway_vmss_tls_cert_keyvault/vmss.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "vmss" {
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
instances = 3
sku = "Standard_B2als_v2"
sku = "Standard_B2ats_v2"
zones = ["1", "2", "3"]
disable_password_authentication = false
admin_username = "azureuser"
Expand Down
4 changes: 3 additions & 1 deletion 600_public_ip_vm/linux_vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ resource "azurerm_linux_virtual_machine" "vm" {
name = "vm-linux"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
disable_password_authentication = false
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic-vm.id]
priority = "Spot"
eviction_policy = "Deallocate"

os_disk {
caching = "ReadWrite"
Expand Down
4 changes: 3 additions & 1 deletion 620_nat_gateway/linux_vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ resource "azurerm_linux_virtual_machine" "vm" {
name = "vm-linux"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
disable_password_authentication = false
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic_vm.id]
priority = "Spot"
eviction_policy = "Deallocate"

os_disk {
caching = "ReadWrite"
Expand Down
2 changes: 1 addition & 1 deletion 621_nat_gateway_lb/vmss.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "vmss" {
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
instances = 3
sku = "Standard_B2als_v2"
sku = "Standard_B2ats_v2"
zones = ["1", "2", "3"]
disable_password_authentication = false
admin_username = "azureuser"
Expand Down
2 changes: 1 addition & 1 deletion 710_api_management_internal/windows_vm-jumpbox.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "azurerm_windows_virtual_machine" "vm-windows" {
name = "vm-windows-w11"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic-vm-windows.id]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "azurerm_windows_virtual_machine" "vm-windows" {
name = "vm-windows-w11"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic-vm-windows.id]
Expand Down
4 changes: 2 additions & 2 deletions 800_onprem_vpn_gateway_p2s/terraform.tfstate
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"resource_group_name": "rg-vpn-gateway-p2s-800",
"secret": [],
"secure_boot_enabled": false,
"size": "Standard_B2als_v2",
"size": "Standard_B2ats_v2",
"source_image_id": "",
"source_image_reference": [
{
Expand Down Expand Up @@ -945,7 +945,7 @@
"resource_group_name": "rg-vpn-gateway-p2s-800",
"secret": [],
"secure_boot_enabled": false,
"size": "Standard_B2als_v2",
"size": "Standard_B2ats_v2",
"source_image_id": "",
"source_image_reference": [
{
Expand Down
4 changes: 3 additions & 1 deletion 800_onprem_vpn_gateway_p2s/vm_linux.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ resource "azurerm_linux_virtual_machine" "vm" {
name = "vm-linux"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
disable_password_authentication = false
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic-vm.id]
priority = "Spot"
eviction_policy = "Deallocate"

custom_data = filebase64("./install-webapp.sh")

Expand Down
2 changes: 1 addition & 1 deletion 800_onprem_vpn_gateway_p2s/vm_windows.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "azurerm_windows_virtual_machine" "vm" {
name = "vm-jumpbox-w11"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
size = "Standard_B2als_v2"
size = "Standard_B2ats_v2"
admin_username = "azureuser"
admin_password = "@Aa123456789"
network_interface_ids = [azurerm_network_interface.nic-vm-windows.id]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "azurerm_linux_virtual_machine" "vm" {
name = var.vm_name
resource_group_name = var.resource_group_name
location = var.location
size = "Standard_B2ats_v2" # "Standard_B2als_v2"
size = "Standard_B2ats_v2" # "Standard_B2ats_v2"
disable_password_authentication = false
admin_username = "azureuser"
admin_password = "@Aa123456789"
Expand Down
2 changes: 1 addition & 1 deletion modules/bastion/variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variable "name" {
type = string
type = string
default = "bastion-host"
}

Expand Down
2 changes: 2 additions & 0 deletions modules/vm_linux/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ resource "azurerm_linux_virtual_machine" "vm" {
admin_username = var.admin_username
admin_password = var.admin_password
network_interface_ids = [azurerm_network_interface.nic_vm.id]
priority = "Spot"
eviction_policy = "Deallocate"
tags = var.tags

custom_data = var.install_webapp ? filebase64("../scripts/install-webapp.sh") : null
Expand Down
4 changes: 2 additions & 2 deletions modules/vm_linux/variables.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
variable "resource_group_name" {}
variable "location" {}
variable "tags" {
type = map
type = map(any)
default = {}
}
variable "subnet_id" {}
variable "vm_name" {}
variable "vm_size" {
type = string
default = "Standard_B2als_v2" # "Standard_B1ms" # Standard_B2ls_v2 # Standard_B2s_v2
default = "Standard_B2ats_v2" # "Standard_B1ms" # Standard_B2ls_v2 # Standard_B2s_v2
}
variable "admin_username" {
type = string
Expand Down
2 changes: 2 additions & 0 deletions modules/vm_windows/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ resource "azurerm_windows_virtual_machine" "vm" {
admin_username = var.admin_username
admin_password = var.admin_password
network_interface_ids = [azurerm_network_interface.nic_vm.id]
priority = "Spot"
eviction_policy = "Deallocate"
tags = var.tags

custom_data = var.install_webapp ? filebase64("../scripts/install-tools-windows.ps1") : null
Expand Down
4 changes: 2 additions & 2 deletions modules/vm_windows/variables.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
variable "resource_group_name" {}
variable "location" {}
variable "tags" {
type = map
type = map(any)
default = {}
}
variable "subnet_id" {}
variable "vm_name" {}
variable "vm_size" {
type = string
default = "Standard_B2als_v2" # "Standard_B1ms" # Standard_B2ls_v2 # Standard_B2s_v2
default = "Standard_B2ats_v2" # "Standard_B1ms" # Standard_B2ls_v2 # Standard_B2s_v2
}
variable "admin_username" {
type = string
Expand Down

0 comments on commit b1e8732

Please sign in to comment.