Skip to content

Commit 61b2659

Browse files
authored
Merge pull request #200465 from tanuballa/patch-211
add vmss guidance
2 parents 27dc1c9 + 6e86cff commit 61b2659

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/bastion/connect-native-client-windows.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,23 +159,23 @@ Use the example that corresponds to the type of target VM to which you want to c
159159
If you’re signing in to an Azure AD login-enabled VM, use the following command. For more information, see [Azure Linux VMs and Azure AD](../active-directory/devices/howto-vm-sign-in-azure-ad-linux.md).
160160

161161
```azurecli
162-
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-resource-id "<VMResourceId>" --auth-type "AAD"
162+
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-resource-id "<VMResourceId or VMSSInstanceResourceId>" --auth-type "AAD"
163163
```
164164
165165
**SSH:**
166166
167167
The extension can be installed by running, ```az extension add --name ssh```. To sign in using an SSH key pair, use the following example.
168168
169169
```azurecli
170-
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-resource-id "<VMResourceId>" --auth-type "ssh-key" --username "<Username>" --ssh-key "<Filepath>"
170+
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-resource-id "<VMResourceId or VMSSInstanceResourceId>" --auth-type "ssh-key" --username "<Username>" --ssh-key "<Filepath>"
171171
```
172172
173173
**Username/password:**
174174
175175
If you’re signing in using a local username and password, use the following command. You’ll then be prompted for the password for the target VM.
176176
177177
```azurecli
178-
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-resource-id "<VMResourceId>" --auth-type "password" --username "<Username>"
178+
az network bastion ssh --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-resource-id "<VMResourceId or VMSSInstanceResourceId>" --auth-type "password" --username "<Username>"
179179
```
180180
181181
1. Once you sign in to your target VM, the native client on your computer will open up with your VM session; **MSTSC** for RDP sessions, and **SSH CLI extension (az ssh)** for SSH sessions.
@@ -197,7 +197,7 @@ This connection supports file upload from the local computer to the target VM. F
197197
1. Open the tunnel to your target VM using the following command.
198198

199199
```azurecli
200-
az network bastion tunnel --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-resource-id "<VMResourceId>" --resource-port "<TargetVMPort>" --port "<LocalMachinePort>"
200+
az network bastion tunnel --name "<BastionName>" --resource-group "<ResourceGroupName>" --target-resource-id "<VMResourceId or VMSSInstanceResourceId>" --resource-port "<TargetVMPort>" --port "<LocalMachinePort>"
201201
```
202202

203203
1. Connect to your target VM using SSH or RDP, the native client of your choice, and the local machine port you specified in Step 2.

0 commit comments

Comments
 (0)