主机池创建疑难解答
本文介绍了 Azure 虚拟桌面租户和相关会话主机池基础结构的初始设置过程中的问题。
提供反馈
请访问 Azure 虚拟桌面技术社区,与产品团队和活跃的社区成员共同探讨 Azure 虚拟桌面服务。
获取Windows 10 企业版多会话映像
若要使用Windows 10 企业版多会话映像,请转到Azure 市场,选择 Windows 10 Microsoft入门>,然后选择Windows 10 企业版多会话版本 1809。
使用 Azure 门户创建主机池时出现的问题
错误:访问服务时出现“创建免费帐户”
原因
登录到 Azure 的帐户中没有活动订阅,或者该帐户无权查看订阅。
解决方法
使用至少具有参与者级访问权限的帐户登录到在其中部署会话主机虚拟机(VM)的订阅。
错误:“超过配额限制”
如果操作超过配额限制,则可以执行下列操作之一:
- 使用相同参数创建新主机池,但 VM 和 VM 核心数较少。
- 打开浏览器中字段中显示的
statusMessage
链接,提交请求以增加指定 VM SKU 的 Azure 订阅配额。
错误:在应用程序组中看不到用户分配
原因
将订阅从一个Microsoft Entra 租户移动到另一个租户后,通常会发生此错误。 如果旧分配仍绑定到以前的 Microsoft Entra 租户,则Azure 门户将失去跟踪。
解决方法
需要将用户重新分配到应用程序组。
选择服务对象的位置时,我看不到要使用的 Azure 区域
原因
Azure 目前不支持 Azure 虚拟桌面服务的该区域。 有关我们支持哪些地理位置的详细信息,请查看 数据位置。 如果 Azure 虚拟桌面支持该位置,但在尝试选择某个位置时仍不会显示该位置,则资源提供程序尚未更新。
解决方法
若要获取最新的区域列表,请重新注册资源提供程序:
- 转到“订阅”,选择相关订阅。
- 选择“资源提供程序”。
- 选择 Microsoft.DesktopVirtualization,然后 从操作菜单中选择“重新注册 ”。
重新注册资源提供程序时,你不会看到任何特定 UI 反馈或更新状态。 重新注册过程也不会干扰现有环境。
Azure 资源管理器模板错误
按照以下说明排查 Azure 资源管理器 模板和 PowerShell Desired State Configuration(DSC)部署失败的问题。
- 使用 Azure 资源管理器的查看部署操作查看部署中的错误。
- 如果部署中没有错误,请使用查看活动日志以审核对资源的操作,来查看活动日志中的错误。
- 确定错误后,请使用错误消息和解决 Azure 资源管理器中的常见 Azure 部署错误中的资源来解决此问题。
- 删除在上一部署期间创建的任何资源,然后重试部署模板。
错误:部署失败...<主机名>/joindomain
原始错误示例:
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details.
Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\":
{\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.
\",\r\n \"details\": [\r\n {\r\n \"code\": \"VMExtensionProvisioningError\",\r\n \"message\": \"VM has reported a failure when processing
extension 'joindomain'. Error message: \\\"Exception(s) occurred while joining Domain 'diamondsg.onmicrosoft.com'\\\".\"\r\n }\r\n ]\r\n }\r\n}"}]}
原因 1
提供的用于将 VM 加入域的凭据不正确。
解决方法 1
请参阅会话主机 VM 配置中未加入域的 VM 的“错误凭据”错误。
原因 2
无法解析域名。
解决方法 2
请参阅错误:域名在会话主机 VM 配置中无法解析。
原因 3
虚拟网络(虚拟网络)DNS 配置设置为 “默认”。
解决方法 3
若要解决此问题,请执行以下步骤:
- 打开 Azure 门户,转到“虚拟网络”选项卡。
- 找到虚拟网络,然后选择 DNS 服务器。
- DNS 服务器菜单应出现在屏幕右侧。 在该菜单上,选择“自定义”。
- 确保自定义下列出的 DNS 服务器与域控制器或 Active Directory 域匹配。 如果看不到 DNS 服务器,可以通过在“添加 DNS 服务器”字段中输入其值来添加它。
错误:部署失败...\Unauthorized
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"Unauthorized","message":"{\r\n \"Code\": \"Unauthorized\",\r\n \"Message\": \"The scale operation is not allowed for this subscription in this region. Try selecting different region or scale option.\",\r\n \"Target\": null,\r\n \"Details\": [\r\n {\r\n \"Message\": \"The scale operation is not allowed for this subscription in this region. Try selecting different region or scale option.\"\r\n },\r\n {\r\n \"Code\": \"Unauthorized\"\r\n },\r\n {\r\n \"ErrorEntity\": {\r\n \"ExtendedCode\": \"52020\",\r\n \"MessageTemplate\": \"The scale operation is not allowed for this subscription in this region. Try selecting different region or scale option.\",\r\n \"Parameters\": [\r\n \"default\"\r\n ],\r\n \"Code\": \"Unauthorized\",\r\n \"Message\": \"The scale operation is not allowed for this subscription in this region. Try selecting different region or scale option.\"\r\n }\r\n }\r\n ],\r\n \"Innererror\": null\r\n}"}]}
原因
使用的订阅是一种类型,无法访问客户尝试部署的区域所需的功能。 例如,MSDN、免费或教育订阅可能显示此错误。
解决方法
更改订阅类型或区域,使其可以访问所需的功能。
错误:VMExtensionProvisioningError
原因 1
Azure 虚拟桌面环境的暂时性错误。
原因 2
连接时出现暂时性错误。
解决方法
使用 PowerShell 登录,确认 Azure 虚拟桌面环境正常。 在使用 PowerShell 创建主机池中手动完成 VM 注册。
错误:不允许使用指定的管理员用户名
原始错误示例:
{ …{ "provisioningOperation":
"Create", "provisioningState": "Failed", "timestamp": "2019-01-29T20:53:18.904917Z", "duration": "PT3.0574505S", "trackingId":
"1f460af8-34dd-4c03-9359-9ab249a1a005", "statusCode": "BadRequest", "statusMessage": { "error": { "code": "InvalidParameter", "message":
"The Admin Username specified is not allowed.", "target": "adminUsername" } … }
原因
提供的密码包含禁止的子字符串(管理员、管理员和根)。
解决方法
更新用户名或使用不同用户。
错误:VM 在处理扩展时报告了一项故障
原始错误示例:
{ … "code": "ResourceDeploymentFailure", "message":
"The resource operation completed with terminal provisioning state 'Failed'.", "details": [ { "code":
"VMExtensionProvisioningError", "message": "VM has reported a failure when processing extension 'dscextension'.
Error message: \"DSC Configuration 'SessionHost' completed with error(s). Following are the first few:
PowerShell DSC resource MSFT_ScriptResource failed to execute Set-TargetResource functionality with error message:
One or more errors occurred. The SendConfigurationApply function did not succeed.\"." } ] … }
原因
PowerShell DSC 扩展无法在 VM 上获取管理员访问权限。
解决方法
确认用户名和密码在虚拟机上具有管理访问权限,然后再次运行 Azure 资源管理器 模板。
错误:DeploymentFailed - PowerShell DSC 配置“FirstSessionHost”已完成并出现错误
原始错误示例:
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list
deployment operations for details. 4 Please see https://aka.ms/arm-debug for usage details.",
"details": [
{ "code": "Conflict",
"message": "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\":
\"ResourceDeploymentFailure\",\r\n \"message\": \"The resource
operation completed with terminal provisioning state 'Failed'.\",\r\n
\"details\": [\r\n {\r\n \"code\":
\"VMExtensionProvisioningError\",\r\n \"message\": \"VM has
reported a failure when processing extension 'dscextension'.
Error message: \\\"DSC Configuration 'FirstSessionHost'
completed with error(s). Following are the first few:
PowerShell DSC resource MSFT ScriptResource failed to
execute Set-TargetResource functionality with error message:
One or more errors occurred. The SendConfigurationApply
function did not succeed.\\\".\"\r\n }\r\n ]\r\n }\r\n}" }
原因
PowerShell DSC 扩展无法在 VM 上获取管理员访问权限。
解决方法
确认提供的用户名和密码在虚拟机上具有管理访问权限,然后再次运行 Azure 资源管理器 模板。
错误:DeploymentFailed - InvalidResourceReference
原始错误示例:
{"code":"DeploymentFailed","message":"At least one resource deployment operation
failed. Please list deployment operations for details. Please see https://aka.ms/arm-
debug for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\":
\"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n
\"message\": \"The resource operation completed with terminal provisioning state
'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentFailed\",\r\n
\"message\": \"At least one resource deployment operation failed. Please list
deployment operations for details. Please see https://aka.ms/arm-debug for usage
details.\",\r\n \"details\": [\r\n {\r\n \"code\": \"BadRequest\",\r\n \"message\":
\"{\\r\\n \\\"error\\\": {\\r\\n \\\"code\\\": \\\"InvalidResourceReference\\\",\\r\\n
\\\"message\\\": \\\"Resource /subscriptions/EXAMPLE/resourceGroups/ernani-wvd-
demo/providers/Microsoft.Network/virtualNetworks/wvd-vnet/subnets/default
referenced by resource /subscriptions/EXAMPLE/resourceGroups/ernani-wvd-
demo/providers/Microsoft.Network/networkInterfaces/erd. Please make sure that
the referenced resource exists, and that both resources are in the same
region.\\\",\\r\\n\\\"details\\\": []\\r\\n }\\r\\n}\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"}]}
原因
资源组名称的一部分用于模板创建的某些资源。 由于名称与现有资源匹配,模板可能会从其他组中选择现有资源。
解决方法
运行 Azure 资源管理器 模板以部署会话主机 VM 时,请使订阅资源组名称的前两个字符是唯一的。
错误:DeploymentFailed - InvalidResourceReference
原始错误示例:
{"code":"DeploymentFailed","message":"At least one resource deployment operation
failed. Please list deployment operations for details. Please see https://aka.ms/arm-
debug for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\":
\"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n
\"message\": \"The resource operation completed with terminal provisioning state
'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentFailed\",\r\n
\"message\": \"At least one resource deployment operation failed. Please list
deployment operations for details. Please see https://aka.ms/arm-debug for usage
details.\",\r\n \"details\": [\r\n {\r\n \"code\": \"BadRequest\",\r\n \"message\":
\"{\\r\\n \\\"error\\\": {\\r\\n \\\"code\\\": \\\"InvalidResourceReference\\\",\\r\\n
\\\"message\\\": \\\"Resource /subscriptions/EXAMPLE/resourceGroups/ernani-wvd-
demo/providers/Microsoft.Network/virtualNetworks/wvd-vnet/subnets/default
referenced by resource /subscriptions/EXAMPLE/resourceGroups/DEMO/providers/Microsoft.Network/networkInterfaces
/EXAMPLE was not found. Please make sure that the referenced resource exists, and that both
resources are in the same region.\\\",\\r\\n \\\"details\\\": []\\r\\n }\\r\\n}\"\r\n
}\r\n ]\r\n }\r\n ]\r\n }\r\n\
原因
发生此错误的原因是使用 Azure 资源管理器 模板创建的网络接口卡(NIC)的名称与虚拟网络中已有的另一个 NIC 的名称相同。
解决方法
使用不同的主机前缀。
错误:DeploymentFailed - 下载时出错
原始错误示例:
\\\"The DSC Extension failed to execute: Error downloading
https://catalogartifact.azureedge.net/publicartifacts/rds.wvd-provision-host-pool-
2dec7a4d-006c-4cc0-965a-02bbe438d6ff-prod
/Artifacts/DSC/Configuration.zip after 29 attempts: The remote name could not be
resolved: 'catalogartifact.azureedge.net'.\\nMore information about the failure can
be found in the logs located under
'C:\\\\WindowsAzure\\\\Logs\\\\Plugins\\\\Microsoft.Powershell.DSC\\\\2.77.0.0' on
the VM.\\\"
原因
由于静态路由、防火墙规则或网络安全组(NSG)阻止下载绑定到 Azure 资源管理器模板的 zip 文件,因此会发生此错误。
解决方法
删除阻止静态路由、防火墙规则或 NSG。 (可选)在文本编辑器中打开 Azure 资源管理器模板 json 文件,获取 zip 文件的链接,并将资源下载到允许位置。
错误:删除 VM 后无法从主机池删除会话主机
原因
在删除 VM 之前,需要先删除会话主机。
解决方法
将会话主机置于清空模式下,从会话主机注销所有用户,然后删除主机。
后续步骤
- 有关排查 Azure 虚拟桌面问题和进行升级跟踪的概述,请参阅故障排除概述、反馈和支持。
- 若要排查在 Azure 虚拟桌面中配置虚拟机 (VM) 时遇到的问题,请参阅会话主机虚拟机配置。
- 若要排查与 Azure 虚拟桌面代理或会话连接性相关的问题,请参阅排查常见的 Azure 虚拟桌面代理问题。
- 若要排查 Azure 虚拟桌面客户端连接问题,请参阅 Azure 虚拟桌面服务连接。
- 若要排查远程桌面客户端的问题,请参阅排查远程桌面客户端问题
- 若要排查将 PowerShell 与 Azure 虚拟桌面结合使用时遇到的问题,请参阅 Azure 虚拟桌面 PowerShell。
- 有关该服务的详细信息,请参阅 Azure 虚拟桌面环境。
- 若要完成故障排除教程,请参阅教程:排查资源管理器模板部署问题。
- 有关审核操作的详细信息,请参阅具有资源管理器的审核操作。
- 有关在部署期间确定错误的操作的详细信息,请参阅 “查看部署操作”。