Skip to content

Commit 2d9812b

Browse files
committed
feat: update database VM creation script with additional parameters for connectivity and authentication
1 parent 5d5e043 commit 2d9812b

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ az sql vm create \
159159
--name $DB_VM_NAME \
160160
--license-type payg \
161161
--resource-group $RESOURCE_GROUP \
162-
--sql-mgmt-type Lightweight
162+
--sql-mgmt-type Lightweight \
163+
--connectivity-type PRIVATE \
164+
--port 1433 \
165+
--sql-auth-update-username $DB_VM_ADMIN_USERNAME \
166+
--sql-auth-update-pwd $DB_VM_ADMIN_PASSWORD
163167

164168
echo -e "✅ Extensión de base de datos creada"
165169
```
@@ -172,7 +176,11 @@ az sql vm create `
172176
--name $DB_VM_NAME `
173177
--license-type payg `
174178
--resource-group $RESOURCE_GROUP `
175-
--sql-mgmt-type Lightweight
179+
--sql-mgmt-type Lightweight `
180+
--connectivity-type PRIVATE `
181+
--port 1433 `
182+
--sql-auth-update-username $DB_VM_ADMIN_USERNAME `
183+
--sql-auth-update-pwd $DB_VM_ADMIN_PASSWORD
176184
```
177185

178186
## 🔒 Crear una regla de seguridad de red para SQL Server

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-22555.spaincentral.cloudapp.azure.com/api/hero
2+
@base_url = http://tour-of-heroes-api-vm-23623.spaincentral.cloudapp.azure.com/api/hero
33

44
GET {{base_url}} HTTP/1.1
55

04-cloud/azure/iaas/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ Una vez hecho esto, te recomiendo que setees algunas variables de entorno para q
1919
RESOURCE_GROUP="tour-of-heroes-on-vms"
2020
LOCATION="spaincentral"
2121
VM_SIZE="Standard_B2s"
22-
23-
STORAGE_ACCOUNT_NAME="tourofheroesbackups$RANDOM"
2422
```
2523

2624
o si estás en Windows con PowerShell:
@@ -30,8 +28,6 @@ o si estás en Windows con PowerShell:
3028
$RESOURCE_GROUP="tour-of-heroes-on-vms"
3129
$LOCATION="spaincentral"
3230
$VM_SIZE="Standard_B2s"
33-
34-
$STORAGE_ACCOUNT_NAME="tourofheroesbackups"
3531
```
3632

3733
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.

0 commit comments

Comments
 (0)