|
| 1 | +--- |
| 2 | +title: Create shared Azure Virtual Machine images for Windows using portal | Microsoft Docs |
| 3 | +description: Learn how to use Azure portal to create and share virtual machine images. |
| 4 | +services: virtual-machines-windows |
| 5 | +documentationcenter: virtual-machines |
| 6 | +author: cynthn |
| 7 | +manager: jeconnoc |
| 8 | +editor: tysonn |
| 9 | +tags: azure-resource-manager |
| 10 | + |
| 11 | +ms.assetid: |
| 12 | +ms.service: virtual-machines-windows |
| 13 | +ms.devlang: na |
| 14 | +ms.topic: article |
| 15 | +ms.tgt_pltfrm: vm-windows |
| 16 | +ms.workload: infrastructure |
| 17 | +ms.date: 04/25/2019 |
| 18 | +ms.author: cynthn |
| 19 | +ms.custom: |
| 20 | + |
| 21 | +#Customer intent: As an IT administrator, I want to learn about how to create shared VM images to minimize the number of post-deployment configuration tasks. |
| 22 | +--- |
| 23 | + |
| 24 | +# Create a shared image gallery using the Azure portal |
| 25 | + |
| 26 | +A [Shared Image Gallery](shared-image-galleries.md) simplifies custom image sharing across your organization. Custom images are like marketplace images, but you create them yourself. Custom images can be used to bootstrap deployment tasks like preloading applications, application configurations, and other OS configurations. |
| 27 | + |
| 28 | +The Shared Image Gallery lets you share your custom VM images with others in your organization, within or across regions, within an AAD tenant. Choose which images you want to share, which regions you want to make them available in, and who you want to share them with. You can create multiple galleries so that you can logically group shared images. |
| 29 | + |
| 30 | +The gallery is a top-level resource that provides full role-based access control (RBAC). Images can be versioned, and you can choose to replicate each image version to a different set of Azure regions. The gallery only works with Managed Images. |
| 31 | + |
| 32 | +The Shared Image Gallery feature has multiple resource types. We will be using or building these in this article: |
| 33 | + |
| 34 | +| Resource | Description| |
| 35 | +|----------|------------| |
| 36 | +| **Managed image** | This is a basic image that can be used alone or used to create an **image version** in an image gallery. Managed images are created from generalized VMs. A managed image is a special type of VHD that can be used to make multiple VMs and can now be used to create shared image versions. | |
| 37 | +| **Image gallery** | Like the Azure Marketplace, an **image gallery** is a repository for managing and sharing images, but you control who has access. | |
| 38 | +| **Image definition** | Images are defined within a gallery and carry information about the image and requirements for using it internally. This includes whether the image is Windows or Linux, release notes, and minimum and maximum memory requirements. It is a definition of a type of image. | |
| 39 | +| **Image version** | An **image version** is what you use to create a VM when using a gallery. You can have multiple versions of an image as needed for your environment. Like a managed image, when you use an **image version** to create a VM, the image version is used to create new disks for the VM. Image versions can be used multiple times. | |
| 40 | + |
| 41 | + |
| 42 | +## Before you begin |
| 43 | + |
| 44 | +To complete the example in this article, you must have an existing managed image. You can follow [Tutorial: Create a custom image of an Azure VM with Azure PowerShell](tutorial-custom-images.md) to create one if needed. When working through this article, replace the resource group and VM names where needed. |
| 45 | + |
| 46 | + |
| 47 | +[!INCLUDE [virtual-machines-common-shared-images-portal](../../../includes/virtual-machines-common-shared-images-portal.md)] |
| 48 | + |
| 49 | +## Create VMs from an image |
| 50 | + |
| 51 | +Once the image version is complete, you can create one or more new VMs. |
| 52 | + |
| 53 | +This example creates a VM named *myVMfromImage*, in the *myResourceGroup* in the *East US* datacenter. |
| 54 | + |
| 55 | +1. On the page for your image version, select **Create VM** from the menu at the top of the page. |
| 56 | +1. For **Resource group**, select **Create new** and type *myResourceGroup* for the name. |
| 57 | +1. In **Virtual machine name**, type *myVM*. |
| 58 | +1. For **Region**, select *East US*. |
| 59 | +1. For **Availability options**, leave the default of *No infrastructure redundancy required*. |
| 60 | +1. The value for **Image** should be automatically filled in if you started from the page for the image version. |
| 61 | +1. For **Size**, choose a VM size from the list of available sizes and then click "Select". |
| 62 | +1. Under **Administrator account**, provide a username, such as *azureuser* and a password. The password must be at least 12 characters long and meet the [defined complexity requirements](faq.md#what-are-the-password-requirements-when-creating-a-vm). |
| 63 | +1. If you want to allow remote access to the VM, under **Public inbound ports**, choose **Allow selected ports** and then select **RDP (3389)** from the drop-down. If you don't want to allow remote access to the VM, leave **None** selected for **Public inbound ports**. |
| 64 | +1. When you are finished, select the **Review + create** button at the bottom of the page. |
| 65 | +1. After the VM passes validation, select **Create** at the bottom of the page to start the deployment. |
| 66 | + |
| 67 | + |
| 68 | +## Clean up resources |
| 69 | + |
| 70 | +When no longer needed, you can delete the resource group, virtual machine, and all related resources. To do so, select the resource group for the virtual machine, select **Delete**, then confirm the name of the resource group to delete. |
| 71 | + |
| 72 | +If you want to delete individual resources, you need to delete them in reverse order. For example, to delete an image definition, you need to delete all of the image versions created from that image. |
| 73 | + |
| 74 | +## Next steps |
| 75 | + |
| 76 | +You can also create Shared Image Gallery resource using templates. There are several Azure Quickstart Templates available: |
| 77 | + |
| 78 | +- [Create a Shared Image Gallery](https://azure.microsoft.com/resources/templates/101-sig-create/) |
| 79 | +- [Create an Image Definition in a Shared Image Gallery](https://azure.microsoft.com/resources/templates/101-sig-image-definition-create/) |
| 80 | +- [Create an Image Version in a Shared Image Gallery](https://azure.microsoft.com/resources/templates/101-sig-image-version-create/) |
| 81 | +- [Create a VM from Image Version](https://azure.microsoft.com/resources/templates/101-vm-from-sig/) |
| 82 | + |
| 83 | +For more information about Shared Image Galleries, see the [Overview](shared-image-galleries.md). If you run into issues, see [Troubleshooting shared image galleries](troubleshooting-shared-images.md). |
| 84 | + |
0 commit comments