Skip to content

Commit 499c0ad

Browse files
Article is incorrect (#11625)
This command cannot be used post VM creation.
1 parent 9cc0eb7 commit 499c0ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Compute/Compute/help/Add-AzVMSshPublicKey.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ schema: 2.0.0
99
# Add-AzVMSshPublicKey
1010

1111
## SYNOPSIS
12-
Adds the public keys for SSH for a virtual machine.
12+
Adds the public keys for SSH for a virtual machine, when only creating the VM.
1313

1414
## SYNTAX
1515

@@ -19,7 +19,7 @@ Add-AzVMSshPublicKey [-VM] <PSVirtualMachine> [[-KeyData] <String>] [[-Path] <St
1919
```
2020

2121
## DESCRIPTION
22-
The **Add-AzVMSshPublicKey** cmdlet adds the public keys that you can use to connect to a Linux virtual machine over Secure Shell (SSH).
22+
The **Add-AzVMSshPublicKey** cmdlet adds the public keys that you can use to connect to a Linux virtual machine over Secure Shell (SSH). This cannot be used after VM creation, if you try to use this after VM creation without Update-AzVM, there will be no error, if you use the command with Update-AzVM, the command will error.
2323

2424
## EXAMPLES
2525

0 commit comments

Comments
 (0)