Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
© 2022 Yandex.Cloud LLC
Yandex Compute Cloud
  • Getting started
    • Overview
    • Creating a Linux VM
    • Creating a Windows VM
    • Creating instance groups
  • Step-by-step instructions
    • All instructions
    • Creating VMs
      • Creating a Linux VM
      • Creating a Windows VM
      • Creating a VM from a set of disks
      • Creating a VM with disks from snapshots
      • Creating a VM from a custom image
      • Creating a VM with a GPU
      • Making a VM preemptible
    • DSVM
      • Overview
      • Creating a VM from a public DSVM image
    • Placement groups
      • Creating a placement group
      • Deleting a placement group
      • Creating a VM in a placement group
      • Adding a VM to a placement group
      • Removing a VM from a placement group
    • Images with pre-installed software
      • Creating a VM from a public image
      • Configuring software
      • Running a VM based on a public image
      • Getting a list of public images
    • Getting information about a VM
      • Getting information about a VM
      • Getting serial port's output
    • Managing VMs
      • Stopping and starting a VM
      • Resetting a VM user password
      • Attaching a disk to a VM
      • Detaching a disk from a VM
      • Moving a VM to a different availability zone
      • Moving a VM to another folder
      • Attaching a public IP address to a VM
      • Detaching a public IP address from a VM
      • Making a VM's public IP address static
      • Updating a VM
      • Changing VM computing resources
      • Deleting a VM
    • Working on VMs
      • Connecting to a VM via SSH
      • Connecting to a VM via RDP
      • Connecting to a VM via PowerShell
      • Working with Yandex Cloud from inside a VM
      • Installing NVIDIA drivers
      • Restoring access to a VM
    • Managing the password reset agent
      • Verifying agent operation
      • Installing the agent
      • Deleting the agent
    • Creating new disks
      • Creating an empty disk
      • Creating an empty disk with a large block
      • Creating a non-replicated disk
    • Disk management
      • Creating a disk snapshot
      • Updating a disk
      • Moving a disk to another folder
      • Deleting a disk
      • Deleting a disk snapshot
    • Disk placement groups
      • Creating a disk placement group
      • Removing a disk from a placement group
    • Creating new images
      • Preparing a disk image
      • Uploading your image
      • Creating an image from a disk
      • Creating an image from a snapshot
      • Creating an image from other custom image
    • Managing images
      • Getting a list of images
      • Deleting a disk image
    • File storage
      • Creating file storage
      • Attaching file storage to a VM
      • Detaching file storage from a VM
      • Updating file storage
      • Deleting file storage
    • Managing the serial console
      • Getting started
      • Connecting to a serial console via SSH
      • Connecting to a serial console via CLI
      • Starting your terminal in the Windows serial console (SAC)
      • Disabling access to the serial console
    • Creating instance groups
      • Creating a fixed-size instance group
      • Creating a fixed-size instance group with a network load balancer
      • Creating a fixed-size instance group with an L7 load balancer
      • Creating an automatically scaled instance group
      • Creating an instance group from a Container Optimized Image
      • Creating an instance group based on the YAML specification
    • Getting information about instance groups
      • Getting a list of instance groups
      • Getting information about an instance group
      • Getting a list of instances in a group
    • Managing instance groups
      • Editing an instance group
      • Edit an instance group based on the YAML specification
      • Configuring application health check on the VM
      • Updating a group
        • Incremental update
        • Uninterrupted updates
      • Pausing an instance group
      • Resuming an instance group
      • Stopping an instance group
      • Starting an instance group
      • Deleting an instance group
    • Dedicated hosts
      • Creating a VM in a group of dedicated hosts
      • Creating a VM on a dedicated host
  • Yandex Container Solution
  • Practical guidelines
    • Configuring NTP time synchronization
    • Running instance groups with auto scaling
    • Automatically scaling an instance group for handling messages from a queue
    • Updating an instance group under load
    • Deploying Remote Desktop Gateway
    • Transferring logs from a VM instance to Yandex Cloud Logging
    • Creating a VM backup with Hystax Acura Backup
  • Concepts
    • Relationship between resources
    • Virtual machines
      • Overview
      • Platforms
      • vCPU performance levels
      • Preemptible VMs
      • Network on a VM
      • Software-accelerated network
      • Live migration
      • Placement groups
      • Statuses
      • Metadata
      • Resetting a Windows VM password
    • Graphics accelerators
    • Disks and file storage
      • Overview
      • Disks
      • Disk snapshots
      • Non-replicated disk placement groups
      • File storage
      • Read and write operations
    • Images
    • Instance groups
      • Overview
      • Access
      • YAML specification
      • Instance template
      • Variables in an instance template
      • Policies
        • Overview
        • Allocation policy
        • Deployment policy
        • Scaling policy
      • Scaling types
      • Auto-healing
      • Updating
        • Overview
        • Allocating instances across zones
        • Deployment algorithm
        • Rules for updating virtual machines
        • Changing secondary disks in an instance template
      • Stopping and pausing an instance group
      • Statuses
    • Dedicated host
    • Backups
    • Quotas and limits
  • Access management
  • Pricing policy
    • Current pricing policy
    • Archive
      • Before January 1, 2019
      • From January 1 to March 1, 2019
      • From March 1 to May 1, 2019
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • DiskPlacementGroupService
      • DiskService
      • DiskTypeService
      • FilesystemService
      • HostGroupService
      • HostTypeService
      • ImageService
      • InstanceService
      • PlacementGroupService
      • SnapshotScheduleService
      • SnapshotService
      • ZoneService
      • InstanceGroupService
      • OperationService
    • REST
      • Overview
      • DiskPlacementGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listDisks
        • listOperations
        • update
      • Disk
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • move
        • update
      • DiskType
        • Overview
        • get
        • list
      • Filesystem
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • update
      • HostGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listHosts
        • listInstances
        • listOperations
        • update
      • HostType
        • Overview
        • get
        • list
      • Image
        • Overview
        • create
        • delete
        • get
        • getLatestByFamily
        • list
        • listOperations
        • update
      • Instance
        • Overview
        • addOneToOneNat
        • attachDisk
        • attachFilesystem
        • create
        • delete
        • detachDisk
        • detachFilesystem
        • get
        • getSerialPortOutput
        • list
        • listOperations
        • move
        • removeOneToOneNat
        • restart
        • start
        • stop
        • update
        • updateMetadata
        • updateNetworkInterface
      • PlacementGroup
        • Overview
        • create
        • delete
        • get
        • list
        • listInstances
        • listOperations
        • update
      • SnapshotSchedule
        • Overview
        • create
        • delete
        • disable
        • enable
        • get
        • list
        • listDisks
        • listOperations
        • listSnapshots
        • update
        • updateDisks
      • Snapshot
        • Overview
        • create
        • delete
        • get
        • list
        • listOperations
        • update
      • Zone
        • Overview
        • get
        • list
      • Operation
        • Overview
        • get
      • InstanceGroup
        • Overview
        • list
        • get
        • listLogRecords
        • updateFromYaml
        • updateAccessBindings
        • pauseProcesses
        • stop
        • start
        • delete
        • listInstances
        • createFromYaml
        • update
        • setAccessBindings
        • listOperations
        • create
        • listAccessBindings
        • resumeProcesses
  • Questions and answers
    • General questions
    • Virtual machines
    • Connection
    • Disks, snapshots, and images
    • Disaster recovery
    • Monitoring
    • Licensing
    • All questions on the same page
  1. Getting started
  2. Creating a Windows VM

