You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-local/manage/trusted-launch-vm-import-key.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,9 @@ The steps below involve copying VM guest state protection keys from the local ke
60
60
Backup-TVMKeys -WrappingKeyPath <path to public.pem> -BackupRootPath <path to backup root folder where the timestamped backup folder is stored>
61
61
```
62
62
63
-
1. Make note of the timestamped backup folder created under the backup root folder. You will need this later during recovery. For example, backup folder named "20250612205355" with the format "yyyyMMddHHmmss".
63
+
1. Make note of the timestamped backup folder created under the backup root folder. You'll need this later during recovery. For example, backup folder named "20250612205355" with the format "yyyyMMddHHmmss".
64
64
65
-
1. Any time you create a new VM on Azure Local instance, run the script and back up the keys in the key vault.
65
+
1. Anytime you create a new VM on Azure Local instance, run the script and back up the keys in the key vault.
66
66
67
67
### Restore
68
68
@@ -99,7 +99,7 @@ The steps below involve restoring VM guest state protection keys from a folder c
99
99
Import-TVMKeys -WrappingKeyName <WrappingKeyName> -BackupPath <path to timestamped backup folder>
100
100
```
101
101
102
-
If the local key vault of the Azure Local instance already has a VM guest state protection key with the same name or already has an `AzureStackTvmAKRootKey`, you will receive an `InvalidVersion` error for that key. You can ignore this, as the key is already in the key vault.
102
+
If the local key vault of the Azure Local instance already has a VM guest state protection key with the same name or already has an `AzureStackTvmAKRootKey`, you'll receive an `InvalidVersion` error for that key. You can ignore this, as the key is already in the key vault.
103
103
104
104
1. Clean up files and keys:
105
105
@@ -173,7 +173,7 @@ Follow these steps to copy the VM guest state protection key from the local key
173
173
174
174
### Restore
175
175
176
-
Follow these steps to copy the VM guest state protection key. The key is copied from the backup key vault of the Azure Local instance to the key vault of the target Azure Local system (where the VM needs to be restored):
176
+
Follow these steps to copy the VM guest state protection key. The key is copied from the backup key vault of the Azure Local instance to the key vault of the target Azure Local system where the VM needs to be restored:
177
177
178
178
1. On the source Azure Local system where the VM needs to be restored, run the following commands:
179
179
@@ -193,7 +193,7 @@ Follow these steps to copy the VM guest state protection key. The key is copied
193
193
194
194
1. Copy the PEM file to the Azure Local system.
195
195
196
-
1. Get the `VM ID` from the VM files stored on disk. There will be a VM config file (.xml) that has the `VM ID` as its name. You can also use the following command to obtain the `VM ID` if you know the VM name. Perform this step on a Hyper-V host that has the VM files:
196
+
1. Get the `VM ID` from the VM files stored on disk. There is a VM config file (.xml) that has the `VM ID` as its name. You can also use the following command to obtain the `VM ID` if you know the VM name. Perform this step on a Hyper-V host that has the VM files:
197
197
198
198
```powershell
199
199
(Get-VM -Name <VM name>).vmid
@@ -212,7 +212,7 @@ Follow these steps to copy the VM guest state protection key. The key is copied
212
212
1. Import the VM guest state protection key:
213
213
214
214
> [!NOTE]
215
-
> Restore the VM guest state key (complete the steps above) before you start the VM on the Azure Local instance where the VM needs to be restored. This ensures that the VM uses the restored VM guest state protection key. Otherwise, the VM creation fails, and a new VM guest state protection key is created by the system. If this happens by mistake (human error), delete the VM guest state protection key and then repeat the steps to restore the VM guest state protection key key.
215
+
> Restore the VM guest state key (complete the preceding steps) before you start the VM on the Azure Local instance where the VM needs to be restored. This ensures that the VM uses the restored VM guest state protection key. Otherwise, the VM creation fails, and a new VM guest state protection key is created by the system. If this happens by mistake (human error), delete the VM guest state protection key and then repeat the steps to restore the VM guest state protection key.
0 commit comments