Skip to content

Commit 8f032bd

Browse files
committed
feat: add VM size configuration for database, API, and frontend VMs; update API base URL and install script for temp directory creation
1 parent 2d9812b commit 8f032bd

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

04-cloud/azure/iaas/01-db-vm/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ DB_VM_IMAGE="MicrosoftSQLServer:sql2022-ws2022:sqldev-gen2:16.0.230613"
99
DB_VM_ADMIN_USERNAME="dbadmin"
1010
DB_VM_ADMIN_PASSWORD="Db@dmin123#-"
1111
DB_VM_NSG_NAME="db-vm-nsg"
12+
VM_SIZE="Standard_B2s"
1213
```
1314

1415
o si estás en Windows:
@@ -20,6 +21,7 @@ $DB_VM_IMAGE="MicrosoftSQLServer:sql2022-ws2022:sqldev-gen2:16.0.230613"
2021
$DB_VM_ADMIN_USERNAME="dbadmin"
2122
$DB_VM_ADMIN_PASSWORD="Db@dmin123!$"
2223
$DB_VM_NSG_NAME="db-vm-nsg"
24+
$VM_SIZE="Standard_B2s"
2325
```
2426

2527
```bash

04-cloud/azure/iaas/02-api-vm/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ API_VM_IMAGE="Ubuntu2204"
1010
API_VM_ADMIN_USERNAME="apiadmin"
1111
API_VM_ADMIN_PASSWORD="Api@dmin-1232"
1212
API_VM_NSG_NAME="api-vm-nsg"
13+
VM_SIZE="Standard_B1ms"
1314
```
1415

1516
o si estás en Windows:

04-cloud/azure/iaas/02-api-vm/api.http

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#@base_url = http://tour-of-heroes-api-vm-<TU_NUMERO_RANDOM>.uksouth.cloudapp.azure.com/api/hero
2-
@base_url = http://tour-of-heroes-api-vm-23623.spaincentral.cloudapp.azure.com/api/hero
2+
@base_url = http://tour-of-heroes-api-vm-9807.spaincentral.cloudapp.azure.com/api/hero
33

44
GET {{base_url}} HTTP/1.1
55

04-cloud/azure/iaas/03-frontend-vm/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ Ahora vamos a crear la máquina virtual para el frontend. Para ello, vamos a nec
66
# 🎨 VM del Frontend en Azure
77
FRONTEND_VM_NAME="frontend-vm"
88
FRONTEND_DNS_LABEL="tour-of-heroes-frontend-vm-$RANDOM"
9-
FRONTEND_VM_IMAGE="MicrosoftWindowsServer:WindowsServer:2022-Datacenter:latest"
9+
FRONTEND_VM_IMAGE="MicrosoftWindowsServer:WindowsServer:2019-Datacenter-Core:17763.8027.251112"
1010
FRONTEND_VM_ADMIN_USERNAME="frontendadmin"
1111
FRONTEND_VM_ADMIN_PASSWORD="fr0nt#nd@dmin123"
1212
FRONTEND_VM_NSG_NAME="frontend-vm-nsg"
13+
VM_SIZE="Standard_B1ms"
1314
```
1415

1516
o si estás en Windows:
1617

1718
```pwsh
1819
# 🎨 VM del Frontend en Azure
1920
$FRONTEND_VM_NAME="frontend-vm"
20-
$FRONTEND_VM_IMAGE="MicrosoftWindowsServer:WindowsServer:2022-Datacenter:latest"
21+
$FRONTEND_VM_IMAGE="MicrosoftWindowsServer:WindowsServer:2016-Datacenter:latest"
2122
$FRONTEND_VM_ADMIN_USERNAME="frontendadmin"
2223
$FRONTEND_VM_ADMIN_PASSWORD="fr0nt#nd@dmin123"
2324
$FRONTEND_VM_NSG_NAME="frontend-vm-nsg"

04-cloud/azure/iaas/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Una vez hecho esto, te recomiendo que setees algunas variables de entorno para q
1818
# 📋 Variables generales
1919
RESOURCE_GROUP="tour-of-heroes-on-vms"
2020
LOCATION="spaincentral"
21-
VM_SIZE="Standard_B2s"
2221
```
2322

2423
o si estás en Windows con PowerShell:
@@ -27,7 +26,6 @@ o si estás en Windows con PowerShell:
2726
# 📋 Variables generales
2827
$RESOURCE_GROUP="tour-of-heroes-on-vms"
2928
$LOCATION="spaincentral"
30-
$VM_SIZE="Standard_B2s"
3129
```
3230

3331
Una vez que las tengas cargadas en tu terminal, deber saber que todo lo que crees en Azure tiene que estar dentro de lo que se conoce como **grupo de recursos** 📁. Un grupo de recursos es un contenedor lógico en el que se despliegan y se administran los recursos de Azure.

04-cloud/azure/iaas/scripts/install-tour-of-heroes-angular.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ param(
33
[string]$api_url
44
)
55

6+
# Crear carpeta Temp si no existe
7+
Write-Output "[INFO] Creando carpeta temporal C:\Temp"
8+
if (-not (Test-Path "C:\Temp")) {
9+
New-Item -ItemType Directory -Path "C:\Temp" -Force | Out-Null
10+
}
11+
612
Write-Output "[INFO] Instalando IIS en la VM del frontend"
713
Install-WindowsFeature -name Web-Server -IncludeManagementTools
814

0 commit comments

Comments
 (0)