Creating a Windows VM

Written by
Yandex Cloud
  • Before you begin
  • Create a VM
  • Reset the administrator password
  • Connect to the VM
  • Configure the serial console
  • Delete the VM
  • What's next

Create a Windows VM using Compute Cloud from the Yandex Cloud management console and connect to it.

To use Microsoft products, you must provide correct user data.

Before you begin

  1. Log in to or register in the management console. If you aren't registered, go to the management console and follow the instructions.
    1. On the billing page, make sure you linked a billing account and it has the ACTIVE or TRIAL_ACTIVE status. If you don't have a billing account, create one.
  2. If you don't have a folder, create one.

Create a VM

To create a VM:

  1. In the management console, select the folder to create the virtual machine in.

  2. In the list of services, select Compute Cloud.

  3. Click Create VM.

  4. Under Basic parameters:

    • Enter a name and description for the VM. Naming requirements:

      • The length can be from 3 to 63 characters.
      • It may contain lowercase Latin letters, numbers, and hyphens.
      • The first character must be a letter. The last character can't be a hyphen.

      Note

      The VM name is used to generate an internal FQDN only once: when creating a VM. If the internal FQDN is important to you, choose an appropriate name for the VM at the creation stage.

    • Select an availability zone to put your virtual machine in.

  5. Under Image/boot disk selection, select an image and a Windows-based operating system.

  6. (optional) Under Disk and file storage, click the Disks tab and configure a boot disk:

    • Select the disk type.

    • Specify the necessary disk size.

      If you wish to create a virtual machine from an existing disk, under Disks and file storage, add a disk:

      • Click Add disk.
      • Enter the disk name.
      • Select the disk type.
      • Specify the desired block size.
      • Specify the necessary disk size.
      • (optional) Enable the Delete with the VM option if you need to automatically delete the disk when deleting the VM it will be attached to.
      • Select Disk as content.
      • Click Add.
  7. (optional) Under Disks and file storage, click the File storage tab and connect a file store:

    • Click Connect file storage.
    • In the resulting window, select a file store.
    • Enter a device name.
    • Click Connect file storage.
  8. Under Computing resources:

    • Choose a platform.
    • Specify the guaranteed share and the required number of vCPUs, as well as the amount of RAM.
    • If necessary, make your VM preemptible.
    • (optional) Enable a software-accelerated network.
  9. Under Network settings:

    • Enter a subnet ID or select a cloud network from the list.
      If you don't have a network, click Create network to create one:
      • In the window that opens, enter the network name and folder to host the network.
      • (optional) To automatically create subnets, select the Create subnets option.
      • Click Create.
        Each network must have at least one subnet. If there is no subnet, create one by selecting Add subnet.
    • In the Public IP field, choose a method for assigning an IP address:
      • Auto: Assign a random IP address from the Yandex Cloud IP pool. With this, you can enable DDoS protection using the option below.
      • List: Select a public IP address from the list of previously reserved static addresses. For more information, see Making a dynamic public IP address static.
      • No address: Don't assign a public IP address.
    • In the Internal address field, select the method for assigning internal addresses: Auto or Manual.
    • (optional) Create a record for the VM in the DNS zone. Expand the DNS settings for internal addresses section, click Add record and specify the zone, FQDN and TTL for the record. For more information, see Cloud DNS integration with Compute Cloud.
    • Select appropriate security groups (if there is no corresponding field, the virtual machine will be enabled for all incoming and outgoing traffic).
  10. Under Access, specify the data required to access the VM:

    • (optional) Select or create a service account. By using a service account, you can flexibly configure access rights for your resources.

    • When you create a VM, the Administrator user is automatically created in the operating system. In the Password field, enter this user's password.

      Note

      If you lost your password to log in to the VM, you may need to create a new VM with a disk from a snapshot. For more information, see Restoring access to a VM.

      Do not use passwords that are easy to guess. Passwords must meet the Windows security policy.

      In Windows Server images from Yandex Cloud, the Administrator user's password expiration is disabled by default.

    • If required, grant access to the serial console.

  11. (optional) Under Placement, select a VM placement group.

  12. Click Create VM.

