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/windows/capture-image-resource.md
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.service: virtual-machines
6
6
ms.subservice: imaging
7
7
ms.workload: infrastructure-services
8
8
ms.topic: how-to
9
-
ms.date: 09/27/2018
9
+
ms.date: 02/24/2022
10
10
ms.author: cynthn
11
11
ms.custom: legacy
12
12
ms.collection: windows
@@ -27,21 +27,18 @@ You need a [generalized](../generalize.md) VM in order to create an image.
27
27
28
28
## Create a managed image in the portal
29
29
30
-
1. Go to the [Azure portal](https://portal.azure.com) to manage the VM image. Search for and select **Virtual machines**.
30
+
1. Go to the [Azure portal](https://portal.azure.com). Search for and select **Virtual machines**.
31
31
32
32
2. Select your VM from the list.
33
33
34
-
3. In the **Virtual machine** page for the VM, on the upper menu, select **Capture**.
34
+
3. In the **Virtual machine** page for the VM, on the upper menu, select **Capture**. The **Create an image** page appears.
35
+
4. For **Share image to Azure compute gallery**, select **No, capture only a managed image.**
36
+
5. For **Resource Group**, you can either create the image in the same resource group as the VM or select another resource group in your subscription.
35
37
36
-
The **Create image** page appears.
37
-
38
-
4. For **Name**, either accept the pre-populated name or enter a name that you would like to use for the image.
39
-
40
-
5. For **Resource group**, either select **Create new** and enter a name, or select a resource group to use from the drop-down list.
38
+
4. For **Name**, either accept the pre-populated name or type your own name for the image.
41
39
42
40
6. If you want to delete the source VM after the image has been created, select **Automatically delete this virtual machine after creating the image**.
43
-
44
-
7. If you want the ability to use the image in any [availability zone](../../availability-zones/az-overview.md), select **On** for **Zone resiliency**.
41
+
7.7. If you want the ability to use the image in any [availability zone](../../availability-zones/az-overview.md), select **On** for **Zone resiliency**.
45
42
46
43
8. Select **Create** to create the image.
47
44
@@ -51,8 +48,6 @@ After the image is created, you can find it as an **Image** resource in the list
51
48
52
49
## Create an image of a VM using PowerShell
53
50
54
-
55
-
56
51
Creating an image directly from the VM ensures that the image includes all of the disks associated with the VM, including the OS disk and any data disks. This example shows how to create a managed image from a VM that uses managed disks.
57
52
58
53
Before you begin, make sure that you have the latest version of the Azure PowerShell module. To find the version, run `Get-Module -ListAvailable Az` in PowerShell. If you need to upgrade, see [Install Azure PowerShell on Windows with PowerShellGet](/powershell/azure/install-az-ps). If you are running PowerShell locally, run `Connect-AzAccount` to create a connection with Azure.
0 commit comments