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

Prerequisites

The instance is stopped. If the instance is not stopped, stop it first. For more information, see Stop an instance.
Notice 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 of 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 the Windows application environment:

  • If you are creating an instance, you can select an Alibaba Cloud Marketplace image that contains the Windows application environment. For more information, see Creation method overview.
  • If you are using an existing instance, you can replace the operating system of the instance by using an Alibaba Cloud Marketplace image that contains the Windows application environment.
The procedure described in this topic applies to existing ECS instances. You can deploy the Windows application environment on an existing instance by changing its image to an Alibaba Cloud Marketplace image. The tutorial only describes the general procedure for using Alibaba Cloud Marketplace images. The buy page of Alibaba Cloud Marketplace images contains the how-to guide. Read the guide before you use the images.
Note
  • You cannot install or deploy virtualization software such as KVM, Xen, or VMware on ECS instances.
  • After the operating system is replaced, the original system disk is released and data on the system disk is lost. Exercise caution when you replace the operating system. For more information, see Replace the operating system of an instance by using a non-public image.

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 a region.
  4. Replace the system disk of the ECS instance.
    1. Find the instance for which you want to replace the system disk. In the Actions column, choose More > Disk and Image > Replace System Disk.
    2. In the Replace System Disk message, click OK.
      Considerations for replacing the system disk
    3. On the Change Operating System page, set Image to Marketplace Image, and click Select from Image Market (Including Operating System).
      Select an Alibaba Cloud Marketplace image
    4. In the left-side navigation pane, select All Categories or enter the image that you want to use and click Search. Select the image and click Use.
    5. Set the logon password of the ECS instance. Enter the password in the Logon Password field and enter the password again in the Confirm field.
    6. In the lower part of the Change Operating System page, read and select ECS Service Terms and Terms of Service for Images, and then click Create Order.
      Confirm to Change

Result

After the operating system of the ECS instance is replaced, a message as shown in the following figure appears. System disk replaced

Click Back to Instance List to go back to the Instances page. The instance automatically starts. Connect to the instance, and you can use the Windows application environment. For more information about how to connect to an instance, see Connection methods.