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
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ The steps below involve copying VM guest state protection keys from the local ke
44
44
45
45
$publicKeyPem | Out-File -FilePath .\public.pem
46
46
```
47
-
1. Make a note of the wrapping key as you'll need it later.
47
+
1. Make a note of the wrapping key as you need it later.
48
48
49
49
1. Copy the `.\public.pem` file to your Azure Local instance.
50
50
@@ -59,7 +59,7 @@ The steps below involve copying VM guest state protection keys from the local ke
59
59
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
-
Here is a sample output after running this command:
62
+
Here's a sample output after running this command:
63
63
64
64
```output
65
65
Backing up TVM Vault keys to .\<backup root folder>\20250722192116
@@ -68,7 +68,7 @@ The steps below involve copying VM guest state protection keys from the local ke
68
68
Backing up key AzureStackTvmAKRootKey to RSA folder
69
69
```
70
70
71
-
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".
71
+
1. Make note of the timestamped backup folder created under the backup root folder. You need this later during recovery. For example, backup folder named "2025-06-12-20-53-55" with the format "yyyy-MM-dd-HH-mm-ss".
72
72
73
73
### Restore keys
74
74
@@ -85,14 +85,14 @@ The steps below involve restoring VM guest state protection keys from a folder c
85
85
1. Run the following commands.
86
86
87
87
> [!NOTE]
88
-
> Make sure to create a unique name for the WrappingKeyName. Otherwise, this will cause a failure during import:
88
+
> Make sure to create a unique name for the WrappingKeyName. Otherwise, this causes a failure during import:
89
89
90
90
```powershell
91
91
Import-Module .\TvmBackupUtils.psm1 -force
92
92
93
93
Import-TvmWrappingKeyFromPem -KeyName <WrappingKeyName> -PublicKeyPath <path to public.pem> -PrivateKeyPath <path to private.pem> -KeySize 2048
94
94
```
95
-
Here is sample output:
95
+
Here's sample output:
96
96
97
97
```output
98
98
Generating import JSON for key <WrappingKeyName> at temporary location C:\Users\HCIDeploymentUser\AppData\Local\Temp\tmpD383.tmp...
@@ -112,7 +112,7 @@ The steps below involve restoring VM guest state protection keys from a folder c
112
112
```powershell
113
113
Import-TVMKeys -WrappingKeyName <WrappingKeyName> -BackupPath <path to timestamped backup folder>
114
114
```
115
-
Here is sample output:
115
+
Here's sample output:
116
116
117
117
```output
118
118
Importing TVM keys from .\tvm_keys_backup_root\20250722192116\
@@ -124,9 +124,9 @@ The steps below involve restoring VM guest state protection keys from a folder c
124
124
Importing key AzureStackTvmAKRootKey with size 4096 from RSA folder path = .\tvm_keys_backup_root\20250722192116\RSA\AzureStackTvmAKRootKey_4096.json
125
125
```
126
126
127
-
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.
127
+
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 receive an `InvalidVersion` error for that key. You can ignore this, as the key is already in the key vault.
128
128
129
-
Here is sample output showing this error:
129
+
Here's sample output showing this error:
130
130
131
131
```output
132
132
Importing TVM keys from .\tvm_keys_backup_root\20250722192116\
@@ -168,7 +168,7 @@ The steps below involve restoring VM guest state protection keys from a folder c
168
168
1. Delete both `public.pem` and `private.pem` files from the Azure Local instance.
169
169
170
170
> [!IMPORTANT]
171
-
> Remove the wrapping key from the key vault of the Azure Local instance using `Remove-MocKey`. This will help avoid collisions later.
171
+
> Remove the wrapping key from the key vault of the Azure Local instance using `Remove-MocKey`. This helps avoid collisions later.
@@ -255,7 +255,7 @@ Follow these steps to copy the VM guest state protection key. The key is copied
255
255
256
256
1. Copy the PEM file to the Azure Local system.
257
257
258
-
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:
258
+
1. Get the `VM ID` from the VM files stored on disk. There's 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:
0 commit comments