Skip to content

Commit 5346307

Browse files
authored
Merge pull request #281750 from AjKundnani/main
Updated content per requirement
2 parents 45d7820 + 9d9cff2 commit 5346307

File tree

1 file changed

+48
-50
lines changed

1 file changed

+48
-50
lines changed

articles/virtual-machines/trusted-launch-existing-vm.md

Lines changed: 48 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Enable Trusted Launch on existing VMs
3-
description: Learn how to enable Trusted Launch on existing Azure virtual machines (VMs).
2+
title: Enable Trusted launch on existing VMs
3+
description: Learn how to enable Trusted launch on existing Azure virtual machines (VMs).
44
author: AjKundnani
55
ms.author: ajkundna
66
ms.reviewer: cynthn
@@ -11,42 +11,43 @@ ms.date: 08/13/2023
1111
ms.custom: template-how-to, devx-track-azurepowershell
1212
---
1313

14-
# Enable Trusted Launch on existing Azure VMs
14+
# Enable Trusted launch on existing Azure VMs
1515

1616
**Applies to:** :heavy_check_mark: Linux VM :heavy_check_mark: Windows VM :heavy_check_mark: Generation 2 VM
1717

18-
Azure Virtual Machines supports enabling Azure Trusted Launch on existing [Azure Generation 2](generation-2.md) virtual machines (VMs) by upgrading to the [Trusted Launch](trusted-launch.md) security type.
18+
Azure Virtual Machines supports enabling Azure Trusted launch on existing [Azure Generation 2](generation-2.md) virtual machines (VMs) by upgrading to the [Trusted launch](trusted-launch.md) security type.
1919

20-
[Trusted Launch](trusted-launch.md) is a way to enable foundational compute security on [Azure Generation 2 VMs](generation-2.md) VMs and protects against advanced and persistent attack techniques like boot kits and rootkits. It does so by combining infrastructure technologies like Secure Boot, virtual Trusted Platform Module (vTPM), and boot integrity monitoring on your VM.
20+
[Trusted launch](trusted-launch.md) is a way to enable foundational compute security on [Azure Generation 2 VMs](generation-2.md) VMs and protects against advanced and persistent attack techniques like boot kits and rootkits. It does so by combining infrastructure technologies like Secure Boot, virtual Trusted Platform Module (vTPM), and boot integrity monitoring on your VM.
2121

