Windows 虛擬機器的常見問題Frequently asked question about Windows Virtual Machines

本文可解決在 Azure 中使用 Resource Manager 部署模型建立之 Windows 虛擬機器的一些常見問題。This article addresses some common questions about Windows virtual machines created in Azure using the Resource Manager deployment model. 如需本主題的 Linux 版本, 請參閱關於 Linux 虛擬機器的常見問題For the Linux version of this topic, see Frequently asked question about Linux Virtual Machines.

我可以在 Azure VM 上執行什麼?What can I run on an Azure VM?

所有的訂閱者都可以在 Azure 虛擬機器上執行伺服器軟體。All subscribers can run server software on an Azure virtual machine. 如需在 Azure 中執行 Microsoft 伺服器軟體之支援原則的相關資訊, 請參閱適用于 azure 虛擬機器的 microsoft 伺服器軟體支援For information about the support policy for running Microsoft server software in Azure, see Microsoft server software support for Azure Virtual Machines.

特定版本的 Windows 7、Windows 8.1 及 Windows 10 可供 MSDN Azure 權益訂閱者和 MSDN 開發和測試隨用隨付訂閱者 (針對開發與測試工作) 使用。Certain versions of Windows 7, Windows 8.1, and Windows 10 are available to MSDN Azure benefit subscribers and MSDN Dev and Test Pay-As-You-Go subscribers, for development and test tasks. 如需詳細資訊 (包括指示和限制),請參閱 MSDN 訂閱者的 Windows 用戶端映像For details, including instructions and limitations, see Windows Client images for MSDN subscribers.

我可以使用多少的儲存體搭配虛擬機器?How much storage can I use with a virtual machine?

每個資料磁片最多可達 32767 GiB。Each data disk can be up to 32,767 GiB. 可使用的資料磁碟數量取決於虛擬機器的大小。The number of data disks you can use depends on the size of the virtual machine. 如需詳細資訊,請參閱 虛擬機器的大小For details, see Sizes for Virtual Machines.

Azure 受控磁碟是受歡迎磁碟儲存體供應項目,可用在 Azure 虛擬機器當作資料的用續性儲存體。Azure Managed Disks are the recommended disk storage offerings for use with Azure Virtual Machines for persistent storage of data. 每部虛擬機器可使用多部受控磁碟。You can use multiple Managed Disks with each Virtual Machine. 受控磁碟提供兩種耐久的儲存體選項:進階與標準受控磁碟。Managed Disks offer two types of durable storage options: Premium and Standard Managed Disks. 如需定價資訊,請參閱受控磁碟定價For pricing information, see Managed Disks Pricing.

Azure 儲存體帳戶也提供作業系統磁碟和任何資料磁碟的儲存空間。Azure storage accounts can also provide storage for the operating system disk and any data disks. 每個磁碟是以分頁 Blob 方式儲存的 .vhd 檔案。Each disk is a .vhd file stored as a page blob. 如需定價的詳細資料,請參閱 儲存體定價詳細資料For pricing details, see Storage Pricing Details.

如何存取我的虛擬機器?How can I access my virtual machine?

使用遠端桌面連線 (RDP) 為 Windows VM 建立遠端連線。Establish a remote connection using Remote Desktop Connection (RDP) for a Windows VM. 如需指示, 請參閱如何連線及登入執行 Windows 的 Azure 虛擬機器For instructions, see How to connect and sign on to an Azure virtual machine running Windows. 除非將伺服器設定為遠端桌面服務工作階段主機,否則最多支援兩個並行連線。A maximum of two concurrent connections are supported, unless the server is configured as a Remote Desktop Services session host.

如果您在使用「遠端桌面」時遇到問題,請參閱 疑難排解以 Windows 為基礎之 Azure 虛擬機器的遠端桌面連線If you’re having problems with Remote Desktop, see Troubleshoot Remote Desktop connections to a Windows-based Azure Virtual Machine.

如果您熟悉 Hyper-V,您可能正在尋找類似 VMConnect 的工具。If you’re familiar with Hyper-V, you might be looking for a tool similar to VMConnect. Azure 沒有提供類似的工具,因為並不支援主控台存取虛擬機器。Azure doesn’t offer a similar tool because console access to a virtual machine isn’t supported.

我可以使用暫存磁碟 (預設為 D: 磁碟機) 儲存資料嗎?Can I use the temporary disk (the D: drive by default) to store data?

請勿使用暫存磁碟來儲存資料。Don’t use the temporary disk to store data. 暫存磁碟僅提供暫存空間,因此您會有遺失資料且無法復原的風險。It is only temporary storage, so you would risk losing data that can’t be recovered. 當虛擬機器移動到不同的主機時就可能發生資料遺失。Data loss can occur when the virtual machine moves to a different host. 可能要移動虛擬機器的一些原因是調整虛擬機器的大小、更新主機,或主機上的硬體故障等等。Resizing a virtual machine, updating the host, or a hardware failure on the host are some of the reasons a virtual machine might move.

如果應用程式需要使用 D: 磁碟機代號,您可以重新指派磁碟機代號,讓暫存磁碟使用 D: 以外的代號。If you have an application that needs to use the D: drive letter, you can reassign drive letters so that the temporary disk uses something other than D:. 如需相關指示,請參閱 變更 Windows 暫存磁碟的磁碟機代號For instructions, see Change the drive letter of the Windows temporary disk.

