All Products
Search
Document Center

Elastic Compute Service:Deploy a Windows application environment by replacing an image

Last Updated:Feb 20, 2024

You can deploy a Windows application environment on an Elastic Compute Service (ECS) instance by using an image that contains the Windows operating system and applications. This topic describes how to deploy a Windows application environment on an ECS instance by replacing the image of the instance.

Prerequisites

The instance on which you want to deploy a Windows application environment is stopped. If the instance is not stopped, stop the instance before you deploy the environment. For more information, see Stop an instance.

Important

If the billing method of an instance is pay-as-you-go and the network type of the instance is VPC, you must enable the standard mode for the instance when you stop the instance. If you enable the economical mode for the instance, you may not be able to start the instance after you replace its operating system.

Background information

Alibaba Cloud Marketplace images contain operating systems and applications and can be used to deploy application environments on ECS instances. For more information, see Alibaba Cloud Marketplace.

You can use one of the following methods to use Alibaba Cloud Marketplace images that contain a Windows application environment:

  • When you create an instance, you can select an Alibaba Cloud Marketplace image that contains a Windows application environment. For more information, see Creation methods.

  • If you use an existing instance, you can replace the operating system of the instance with an Alibaba Cloud Marketplace image that contains a Windows application environment.

Take note of the following items:

  • The procedure that is described in this topic applies to existing ECS instances. You can deploy a Windows application environment on an existing instance by replacing the instance image with an Alibaba Cloud Marketplace image. This tutorial describes only the general procedure for using Alibaba Cloud Marketplace images. The buy page of Alibaba Cloud Marketplace images contains the how-to guide. Before you use the images, we recommend that you read the guide.

  • You cannot install or deploy virtualization software, such as Kernel-based Virtual Machine (KVM), Xen, or VMware, on ECS instances.

  • After you replace the operating system of an instance, the original system disk is released and the data that is stored on the disk is lost and cannot be restored. Proceed with caution when you replace the operating system. For more information, see Replace the operating system of an instance by using a non-public image.

    Note

    Replacing the operating system of an ECS instance does not affect the data on the data disks of the instance.

Procedure

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Instances.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. Replace the system disk of the ECS instance.

    1. Find the ECS instance whose system disk you want to replace. In the Actions column, choose More > Disk and Image > Replace Operating System.

    2. In the Replace Operating System dialog box, make sure that Replace System Disk is selected, read the precautions, select I understand the risks, and then click Continue to Replace Operating System.

      image.png

    3. In the Image section of the Change Operating System page, click Marketplace Image and then Select from Image Market (Including Operating System).

      镜像

    4. In the left-side navigation pane of the Marketplace Image dialog box, select an image category, or enter the image name that you want to use and click Search. Find the image that you want to use and click Select.

      使用镜像市场镜像

    5. In the System Disk section, change the size of the system disk or use the default setting.

    6. In the Security Settings section, click Password, enter your password in the Logon Password field, and then re-enter the password in the Confirm field.

      安全设置

    7. In the Terms of Service section, read and select ECS Service Terms and Terms of Service for Images.

    8. In the lower-right corner of the Change Operating System page, click Create Oder.

      确认订单

Result

After you complete the payment, the Congratulations, purchase successfully message appears, which indicates that the operating system of the instance is replaced.

The instance automatically starts after the operating system is replaced. You can go to the Instances page, find and connect to the instance, and then use the new Windows application environment. For information about how to connect to an instance, see Connection method overview.