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/generation-2.md
+44-44Lines changed: 44 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Azure support for generation 2 VMs
3
-
description: Overview of Azure support for generation 2 VMs
2
+
title: Azure support for Generation 2 VMs
3
+
description: Overview of Azure support for Generation 2 VMs
4
4
author: ju-shim
5
5
ms.service: virtual-machines
6
6
ms.subservice: sizes
@@ -9,19 +9,19 @@ ms.date: 03/04/2024
9
9
ms.author: jushiman
10
10
---
11
11
12
-
# Support for generation 2 VMs on Azure
12
+
# Support for Generation 2 VMs on Azure
13
13
14
14
**Applies to:**:heavy_check_mark: Linux VMs :heavy_check_mark: Windows VMs :heavy_check_mark: Flexible scale sets :heavy_check_mark: Uniform scale sets
15
15
16
-
Support for generation 2 virtual machines (VMs) is now available on Azure. You can't change a virtual machine's generation after you've created it, so review the considerations on this page before you choose a generation.
16
+
Support for Generation 2 virtual machines (VMs) is now available on Azure. You can't change a virtual machine's generation after you've created it, so review the considerations on this page before you choose a generation.
17
17
18
-
Generation 2 VMs support key features that aren't supported in generation 1 VMs. These features include increased memory, Intel Software Guard Extensions (Intel SGX), and virtualized persistent memory (vPMEM). Generation 2 VMs running on-premises, have some features that aren't supported in Azure yet. For more information, see the [Features and capabilities](#features-and-capabilities) section.
18
+
Generation 2 VMs support key features that aren't supported in Generation 1 VMs. These features include increased memory, Intel Software Guard Extensions (Intel SGX), and virtualized persistent memory (vPMEM). Generation 2 VMs running on-premises, have some features that aren't supported in Azure yet. For more information, see the [Features and capabilities](#features-and-capabilities) section.
19
19
20
-
Generation 2 VMs use the new UEFI-based boot architecture rather than the BIOS-based architecture used by generation 1 VMs. Compared to generation 1 VMs, generation 2 VMs might have improved boot and installation times. For an overview of generation 2 VMs and some of the differences between generation 1 and generation 2, see [Should I create a generation 1 or 2 virtual machine in Hyper-V?](/windows-server/virtualization/hyper-v/plan/should-i-create-a-generation-1-or-2-virtual-machine-in-hyper-v).
20
+
Generation 2 VMs use the new UEFI-based boot architecture rather than the BIOS-based architecture used by Generation 1 VMs. Compared to Generation 1 VMs, Generation 2 VMs might have improved boot and installation times. For an overview of Generation 2 VMs and some of the differences between Generation 1 and Generation 2, see [Should I create a Generation 1 or 2 virtual machine in Hyper-V?](/windows-server/virtualization/hyper-v/plan/should-i-create-a-generation-1-or-2-virtual-machine-in-hyper-v).
21
21
22
22
## Generation 2 VM sizes
23
23
24
-
Azure now offers generation 2 support for the following selected VM series:
24
+
Azure now offers Generation 2 support for the following selected VM series:
25
25
26
26
| VM Series | Generation 1 | Generation 2 |
27
27
|-----------|--------------|--------------|
@@ -112,9 +112,9 @@ Generation 2 VMs support the following Marketplace images:
112
112
> [!NOTE]
113
113
> Specific Virtual machine sizes like Mv2-Series, DC-series, ND A100 v4-series, NDv2-series, Msv2 and Mdsv2-series may only support a subset of these images - please look at the relevant virtual machine size documentation for complete details.
114
114
115
-
## On-premises vs. Azure generation 2 VMs
115
+
## On-premises vs. Azure Generation 2 VMs
116
116
117
-
Azure doesn't currently support some of the features that on-premises Hyper-V supports for generation 2 VMs.
117
+
Azure doesn't currently support some of the features that on-premises Hyper-V supports for Generation 2 VMs.
To create a simple Windows Generation 2 VM, see [Create a Windows virtual machine from a Resource Manager template](./windows/ps-template.md)
157
157
To create a simple Linux Generation 2 VM, see [How to create a Linux virtual machine with Azure Resource Manager templates](./linux/create-ssh-secured-vm-from-template.md)
158
158
159
159
### Marketplace image
160
160
161
-
In the Azure portal or Azure CLI, you can create generation 2 VMs from a Marketplace image that supports UEFI boot.
161
+
In the Azure portal or Azure CLI, you can create Generation 2 VMs from a Marketplace image that supports UEFI boot.
162
162
163
163
#### Azure portal
164
164
165
-
Below are the steps to create a generation 2 (Gen2) VM in Azure portal.
165
+
Below are the steps to create a Generation 2 (Gen2) VM in Azure portal.
166
166
167
167
1. Sign in to the [Azure portal](https://portal.azure.com).
168
168
2. Search for **Virtual Machines**
@@ -171,30 +171,30 @@ Below are the steps to create a generation 2 (Gen2) VM in Azure portal.
171
171
5. Under **Project details**, make sure the correct subscription is selected.
172
172
6. Under **Resource group**, select **Create new** and type a name for your resource group or select an existing resource group from the dropdown.
173
173
7. Under **Instance details**, type a name for the virtual machine name and choose a region
174
-
8. Under **Image**, select a Gen2 image from the **Marketplace images to get started**
174
+
8. Under **Image**, select a Generation 2 image from the **Marketplace images to get started**
175
175
> [!TIP]
176
-
> If you don't see the Gen 2 version of the image you want in the drop-down, select **See all images** and then change the **Image Type** filter to **Gen 2**.
177
-
9. Select a VM size that supports Gen2. See a list of [supported sizes](#generation-2-vm-sizes).
176
+
> If you don't see the Generation 2 version of the image you want in the drop-down, select **See all images** and then change the **Image Type** filter to **Gen 2**.
177
+
9. Select a VM size that supports Generation 2. See a list of [supported sizes](#generation-2-vm-sizes).
178
178
10. Fill in the **Administrator account** information and then **Inbound port rules**
179
179
11. At the bottom of the page, select **Review + Create**
180
180
12. 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**.
181
181
182
182
#### PowerShell
183
183
184
-
You can also use PowerShell to create a VM by directly referencing the generation 1 or generation 2 SKU.
184
+
You can also use PowerShell to create a VM by directly referencing the Generation 1 or Generation 2 SKU.
185
185
186
186
For example, use the following PowerShell cmdlet to get a list of the SKUs in the `WindowsServer` offer.
If you're creating a VM with Windows Server 2019 as the OS, then you can select a generation 2 (UEFI) image which looks like this:
192
+
If you're creating a VM with Windows Server 2019 as the OS, then you can select a Generation 2 (UEFI) image which looks like this:
193
193
194
194
```powershell
195
195
2019-datacenter-gensecond
196
196
```
197
-
If you're creating a VM with Windows 10 as the OS, then you can select a generation 2 (UEFI) image which looks like this:
197
+
If you're creating a VM with Windows 10 as the OS, then you can select a Generation 2 (UEFI) image which looks like this:
198
198
199
199
```powershell
200
200
20H2-PRO-G2
@@ -204,30 +204,30 @@ See the [Features and capabilities](#features-and-capabilities) section for a cu
204
204
205
205
#### Azure CLI
206
206
207
-
Alternatively, you can use the Azure CLI to see any available generation 2 images, listed by **Publisher**.
207
+
Alternatively, you can use the Azure CLI to see any available Generation 2 images, listed by **Publisher**.
208
208
209
209
```azurecli
210
210
az vm image list --publisher Canonical --sku gen2 --output table --all
211
211
```
212
212
213
213
### Managed image or managed disk
214
214
215
-
You can create a generation 2 VM from a managed image or managed disk in the same way you would create a generation 1 VM.
215
+
You can create a Generation 2 VM from a managed image or managed disk in the same way you would create a Generation 1 VM.
216
216
217
217
### Virtual machine scale sets
218
218
219
-
You can also create generation 2 VMs by using virtual machine scale sets. In the Azure CLI, use Azure scale sets to create generation 2 VMs.
219
+
You can also create Generation 2 VMs by using virtual machine scale sets. In the Azure CLI, use Azure scale sets to create Generation 2 VMs.
220
220
221
221
## Frequently asked questions
222
222
223
-
***Are generation 2 VMs available in all Azure regions?**
224
-
Yes. But not all [generation 2 VM sizes](#generation-2-vm-sizes) are available in every region. The availability of the generation 2 VM depends on the availability of the VM size.
223
+
***Are Generation 2 VMs available in all Azure regions?**
224
+
Yes. But not all [generation 2 VM sizes](#generation-2-vm-sizes) are available in every region. The availability of the Generation 2 VM depends on the availability of the VM size.
225
225
226
-
***Is there a price difference between generation 1 and generation 2 VMs?**
226
+
***Is there a price difference between Generation 1 and Generation 2 VMs?**
227
227
No.
228
228
229
-
***I have a .vhd file from my on-premises generation 2 VM. Can I use that .vhd file to create a generation 2 VM in Azure?**
230
-
Yes, you can bring your generation 2 .vhd file to Azure and use that to create a generation 2 VM. Use the following steps to do so:
229
+
***I have a .vhd file from my on-premises Generation 2 VM. Can I use that .vhd file to create a Generation 2 VM in Azure?**
230
+
Yes, you can bring your Generation 2 .vhd file to Azure and use that to create a Generation 2 VM. Use the following steps to do so:
231
231
1. Upload the .vhd to a storage account in the same region where you'd like to create your VM.
232
232
1. Create a managed disk from the .vhd file. Set the Hyper-V Generation property to V2. The following PowerShell commands set Hyper-V Generation property when creating managed disk.
233
233
@@ -238,12 +238,12 @@ You can also create generation 2 VMs by using virtual machine scale sets. In the
1. Once the disk is available, create a VM by attaching this disk. The VM created will be a generation 2 VM.
242
-
When the generation 2 VM is created, you can optionally generalize the image of this VM. By generalizing the image, you can use it to create multiple VMs.
241
+
1. Once the disk is available, create a VM by attaching this disk. The VM created will be a Generation 2 VM.
242
+
When the Generation 2 VM is created, you can optionally generalize the image of this VM. By generalizing the image, you can use it to create multiple VMs.
243
243
244
244
* **How do I increase the OS disk size?**
245
245
246
-
OS disks larger than 2 TiB are new to generation 2 VMs. By default, OS disks are smaller than 2 TiB for generation 2 VMs. You can increase the disk size up to a recommended maximum of 4 TiB. Use the Azure CLI or the Azure portal to increase the OS disk size. For information about how to expand disks programmatically, see **Resize a disk** for [Windows](./windows/expand-os-disk.md) or [Linux](./linux/resize-os-disk-gpt-partition.md).
246
+
OS disks larger than 2 TiB are new to Generation 2 VMs. By default, OS disks are smaller than 2 TiB for Generation 2 VMs. You can increase the disk size up to a recommended maximum of 4 TiB. Use the Azure CLI or the Azure portal to increase the OS disk size. For information about how to expand disks programmatically, see **Resize a disk** for [Windows](./windows/expand-os-disk.md) or [Linux](./linux/resize-os-disk-gpt-partition.md).
247
247
248
248
To increase the OS disk size from the Azure portal:
249
249
@@ -253,32 +253,32 @@ You can also create generation 2 VMs by using virtual machine scale sets. In the
253
253
1. In the **Disks** section, select **Configuration**, and update the **Size** to the value you want.
254
254
1. Go back to the VM properties page and **Start** the VM.
255
255
256
-
You might see a warning for OS disks larger than 2 TiB. The warning doesn't apply to generation 2 VMs. However, OS disk sizes larger than 4 TiB are not supported.
256
+
You might see a warning for OS disks larger than 2 TiB. The warning doesn't apply to Generation 2 VMs. However, OS disk sizes larger than 4 TiB are not supported.
257
257
258
-
* **Do generation 2 VMs support accelerated networking?**
258
+
* **Do Generation 2 VMs support accelerated networking?**
259
259
Yes. For more information, see [Create a VM with accelerated networking](../virtual-network/create-vm-accelerated-networking-cli.md).
260
260
261
-
* **Do generation 2 VMs support Secure Boot or vTPM in Azure?**
262
-
Both vTPM and Secure Boot are features of trusted launch for generation 2 VMs. For more information, see [Trusted launch](trusted-launch.md).
261
+
* **Do Generation 2 VMs support Secure Boot or vTPM in Azure?**
262
+
Both vTPM and Secure Boot are features of trusted launch for Generation 2 VMs. For more information, see [Trusted launch](trusted-launch.md).
263
263
264
-
* **Is VHDX supported on generation 2?**
265
-
No, generation 2 VMs support only VHD.
264
+
* **Is VHDX supported on Generation 2?**
265
+
No, Generation 2 VMs on Azure support only VHD.
266
266
267
-
* **Do generation 2 VMs support Azure Ultra Disk Storage?**
267
+
* **Do Generation 2 VMs support Azure Ultra Disk Storage?**
268
268
Yes.
269
269
270
-
* **Can I migrate a VM from generation 1 to generation 2?**
270
+
* **Can I migrate a VM from Generation 1 to Generation 2?**
271
271
No, you can't change the generation of a VM after you create it. If you need to switch between VM generations, create a new VM of a different generation.
272
272
273
-
* **Why is my VM size not enabled in the size selector when I try to create a Gen2 VM?**
273
+
* **Why is my VM size not enabled in the size selector when I try to create a Generation 2 VM?**
274
274
275
275
This may be solved by doing the following:
276
276
277
-
1. Verify that the **VM generation** property is set to **Gen 2**.
278
-
1. Verify you are searching for a [VM size which supports Gen2 VMs](#generation-2-vm-sizes).
277
+
1. Verify that the **VM Generation** property is set to **Gen 2**.
278
+
1. Verify you are searching for a [VM size which supports Generation 2 VMs](#generation-2-vm-sizes).
279
279
280
280
## Next steps
281
281
282
-
Learn more about the [trusted launch](trusted-launch-portal.md) with gen 2 VMs.
282
+
Learn more about the [trusted launch](trusted-launch-portal.md) with Generation 2 VMs.
283
283
284
-
Learn about [generation 2 virtual machines in Hyper-V](/windows-server/virtualization/hyper-v/plan/should-i-create-a-generation-1-or-2-virtual-machine-in-hyper-v).
284
+
Learn about [Generation 2 virtual machines in Hyper-V](/windows-server/virtualization/hyper-v/plan/should-i-create-a-generation-1-or-2-virtual-machine-in-hyper-v).
0 commit comments