The virtual machine appears in the list. When a VM is created, it is assigned an IP address and hostname (FQDN). You can use this data to access the VM via RDP.

Reset the administrator password

The administrator password specified at the time of VM creation is saved as clear-text metadata, which is why we recommend replacing it with a newly generated password.

To reset a password:

  1. Select the folder the VM belongs to.

  2. Select Compute Cloud.

  3. Select the VM.

  4. Click Reset password.

    Note

    In the window that opens, if you see a message that the password reset agent is not running on the VM, make sure it is installed and review its runtime logs. For more information, see Verifying password reset operation on a Windows virtual machine.

  5. Specify the Username to reset the password for. If there is no user with that name on the VM, this user will be created with administrator access.

  6. Click Generate password.

  7. Save the New password. It will become unavailable once you close the window.

Connect to the VM

Remote Desktop Protocol (RDP) with Network Level Authentication (NLA) is enabled for images of all versions and editions of the Windows operating system prepared for Yandex Cloud. Before connecting to a VM, make sure that NLA is enabled in your desktop settings. When the VM starts (its status is RUNNING), you can connect to it using RDP.

Make sure the VM's security groups allow incoming TCP traffic to port 3389.

Note

Security groups are at the Preview stage. If they aren't available in your network, all incoming and outgoing traffic will be allowed for the VM and no additional setup is required.

