@@ -12,6 +12,7 @@ Use this page for tunnel + `ssh -L` forwarding to Crime services.
1212## Contents
1313
1414- [Prerequisites](#prerequisites)
15+ - [Bastion reference](#bastion-reference)
1516- [Pattern](#pattern)
1617- [Example: Artemis admin UI](#example-artemis-admin-ui)
1718- [Example: Postgres PaaS](#example-postgres-paas)
@@ -30,6 +31,15 @@ Use this page for tunnel + `ssh -L` forwarding to Crime services.
3031- General SSH working via Bastion. See [General SSH use](./general-ssh.html) first.
3132- Target VM must have network path to the downstream service (Postgres, Artemis, Gerrit).
3233
34+ ## Bastion reference
35+
36+ | Environment | Bastion name | Resource group |
37+ | --- | --- | --- |
38+ | Nonlive | `BA-MDV-DMZ-01` | `RG-MDV-BASTION-01` |
39+ | Live | `BA-MPD-DMZ-01` | `RG-MPD-BASTION-01` |
40+
41+ The examples below use the nonlive values. Swap in the live values for production access.
42+
3343## Pattern
3444
35451. Open Bastion tunnel to target VM SSH port.
@@ -53,8 +63,8 @@ Open tunnel:
5363
5464```bash
5565az network bastion tunnel \
56- --name VN -MDV-DMZ-01-bastion \
57- --resource-group RG-MDV-DMZ -01 \
66+ --name BA -MDV-DMZ-01 \
67+ --resource-group RG-MDV-BASTION -01 \
5868 --target-resource-id "/subscriptions/e6b5053b-4c38-4475-a835-a025aeb3d8c7/resourceGroups/RG-MDV-INT-01/providers/Microsoft.Compute/virtualMachines/MDVCREV01.cpp.nonlive" \
5969 --resource-port 22 \
6070 --port 2022
@@ -80,8 +90,8 @@ Open tunnel:
8090
8191```bash
8292az network bastion tunnel \
83- --name VN -MDV-DMZ-01-bastion \
84- --resource-group RG-MDV-DMZ -01 \
93+ --name BA -MDV-DMZ-01 \
94+ --resource-group RG-MDV-BASTION -01 \
8595 --target-resource-id "/subscriptions/e6b5053b-4c38-4475-a835-a025aeb3d8c7/resourceGroups/RG-MDV-INT-01/providers/Microsoft.Compute/virtualMachines/MDVCREV01.cpp.nonlive" \
8696 --resource-port 22 \
8797 --port 2022
@@ -109,8 +119,8 @@ Open tunnel to Bastion:
109119
110120```bash
111121az network bastion tunnel \
112- --name VN -MDV-DMZ-01-bastion \
113- --resource-group RG-MDV-DMZ -01 \
122+ --name BA -MDV-DMZ-01 \
123+ --resource-group RG-MDV-BASTION -01 \
114124 --target-resource-id "/subscriptions/e6b5053b-4c38-4475-a835-a025aeb3d8c7/resourceGroups/RG-MDV-INT-01/providers/Microsoft.Compute/virtualMachines/MDVCREV01.cpp.nonlive" \
115125 --resource-port 22 \
116126 --port 2022
0 commit comments