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
+58-62Lines changed: 58 additions & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,12 +158,12 @@ You can deploy trusted launch VMs using a quickstart template:
158
158
159
159
[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:
160
160
161
-
-[Trusted Launch VM (`Trustedlaunch`) images](#trusted-launch-vm-images) are images where the source already has [VM Guest state information](trustedlaunch#what-is-vm-guest-state-vmgs).
162
-
-[Trusted launch VM supported (`Trustedlaunchsupported`) images](#trusted-launch-vm-supported-images) are images where the source doesn't have VM Guest state information.
161
+
-[Trusted launch VM (`TrustedLaunch`) images](#trusted-launch-vm-images) are images where the source already has [VM Guest state information](trusted-launch.md#what-is-vm-guest-state-vmgs).
162
+
-[Trusted launch VM Supported (`TrustedLaunchSupported`) images](#trusted-launch-vm-supported-images) are images where the source doesn't have VM Guest state information.
163
163
164
-
### Trusted Launch VM Images
164
+
### Trusted launch VM Images
165
165
166
-
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](trustedlaunch#what-is-vm-guest-state-vmgs):
166
+
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):
167
167
- Trusted launch VM capture
168
168
- Managed OS disk
169
169
- Managed OS disk snapshot
@@ -188,7 +188,8 @@ The resulting image version can be used only to create Azure Trusted launch VMs.
188
188
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.
189
189
15. Fill in the **Administrator account** information and then **Inbound port rules**.
190
190
16. At the bottom of the page, select **Review + Create**
191
-
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**.
191
+
1. On the validation page, review the details of the VM.
192
+
1. After the validation succeeds, select **Create** to finish creating the VM.
192
193
193
194
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
194
195
@@ -204,10 +205,10 @@ In case you want to use either a managed disk or a managed disk snapshot as a so
204
205
10. The **Encryption** tab can also be used to provide SSE encryption related information, if required.
205
206
11. Select **Create** in the **Review + create** tab to create the image
206
207
12. Once the image version is successfully created, select the **+ Create VM** to land on the Create a virtual machine page.
207
-
13. Please follow steps 12 to 17 as mentioned earlier to create a trusted launch VM using this image version
208
+
13. Follow steps 12 to 18 as mentioned earlier to create a trusted launch VM using this image version
208
209
209
210
210
-
### [CLI](#tab/cli2)
211
+
####[CLI](#tab/cli2)
211
212
212
213
Make sure you are running the latest version of Azure CLI
213
214
@@ -239,21 +240,22 @@ az sig image-version create --resource-group MyResourceGroup \
239
240
240
241
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
241
242
242
-
Create a Trusted Launch VM from the above image version
243
+
Create a Trusted launch VM from the above image version
Create a Trusted Launch VM from the above image version
287
+
Create a Trusted launch VM from the above image version
286
288
287
289
```azurepowershell-interactive
288
290
$rgName = "MyResourceGroup"
289
291
$galleryName = "MyGallery"
290
292
$galleryImageDefinitionName = "MyImageDef"
291
293
$location = "eastus"
292
294
$vmName = "myVMfromImage"
293
-
$vmSize = "Standard_D2s_v3"
295
+
$vmSize = "Standard_D2s_v5"
294
296
$imageDefinition = Get-AzGalleryImageDefinition `
295
297
-GalleryName $galleryName `
296
298
-ResourceGroupName $rgName `
@@ -350,58 +352,52 @@ New-AzVM `
350
352
```
351
353
---
352
354
353
-
### Trusted Launch VM Supported Images
355
+
### Trusted launch VM Supported Images
354
356
355
-
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:
357
+
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:
356
358
- Gen2 OS Disk VHD
357
359
- Gen2 Managed Image
358
360
- Gen2 Gallery Image Version
359
361
360
362
The resulting image version can be used to create either Azure Gen2 VMs or Trusted launch VMs.
361
363
362
-
These images can be shared to everyone through [Azure Compute Gallery - Community Gallery](https://learn.microsoft.com/azure/virtual-machines/azure-compute-gallery#community-gallery) and to specific subscriptions or tenants through [Azure Compute Gallery - Direct Shared Gallery](https://learn.microsoft.com/azure/virtual-machines/azure-compute-gallery#shared-directly-to-a-tenant-or-subscription)
364
+
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)
363
365
364
366
> [!NOTE]
365
-
> The OS disk VHD, Managed Image or Gallery Image Version should be created from an image that is compatible with Trusted launch VMs.
366
-
367
-
#### [Portal](#tab/portal2)
368
-
369
-
1. Sign in to the Azure [portal](https://portal.azure.com).
370
-
2. To create an Azure Compute Gallery Image from a VM, open an existing Trusted launch VM and select **Capture**.
371
-
3. In the Create an Image page that follows, allow the image to be shared to the gallery as a VM image version. Creation of Managed Images is not supported for Trusted Launch VMs.
372
-
4. Create a new target Azure Compute Gallery or select an existing gallery.
373
-
5. Select the **Operating system state** as either **Generalized** or **Specialized**. If you want to create a generalized image, ensure that you [generalize the VM to remove machine specific information](generalize.md) before selecting this option. If Bitlocker based encryption is enabled on your Trusted launch Windows VM, you may not be able to generalize the same.
374
-
6. Create a new image definition by providing a name, publisher, offer and SKU details. The **Security Type** of the image definition should already be set to **Trusted launch**.
375
-
7. Provide a version number for the image version.
376
-
8. Modify replication options if required.
377
-
9. At the bottom of the **Create an Image** page, select **Review + Create** and when validation shows as passed, select **Create**.
378
-
10. Once the image version is created, go the image version directly. Alternatively, you can navigate to the required image version through the image definition.
379
-
11. On the **VM image version** page, select the **+ Create VM** to land on the Create a virtual machine page.
367
+
> The OS disk VHD, Managed Image or Gallery Image Version should be created from a Gen2 image source that is compatible with Trusted launch VMs.
368
+
369
+
#### [Portal](#tab/portal3)
370
+
371
+
1. Sign in to the [Azure portal](https://portal.azure.com).
372
+
1. Search for and select **VM image versions** in the search bar
373
+
1. On the **VM image versions** page, select **Create**.
374
+
1. On the **Create VM image version** page, on the **Basics** tab:
375
+
1. Select the Azure subscription.
376
+
1. Select an existing resource group or create a new resource group.
377
+
1. Select the Azure region.
378
+
1. Enter an image version number.
379
+
1. For **Source**, select either **Storage Blobs (VHD)** or **Managed Image** or another **VM Image Version**
380
+
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.
381
+
1. If you selected **Managed Image**, select an existing managed image of a Gen 2 VM.
382
+
1. If you selected **VM Image Version**, select an existing Gallery Image Version of a Gen2 VM.
383
+
1. For **Target Azure compute gallery**, select or create a gallery to share the image.
384
+
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.
385
+
1. For **Target VM Image Definition**, select **Create new**.
386
+
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**.
387
+
1. On the **Replication** tab, enter the replica count and target regions for image replication, if required.
388
+
1. On the **Encryption** tab, enter SSE encryption-related information, if required.
389
+
1. Select **Review + Create**.
390
+
1. After the configuration is successfully validated, select **Create** to finish creating the image.
391
+
1. After the image version is created, select **Create VM**.
380
392
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.
381
393
13. Under **Instance details**, type a name for the virtual machine name and choose a region that supports [trusted launch](trusted-launch.md#limitations).
382
-
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.
394
+
14.Select **Trusted launch virtual machines** as the security type. The **Secure Boot** and **vTPM** checkboxes are enabled by default.
383
395
15. Fill in the **Administrator account** information and then **Inbound port rules**.
384
-
16. At the bottom of the page, select **Review + Create**
385
-
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**.
386
-
387
-
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
388
-
389
-
1. Sign in to the [portal](https://portal.azure.com)
390
-
2. Search for **VM Image Versions** and select **Create**
391
-
3. Provide the subscription, resource group, region and image version number
392
-
4. Select the source as **Disks and/or Snapshots**
393
-
5. Select the OS disk as a managed disk or a managed disk snapshot from the dropdown list
394
-
6. Select a **Target Azure Compute Gallery** to create and share the image. If no gallery exists, create a new gallery.
395
-
7. Select the **Operating system state** as either **Generalized** or **Specialized**. If you want to create a generalized image, ensure that you generalize the disk or snapshot to remove machine specific information.
396
-
8. For the **Target VM Image Definition** select Create new. In the window that opens, select an image definition name and ensure that the **Security type** is set to **Trusted launch**. Provide the publisher, offer and SKU information and select **OK**.
397
-
9. The **Replication** tab can be used to set the replica count and target regions for image replication, if required.
398
-
10. The **Encryption** tab can also be used to provide SSE encryption related information, if required.
399
-
11. Select **Create** in the **Review + create** tab to create the image
400
-
12. Once the image version is successfully created, select the **+ Create VM** to land on the Create a virtual machine page.
401
-
13. Please follow steps 12 to 17 as mentioned earlier to create a trusted launch VM using this image version
396
+
1. On the validation page, review the details of the VM.
397
+
1. After the validation succeeds, select **Create** to finish creating the VM.
402
398
403
399
404
-
### [CLI](#tab/cli2)
400
+
####[CLI](#tab/cli3)
405
401
406
402
Make sure you are running the latest version of Azure CLI
407
403
@@ -411,43 +407,43 @@ Sign in to Azure using `az login`.
411
407
az login
412
408
```
413
409
414
-
Create an image definition with `TrustedLaunch` security type
410
+
Create an image definition with `TrustedLaunchSupported` security type
415
411
416
412
```azurecli-interactive
417
413
az sig image-definition create --resource-group MyResourceGroup --location eastus \
To create an image version, we can capture an existing Linux based Trusted launch VM. [Generalize the Trusted launch VM](generalize.md) before creating the image version.
421
+
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)
426
422
427
423
```azurecli-interactive
428
424
az sig image-version create --resource-group MyResourceGroup \
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
435
-
436
-
Create a Trusted Launch VM from the above image version
431
+
Create a Trusted launch VM from the above image version
To create an image version, we can capture an existing Windows based Trusted launch VM. [Generalize the Trusted launch VM](generalize.md) before creating the image version.
464
+
To create an image version, we can use an existing Gen2 Gallery Image Version which was generalized during creation.
0 commit comments