To connect using RDP, specify the public IP address or the FQDN of the VM. Access using FQDN is possible from another Yandex Cloud VM if it's connected to the same network. You can find out the IP address and FQDN in the management console. Go to the Network section on the virtual machine's page.

To connect to the VM:

Windows
macOS
Linux
  1. Click Start.
  2. In the search box, type Remote Desktop Connection and select the appropriate item.
  3. In the Remote Desktop Connection window, enter the public IP address of the VM to connect to in the Computer field.
  4. Click Connect.
  5. Specify the account settings:
    • User name Administrator.
    • The password you set when creating the VM.
  6. Press OK.

Note

It usually takes up to 6 minutes to start a VM and initialize Remote Desktop (RDP). In rare cases, loading may take much longer than the time specified. For example, when using:

  • VMs with less than 100% guaranteed vCPU performance.
  • VMs that generate a load that exceeds the boot disk's IOPS limit.
  • Network HDD drives with small storage capacity.

See also

  • Remote Desktop Connection.
  1. Install and run Microsoft Remote Desktop (free official RDP client for Mac).
  2. Press → Desktop.
  3. In the Add Desktop dialog enter the public IP address of the virtual machine to connect to in the field PC Name.
  4. In the User Account field select Add User Account.
  5. In the Add User Account dialog specify the account settings:
    • User Name Administrator.
    • Password: The password that you set when creating the VM.
  6. Press Save twice.
  7. Connect to the remote machine by double-clicking the connection you created in the main Microsoft Remote Desktop window.

See also

  • Getting started with Remote Desktop on Mac.
  1. Install Remmina (a free RDP client for Linux) using the commands:

    sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
    
    sudo apt-get update
    
    sudo apt-get install remmina remmina-plugin-rdp
    
  2. Start Remmina.

  3. Click .

  4. Fill in the Profile block as follows:

    • Name: a name for the connection.
    • Protocol: RDP - Remote Desktop Protocol.
  5. In the Basic tab specify the details for connection and authorization:

    • Server: the public IP address of the virtual machine to connect to.
    • User Name: Administrator.
    • Password: the password that you set when you created the virtual machine.
  6. Click Save.

  7. Connect to the remote machine by double-clicking the connection you created in the quick access connection list.

See also

  • Installing Remmina on Linux distributions other than Ubuntu.

Configure the serial console

Using the serial console, you can connect to a VM regardless of the network or OS state (for example, if there are RDP loading or access issues).

Make sure you configure access to the VM via the serial console in advance.

Delete the VM

If you no longer plan to use a virtual machine, delete it.

What's next

  • Watch tutorials for creating web services in Yandex Cloud.
  • Learn how to create a VM with a GPU.
  • Learn how to use VMs.
  • Read answers to frequently asked questions.

Was the article helpful?

Language / Region
© 2022 Yandex.Cloud LLC
In this article:
  • Before you begin
  • Create a VM
  • Reset the administrator password
  • Connect to the VM
  • Configure the serial console
  • Delete the VM
  • What's next