如何變更暫存磁碟的磁碟機代號?How can I change the drive letter of the temporary disk?

您可以透過移動分頁檔並重新指派磁碟機代號來變更磁碟機代號,但必須確定會以特定的順序執行這些步驟。You can change the drive letter by moving the page file and reassigning drive letters, but you need to make sure you do the steps in a specific order. 如需相關指示,請參閱 變更 Windows 暫存磁碟的磁碟機代號For instructions, see Change the drive letter of the Windows temporary disk.

我是否可以將現有的 VM 新增到可用性設定組?Can I add an existing VM to an availability set?

資料分割No. 如果您希望 VM 屬於可用性設定組的一部分,就必須在設定組當中建立 VM。If you want your VM to be part of an availability set, you need to create the VM within the set. 目前不支援在建立 VM 之後,再將其加入可用性設定組。There currently isn't a way to add a VM to an availability set after it has been created.

我是否可以將虛擬機器上傳到 Azure?Can I upload a virtual machine to Azure?

是的。Yes. 如需指示,請參閱移轉內部部署 VM 至 AzureFor instructions, see Migrating on-premises VMs to Azure.

我是否可以調整 OS 磁碟機的大小?Can I resize the OS disk?

是的。Yes. 如需指示,請參閱 如何擴充 Azure 資源群組之虛擬機器的 OS 磁碟機For instructions, see How to expand the OS drive of a Virtual Machine in an Azure Resource Group.

我是否可以複製或再製現有的 Azure VM?Can I copy or clone an existing Azure VM?

是的。Yes. 您可以使用受控映像來建立虛擬機器映像,然後使用此映像建置多個新 VM。Using managed images, you can create an image of a virtual machine and then use the image to build multiple new VMs. 如需指示,請參閱建立 VM 的自訂映像For instructions, see Create a custom image of a VM.

為什麼我透過 Azure Resource Manager 沒看到加拿大中部和加拿大東部區域?Why am I not seeing Canada Central and Canada East regions through Azure Resource Manager?

針對現有 Azure 訂用帳戶所建立的虛擬機器,不會自動註冊加拿大中部和加拿大東部這兩個新的區域。The two new regions of Canada Central and Canada East are not automatically registered for virtual machine creation for existing Azure subscriptions. 當虛擬機器透過 Azure 入口網站使用 Azure Resource Manager 部署到任何其他區域時,就會自動完成註冊。This registration is done automatically when a virtual machine is deployed through the Azure portal to any other region using Azure Resource Manager. 將虛擬機器部署到任何其他 Azure 區域之後,新的區域即可供後續的虛擬機器使用。After a virtual machine is deployed to any other Azure region, the new regions should be available for subsequent virtual machines.

Azure 是否支援 Linux VM?Does Azure support Linux VMs?

是的。Yes. 若要快速建立 Linux VM 以試用,請參閱 使用入口網站在 Azure 上建立 Linux VMTo quickly create a Linux VM to try out, see Create a Linux VM on Azure using the Portal.

我可以在建立 VM 之後將 NIC 新增至此 VM 嗎?Can I add a NIC to my VM after it's created?

是的,目前可行。Yes, this is now possible. 您必須先停止解除配置 VM。The VM first needs to be stopped deallocated. 然後您可以新增或移除 NIC (除非它是 VM 上的最後一個 NIC)。Then you can add or remove a NIC (unless it's the last NIC on the VM).

是否有任何電腦名稱需求?Are there any computer name requirements?

是的。Yes. 電腦名稱的長度最多可以有 15 個字元。The computer name can be a maximum of 15 characters in length. 如需命名資源相關詳細資訊,請參閱命名慣例規則與限制See Naming conventions rules and restrictions for more information around naming your resources.

是否有任何資源群組名稱需求?Are there any resource group name requirements?

是的。Yes. 資源群組名稱長度最多可以有 90 個字元。The resource group name can be a maximum of 90 characters in length. 如需資源群組相關詳細資訊,請參閱命名慣例規則與限制See Naming conventions rules and restrictions for more information about resource groups.

建立 VM 時的使用者名稱需求為何?What are the username requirements when creating a VM?

使用者名稱長度最多為 20 個字元,而且不能以句號 (".") 結尾。Usernames can be a maximum of 20 characters in length and cannot end in a period (".").

不允許下列使用者名稱︰The following usernames are not allowed:

administrator admin user user1
test user2 test1 user3
admin1 1 123 a
actuser adm admin2 aspnet
backup console david guest
john owner root server
sql support support_388945a0 sys
test2 test3 user4 user5

建立 VM 時的密碼需求為何?What are the password requirements when creating a VM?

視您使用的工具而定, 有不同的密碼長度需求:There are varying password length requirements, depending on the tool you are using:

  • 入口網站-介於 12-72 個字元之間Portal - between 12 - 72 characters
  • PowerShell-介於 8-123 個字元之間PowerShell - between 8 - 123 characters
  • CLI-介於 12-123 之間CLI - between 12 - 123
  • 包含小寫字元Have lower characters
  • 包含大小字元Have upper characters
  • 包含數字Have a digit
  • 包含特殊字元 (Regex match [\W_])Have a special character (Regex match [\W_])

不允許下列密碼︰The following passwords are not allowed:

abc@123 iloveyou!iloveyou! P@$$w0rdP@$$w0rd P@ssw0rd P@ssword123
Pa$$wordPa$$word pass@word1 Password!Password! Password1Password1 Password22Password22