2222
> [!IMPORTANT]
23-
> Support for *enabling Trusted Launch on existing Azure Generation 1 VMs* is currently in private preview. You can gain access to preview by using the [registration form](https://aka.ms/Gen1ToTLUpgrade).
23+
> Support for *enabling Trusted launch on existing Azure Generation 1 VMs* is currently in private preview. You can gain access to preview by using the [registration form](https://aka.ms/Gen1ToTLUpgrade).
2424
2525
## Prerequisites
2626

2727
- Azure Generation 2 VM is configured with:
28-
- [Trusted Launch supported size family](trusted-launch.md#virtual-machines-sizes).
29-
- [Trusted Launch supported operating system (OS) image](trusted-launch.md#operating-systems-supported). For custom OS images or disks, the base image should be *Trusted Launch capable*.
30-
- Azure Generation 2 VM isn't using [features currently not supported with Trusted Launch](trusted-launch.md#unsupported-features).
31-
- Azure Generation 2 VMs should be *stopped and deallocated* before you enable the Trusted Launch security type.
32-
- Azure Backup, if enabled, for VMs should be configured with the [Enhanced Backup policy](../backup/backup-azure-vms-enhanced-policy.md). The Trusted Launch security type can't be enabled for Generation 2 VMs configured with *Standard policy* backup protection.
28+
- [Trusted launch supported size family](trusted-launch.md#virtual-machines-sizes).
29+
- [Trusted launch supported operating system (OS) image](trusted-launch.md#operating-systems-supported). For custom OS images or disks, the base image should be *Trusted launch capable*.
30+
- Azure Generation 2 VM isn't using [features currently not supported with Trusted launch](trusted-launch.md#unsupported-features).
31+
- Azure Generation 2 VMs should be *stopped and deallocated* before you enable the Trusted launch security type.
32+
- Azure Backup, if enabled, for VMs should be configured with the [Enhanced Backup policy](../backup/backup-azure-vms-enhanced-policy.md). The Trusted launch security type can't be enabled for Generation 2 VMs configured with *Standard policy* backup protection.
3333
- Existing Azure VM backup can be migrated from the *Standard* to the *Enhanced* policy. Follow the steps in [Migrate Azure VM backups from Standard to Enhanced policy (preview)](../backup/backup-azure-vm-migrate-enhanced-policy.md).
3434

3535
## Best practices
36-
- Enable Trusted Launch on a test Generation 2 VM and determine if any changes are required to meet the prerequisites before you enable Trusted Launch on Generation 2 VMs associated with production workloads.
37-
- [Create restore points](create-restore-points.md) for Azure Generation 2 VMs associated with production workloads before you enable the Trusted Launch security type. You can use the restore points to re-create the disks and Generation 2 VM with the previous well-known state.
3836

39-
## Enable Trusted Launch on an existing VM
37+
- Enable Trusted launch on a test Generation 2 VM and determine if any changes are required to meet the prerequisites before you enable Trusted launch on Generation 2 VMs associated with production workloads.
38+
- [Create restore points](create-restore-points.md) for Azure Generation 2 VMs associated with production workloads before you enable the Trusted launch security type. You can use the restore points to re-create the disks and Generation 2 VM with the previous well-known state.
39+
40+
## Enable Trusted launch on an existing VM
4041

4142
> [!NOTE]
4243
>
43-
> - After you enable Trusted Launch, currently VMs can't be rolled back to the Standard security type (non-Trusted Launch configuration).
44+
> - After you enable Trusted launch, currently VMs can't be rolled back to the Standard security type (non-Trusted launch configuration).
4445
> - vTPM is enabled by default.
4546
> - We recommend that you enable Secure Boot, if you aren't using custom unsigned kernel or drivers. It's not enabled by default. Secure Boot preserves boot integrity and enables foundational security for VMs.
4647
4748
### [Portal](#tab/portal)
4849

49-
Enable Trusted Launch on an existing Azure Generation 2 VM by using the Azure portal.
50+
Enable Trusted launch on an existing Azure Generation 2 VM by using the Azure portal.
5051

5152
1. Sign in to the [Azure portal](https://portal.azure.com).
5253
1. Confirm that the VM generation is **V2** and select **Stop** for the VM.
@@ -65,19 +66,19 @@ Enable Trusted Launch on an existing Azure Generation 2 VM by using the Azure po
6566

6667
> [!NOTE]
6768
>
68-
> - Generation 2 VMs created by using [Azure Compute Gallery (ACG)](azure-compute-gallery.md), [Managed image](capture-image-resource.yml), or an [OS disk](./scripts/create-vm-from-managed-os-disks.md) can't be upgraded to Trusted Launch by using the portal. Ensure that the [OS version is supported for Trusted Launch](trusted-launch.md#operating-systems-supported). Use PowerShell, the Azure CLI, or an Azure Resource Manager template (ARM template) to run the upgrade.
69+
> - Generation 2 VMs created by using [Azure Compute Gallery (ACG)](azure-compute-gallery.md), [Managed image](capture-image-resource.yml), or an [OS disk](./scripts/create-vm-from-managed-os-disks.md) can't be upgraded to Trusted launch by using the portal. Ensure that the [OS version is supported for Trusted launch](trusted-launch.md#operating-systems-supported). Use PowerShell, the Azure CLI, or an Azure Resource Manager template (ARM template) to run the upgrade.
6970
7071
:::image type="content" source="./media/trusted-launch/05-generation-2-to-trusted-launch-select-uefi-settings.png" alt-text="Screenshot that shows the Secure Boot and vTPM settings.":::
7172

7273
1. After the update successfully finishes, close the **Configuration** page. On the **Overview** page in the VM properties, confirm the **Security type** settings.
7374

74-
:::image type="content" source="./media/trusted-launch/06-generation-2-to-trusted-launch-validate-uefi.png" alt-text="Screenshot that shows the Trusted Launch upgraded VM.":::
75+
:::image type="content" source="./media/trusted-launch/06-generation-2-to-trusted-launch-validate-uefi.png" alt-text="Screenshot that shows the Trusted launch upgraded VM.":::
7576

76-
1. Start the upgraded Trusted Launch VM. Verify that you can sign in to the VM by using either the Remote Desktop Protocol (RDP) for Windows VMs or the Secure Shell Protocol (SSH) for Linux VMs.
77+
1. Start the upgraded Trusted launch VM. Verify that you can sign in to the VM by using either the Remote Desktop Protocol (RDP) for Windows VMs or the Secure Shell Protocol (SSH) for Linux VMs.
7778

7879
### [CLI](#tab/cli)
7980

80-
Follow the steps to enable Trusted Launch on an existing Azure Generation 2 VM by using the Azure CLI.
81+
Follow the steps to enable Trusted launch on an existing Azure Generation 2 VM by using the Azure CLI.
8182

8283
Make sure that you install the latest [Azure CLI](/cli/azure/install-az-cli2) and are signed in to an Azure account with [az login](/cli/azure/reference-index).
8384

@@ -89,16 +90,16 @@ Make sure that you install the latest [Azure CLI](/cli/azure/install-az-cli2) an
8990
az account set --subscription 00000000-0000-0000-0000-000000000000
9091
```
9192
92-
1. Deallocate the VM.
93+
2. Deallocate the VM.
9394
94-
1. Enable Trusted Launch by setting `--security-type` to `TrustedLaunch`.
95+
3. Enable Trusted launch by setting `--security-type` to `TrustedLaunch`.
9596
9697
```azurecli-interactive
9798
az vm deallocate \
9899
--resource-group myResourceGroup --name myVm
99100
```
100101
101-
1. Validate the output of the previous command. Ensure that the `securityProfile` configuration is returned with the command output.
102+
4. Validate the output of the previous command. Ensure that the `securityProfile` configuration is returned with the command output.
102103
103104
```azurecli-interactive
104105
az vm update \
@@ -107,7 +108,7 @@ Make sure that you install the latest [Azure CLI](/cli/azure/install-az-cli2) an
107108
--enable-secure-boot true --enable-vtpm true
108109
```
109110
110-
1. Validate the output of the previous command. Ensure that the `securityProfile` configuration is returned with the command output.
111+
5. Validate the output of the previous command. Ensure that the `securityProfile` configuration is returned with the command output.
111112
112113
```json
113114
{
@@ -121,18 +122,18 @@ Make sure that you install the latest [Azure CLI](/cli/azure/install-az-cli2) an
121122
}
122123
```
123124
124-
1. Start the VM.
125+
6. Start the VM.
125126
126127
```azurecli-interactive
127128
az vm start \
128129
--resource-group myResourceGroup --name myVm
129130
```
130131
131-
1. Start the upgraded Trusted Launch VM. Verify that you can sign in to the VM by using either RDP (for Windows VMs) or SSH (for Linux VMs).
132+
7. Start the upgraded Trusted launch VM. Verify that you can sign in to the VM by using either RDP (for Windows VMs) or SSH (for Linux VMs).
132133
133134
### [PowerShell](#tab/powershell)
134135
135-
Follow the steps to enable Trusted Launch on an existing Azure Generation 2 VM by using Azure PowerShell.
136+
Follow the steps to enable Trusted launch on an existing Azure Generation 2 VM by using Azure PowerShell.
136137
137138
Make sure that you install the latest [Azure PowerShell](/powershell/azure/install-azps-windows) and are signed in to an Azure account with [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount).
138139
@@ -142,21 +143,21 @@ Make sure that you install the latest [Azure PowerShell](/powershell/azure/insta
142143
Connect-AzAccount -SubscriptionId 00000000-0000-0000-0000-000000000000
143144
```
144145
145-
1. Deallocate the VM.
146+
2. Deallocate the VM.
146147
147148
```azurepowershell-interactive
148149
Stop-AzVM -ResourceGroupName myResourceGroup -Name myVm
149150
```
150151
151-
1. Enable Trusted Launch by setting `-SecurityType` to `TrustedLaunch`.
152+
3. Enable Trusted launch by setting `-SecurityType` to `TrustedLaunch`.
152153
153154
```azurepowershell-interactive
154155
Get-AzVM -ResourceGroupName myResourceGroup -VMName myVm `
155156
| Update-AzVM -SecurityType TrustedLaunch `
156157
-EnableSecureBoot $true -EnableVtpm $true
157158
```
158159
159-
1. Validate `securityProfile` in the updated VM configuration.
160+
4. Validate `securityProfile` in the updated VM configuration.
160161
161162
```azurepowershell-interactive
162163
# Following command output should be `TrustedLaunch`
@@ -172,20 +173,17 @@ Make sure that you install the latest [Azure PowerShell](/powershell/azure/insta
172173
173174
```
174175
175-
1. Start the VM.
176+
5. Start the VM.
176177
177178
```azurepowershell-interactive
178179
Start-AzVM -ResourceGroupName myResourceGroup -Name myVm
179180
```
180181
181-
1. Start the upgraded Trusted Launch VM. Verify that you can sign in to the VM by using either RDP (for Windows VMs) or SSH (for Linux VMs).
182-
183-
>[!NOTE]
184-
> Make sure to change the `-SecurityType` to `TrustedLaunch`, for all deployment scripts this will ensure when virtual machines are provisioned, they will be automatically Trusted Launch.
182+
6. Start the upgraded Trusted launch VM. Verify that you can sign in to the VM by using either RDP (for Windows VMs) or SSH (for Linux VMs).
185183
186184
### [Template](#tab/template)
187185
188-
Follow the steps to enable Trusted Launch on an existing Azure Generation 2 VM by using an ARM template.
186+
Follow the steps to enable Trusted launch on an existing Azure Generation 2 VM by using an ARM template.
189187
190188
[!INCLUDE [About Azure Resource Manager](~/reusable-content/ce-skilling/azure/includes/resource-manager-quickstart-introduction.md)]
191189
@@ -234,7 +232,7 @@ Follow the steps to enable Trusted Launch on an existing Azure Generation 2 VM b
234232
}
235233
```
236234
237-
1. Edit the `parameters` JSON file with VMs to be updated with the `TrustedLaunch` security type.
235+
2. Edit the `parameters` JSON file with VMs to be updated with the `TrustedLaunch` security type.
238236
239237
```json
240238
{
@@ -267,15 +265,15 @@ Follow the steps to enable Trusted Launch on an existing Azure Generation 2 VM b
267265
-|-|-
268266
vmName | Name of Azure Generation 2 VM. | `myVm`
269267
location | Location of Azure Generation 2 VM. | `westus3`
270-
secureBootEnabled | Enable Secure Boot with the Trusted Launch security type. | `true`
268+
secureBootEnabled | Enable Secure Boot with the Trusted launch security type. | `true`
271269
272-
1. Deallocate all Azure Generation 2 VMs to be updated.
270+
3. Deallocate all Azure Generation 2 VMs to be updated.
273271
274272
```azurepowershell-interactive
275273
Stop-AzVM -ResourceGroupName myResourceGroup -Name myVm01
276274
```
277275
278-
1. Run the ARM template deployment.
276+
4. Run the ARM template deployment.
279277
280278
```azurepowershell-interactive
281279
$resourceGroupName = "myResourceGroup"
@@ -287,28 +285,28 @@ Follow the steps to enable Trusted Launch on an existing Azure Generation 2 VM b
287285
-TemplateFile $templateFile -TemplateParameterFile $parameterFile
288286
```
289287
290-
:::image type="content" source="./media/trusted-launch/generation-2-trusted-launch-settings.png" alt-text="Screenshot that shows the Trusted Launch properties of the VM.":::
288+
:::image type="content" source="./media/trusted-launch/generation-2-trusted-launch-settings.png" alt-text="Screenshot that shows the Trusted launch properties of the VM.":::
291289
292-
:::image type="content" source="./media/trusted-launch/generation-2-trusted-launch-settings.png" alt-text="Screenshot that shows the Trusted Launch properties of the VM.":::
290+
:::image type="content" source="./media/trusted-launch/generation-2-trusted-launch-settings.png" alt-text="Screenshot that shows the Trusted launch properties of the VM.":::
293291
294-
1. Start the upgraded Trusted Launch VM. Verify that you can sign in to the VM by using either RDP (for Windows VMs) or SSH (for Linux VMs).
292+
5. Start the upgraded Trusted launch VM. Verify that you can sign in to the VM by using either RDP (for Windows VMs) or SSH (for Linux VMs).
295293
296294
---
297295
298296
## Azure Advisor Recommendation
299297
300-
Azure Advisor populates an **Enable Trusted Launch Compatible Images and VM Sizes for Existing Generation 2 VMs** operational excellence recommendation for existing Generation 2 VMs to adopt [Trusted Launch](trusted-launch.md), a higher security posture for Azure VMs at no additional cost to you. Ensure Generation 2 VM has all prerequisites to migrate to Trusted Launch, follow all the best practices including validation of OS image, VM Size, and creating restore points. For the Advisor recommendation to be considered complete, follow the steps outlined in the [**Enable Trusted Launch on an existing VM**](trusted-launch-existing-vm.md) to upgrade the virtual machines security type and enable Trusted Launch.
298+
Azure Advisor populates an **Enable Trusted launch foundational excellence, and modern security for Existing Generation 2 VM(s)** operational excellence recommendation for existing Generation 2 VMs to adopt [Trusted launch](trusted-launch.md), a higher security posture for Azure VMs at no additional cost to you. Ensure Generation 2 VM has all prerequisites to migrate to Trusted launch, follow all the best practices including validation of OS image, VM Size, and creating restore points. For the Advisor recommendation to be considered complete, follow the steps outlined in the [**Enable Trusted launch on an existing VM**](trusted-launch-existing-vm.md#enable-trusted-launch-on-an-existing-vm) to upgrade the virtual machines security type and enable Trusted launch.
301299
302-
### What if there is Generation 2 VMs, that doesn't fit the prerequistes for Trusted Launch ?
300+
**What if there is Generation 2 VMs, that doesn't fit the prerequisites for Trusted launch?**
303301
304-
For a Generation 2 VM, that has not met the prerequistes to upgrade to Trusted Launch, look how to fulfill the prerequistes.
305-
1. If using an OS image not supported, upgrade to Trusted Launch|Gen2 image, most Windows OS support Trusted Launch except Windows 2012 Datacenter offerings. In the case of Linux OS, upgrade to the newest SKU offered by the image distribution.
306-
2. If using a virtual machine size not supported, please look for an [equivalant Trusted Launch supported size](/sizes/resize-vm.md) that supports Trusted Launch.
302+
For a Generation 2 VM, that has not met the [prerequisites](#prerequisites) to upgrade to Trusted launch, look how to fulfill the prerequisites. For example, If using a virtual machine size not supported, please look for an [equivalent Trusted launch supported size](trusted-launch.md#virtual-machines-sizes) that supports Trusted launch.
307303
308304
> [!NOTE]
309-
> For M-series and ARM64 virtual machine users, please dismiss the recommendation for all resources.
305+
>
306+
> Please dismiss the recommendation if Gen2 virtual machine is configured with VM size families which are currently not supported with Trusted launch like MSv2-series.
310307
311308
## Related content
312309
310+
- Enable Trusted launch for new virtual machine deployments. For more details, see [Deploy Trusted launch virtual machines](trusted-launch-portal.md)
313311
- After the upgrades, we recommend that you enable [boot integrity monitoring](trusted-launch.md#microsoft-defender-for-cloud-integration) to monitor the health of the VM by using Microsoft Defender for Cloud.
314-
- Learn more about [Trusted Launch](trusted-launch.md) and review [frequently asked questions](trusted-launch-faq.md).
312+
- Learn more about [Trusted launch](trusted-launch.md) and review [frequently asked questions](trusted-launch-faq.md).

0 commit comments

Comments
 (0)