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: articles/virtual-machines/trusted-launch-portal.md
+214-9Lines changed: 214 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,9 +157,23 @@ You can deploy trusted launch VMs using a quickstart template:
157
157
158
158
---
159
159
160
-
## Deploy a trusted launch VM from an Azure Compute Gallery image
160
+
## Deploy a Trusted launch VM from an Azure Compute Gallery image
161
161
162
-
### [Portal](#tab/portal2)
162
+
[Azure trusted launch virtual machines](trusted-launch.md) supports the creation and sharing of custom images using Azure Compute Gallery. There are two types of images that you can create, based on the security types of the image:
163
+
164
+
-[Trusted launch VM (`TrustedLaunch`) images](#trusted-launch-vm-images) are images where the source usually has [VM Guest state information](trusted-launch.md#what-is-vm-guest-state-vmgs) and can be used to create only Azure Trusted launch VMs.
165
+
-[Trusted launch VM Supported (`TrustedLaunchSupported`) images](#trusted-launch-vm-supported-images) are images where the source doesn't have VM Guest state information and can be used to create either Azure Gen2 VMs or Azure Trusted launch VMs.
166
+
167
+
### Trusted launch VM Images
168
+
169
+
For the following image sources, the security type on the image definition should be set to `TrustedLaunch` as the image source already has [VM Guest state information](trusted-launch.md#what-is-vm-guest-state-vmgs):
170
+
- Trusted launch VM capture
171
+
- Managed OS disk
172
+
- Managed OS disk snapshot
173
+
174
+
The resulting image version can be used only to create Azure Trusted launch VMs.
175
+
176
+
#### [Portal](#tab/portal2)
163
177
164
178
1. Sign in to the Azure [portal](https://portal.azure.com).
165
179
2. To create an Azure Compute Gallery Image from a VM, open an existing Trusted launch VM and select **Capture**.
@@ -177,7 +191,8 @@ You can deploy trusted launch VMs using a quickstart template:
177
191
14. The image and the security type are already populated based on the selected image version. The **Secure Boot** and **vTPM** checkboxes are enabled by default.
178
192
15. Fill in the **Administrator account** information and then **Inbound port rules**.
179
193
16. At the bottom of the page, select **Review + Create**
180
-
17. On the **Create a virtual machine** page, you can see the details about the VM you are about to deploy. Once validation shows as passed, select **Create**.
194
+
1. On the validation page, review the details of the VM.
195
+
1. After the validation succeeds, select **Create** to finish creating the VM.
181
196
182
197
In case you want to use either a managed disk or a managed disk snapshot as a source of the image version (instead of a trusted launch VM), then use the following steps
183
198
@@ -193,10 +208,10 @@ In case you want to use either a managed disk or a managed disk snapshot as a so
193
208
10. The **Encryption** tab can also be used to provide SSE encryption related information, if required.
194
209
11. Select **Create** in the **Review + create** tab to create the image
195
210
12. Once the image version is successfully created, select the **+ Create VM** to land on the Create a virtual machine page.
196
-
13. Please follow steps 12 to 17 as mentioned earlier to create a trusted launch VM using this image version
211
+
13. Follow steps 12 to 18 as mentioned earlier to create a trusted launch VM using this image version
197
212
198
213
199
-
### [CLI](#tab/cli2)
214
+
####[CLI](#tab/cli2)
200
215
201
216
Make sure you are running the latest version of Azure CLI
202
217
@@ -228,21 +243,22 @@ az sig image-version create --resource-group MyResourceGroup \
228
243
229
244
In case a managed disk or a managed disk snapshot needs to be used as the image source for the image version, replace the --managed-image in the above command with --os-snapshot and provide the disk or the snapshot resource name
230
245
231
-
Create a Trusted Launch VM from the above image version
246
+
Create a Trusted launch VM from the above image version
For the following image sources, the security type on the image definition should be set to `TrustedLaunchsupported` as the image source does not have VM Guest state information:
361
+
- Gen2 OS Disk VHD
362
+
- Gen2 Managed Image
363
+
- Gen2 Gallery Image Version
364
+
365
+
The resulting image version can be used to create either Azure Gen2 VMs or Trusted launch VMs.
366
+
367
+
These images can be shared with specific subscriptions or tenants through [Azure Compute Gallery - Direct Shared Gallery](../virtual-machines/azure-compute-gallery.md#shared-directly-to-a-tenant-or-subscription) and with all Azure users using [Azure Compute Gallery - Community Gallery](../virtual-machines/azure-compute-gallery.md#community-gallery)
368
+
369
+
> [!NOTE]
370
+
> The OS disk VHD, Managed Image or Gallery Image Version should be created from a [Gen2 image that is compatible with Trusted launch VMs](trusted-launch.md#limitations).
371
+
372
+
#### [Portal](#tab/portal3)
373
+
374
+
1. Sign in to the [Azure portal](https://portal.azure.com).
375
+
1. Search for and select **VM image versions** in the search bar
376
+
1. On the **VM image versions** page, select **Create**.
377
+
1. On the **Create VM image version** page, on the **Basics** tab:
378
+
1. Select the Azure subscription.
379
+
1. Select an existing resource group or create a new resource group.
380
+
1. Select the Azure region.
381
+
1. Enter an image version number.
382
+
1. For **Source**, select either **Storage Blobs (VHD)** or **Managed Image** or another **VM Image Version**
383
+
1. If you selected **Storage Blobs (VHD)**, enter an OS disk VHD (without the VM Guest state). Make sure to use a Gen 2 VHD.
384
+
1. If you selected **Managed Image**, select an existing managed image of a Gen 2 VM.
385
+
1. If you selected **VM Image Version**, select an existing Gallery Image Version of a Gen2 VM.
386
+
1. For **Target Azure compute gallery**, select or create a gallery to share the image.
387
+
1. For **Operating system state**, select either **Generalized** or **Specialized** depending on your use case. If you're using a managed image as the source, always select **Generalized**. If you're using a storage blob (VHD) and want to select **Generalized**, follow the steps to [generalize a Linux VHD](../virtual-machines/linux/create-upload-generic.md) or [generalize a Windows VHD](../virtual-machines/windows/upload-generalized-managed.md) before you continue. If you're using an existing VM Image Version, select either **Generalized** or **Specialized** based on what is used in the source VM image definition.
388
+
1. For **Target VM Image Definition**, select **Create new**.
389
+
1. In the **Create a VM image definition** pane, enter a name for the definition. Make sure the security type is set to **Trustedlaunch Supported**. Enter publisher, offer, and SKU information. Then, select **Ok**.
390
+
1. On the **Replication** tab, enter the replica count and target regions for image replication, if required.
391
+
1. On the **Encryption** tab, enter SSE encryption-related information, if required.
392
+
1. Select **Review + Create**.
393
+
1. After the configuration is successfully validated, select **Create** to finish creating the image.
394
+
1. After the image version is created, select **Create VM**.
395
+
12. In the Create a virtual machine page, under **Resource group**, select **Create new** and type a name for your resource group or select an existing resource group from the dropdown.
396
+
13. Under **Instance details**, type a name for the virtual machine name and choose a region that supports [trusted launch](trusted-launch.md#limitations).
397
+
14. Select **Trusted launch virtual machines** as the security type. The **Secure Boot** and **vTPM** checkboxes are enabled by default.
398
+
15. Fill in the **Administrator account** information and then **Inbound port rules**.
399
+
1. On the validation page, review the details of the VM.
400
+
1. After the validation succeeds, select **Create** to finish creating the VM.
401
+
402
+
403
+
#### [CLI](#tab/cli3)
404
+
405
+
Make sure you are running the latest version of Azure CLI
406
+
407
+
Sign in to Azure using `az login`.
408
+
409
+
```azurecli-interactive
410
+
az login
411
+
```
412
+
413
+
Create an image definition with `TrustedLaunchSupported` security type
414
+
415
+
```azurecli-interactive
416
+
az sig image-definition create --resource-group MyResourceGroup --location eastus \
Use an OS disk VHD to create an image version. Ensure that the Linux VHD was generalized before uploading to an Azure storage account blob using steps outlined [here](../virtual-machines/linux/create-upload-generic.md)
425
+
426
+
```azurecli-interactive
427
+
az sig image-version create --resource-group MyResourceGroup \
Create a Trusted launch VM from the above image version
275
479
276
480
```azurepowershell-interactive
277
481
$rgName = "MyResourceGroup"
278
482
$galleryName = "MyGallery"
279
483
$galleryImageDefinitionName = "MyImageDef"
280
484
$location = "eastus"
281
485
$vmName = "myVMfromImage"
282
-
$vmSize = "Standard_D2s_v3"
486
+
$vmSize = "Standard_D2s_v5"
283
487
$imageDefinition = Get-AzGalleryImageDefinition `
284
488
-GalleryName $galleryName `
285
489
-ResourceGroupName $rgName `
@@ -338,6 +542,7 @@ New-AzVM `
338
542
-VM $vm
339
543
```
340
544
---
545
+
341
546
## Verify or update your settings
342
547
343
548
For VMs created with trusted launch enabled, you can view the trusted launch configuration by visiting the **Overview** page for the VM in the portal. The **Properties** tab will show the status of Trusted Launch features:
0 commit comments