إنشاء تجمع المضيف

هام

ينطبق هذا المحتوى على Azure Virtual Desktop مع كائنات Azure Resource Manager Azure Virtual Desktop. إذا كنت تستخدم Azure Virtual Desktop (كلاسيكي) دون كائنات Azure Resource Manager، فراجع هذه المقالة.

تتناول هذه المقالة المشكلات أثناء الإعداد الأولي لمستأجر Azure Virtual Desktop والبنية الأساسية لتجمع مضيف جلسة العمل ذات الصلة.

تقديم ملاحظات

تفضل بزيارة مجتمع Azure Virtual Desktop التقني لمناقشة خدمة Azure Virtual Desktop مع فريق المنتج وأعضاء المجتمع النشطين.

الحصول على صورة Windows 10 Enterprise متعددة الجلسات

لاستخدام صورة Windows 10 Enterprise متعددة الجلسات، انتقل إلى Azure Marketplace، وحدد بدء الاستخدام>Microsoft Windows 10>والإصدار 1809 متعدد الجلسات Windows 10 Enterprise.

مشكلات في استخدام مدخل Azure لإنشاء تجمعات مضيفة

خطأ: يظهر "إنشاء حساب مجاني" عند الوصول إلى الخدمة

An image showing the Azure portal displaying the

السبب: لا توجد اشتراكات نشطة في الحساب الذي سجلت الدخول إلى Azure باستخدامه، أو أن الحساب ليس لديه أذونات لعرض الاشتراكات.

إصلاح: سجل الدخول إلى الاشتراك حيث ستقوم بنشر الأجهزة الظاهرية لمضيف الجلسة (VMs) باستخدام حساب لديه حق الوصول على مستوى المساهم على الأقل.

خطأ: "تجاوز حد الحصة"

إذا تجاوزت العملية حد الحصة النسبية، فيمكنك القيام بأحد الأمور التالية:

  • قم بإنشاء تجمع مضيف جديد بنفس المعلمات ولكن عدد أقل من الأجهزة الظاهرية ونوى VM.

  • افتح الارتباط الذي تراه في حقل statusMessage في مستعرض لإرسال طلب لزيادة الحصة النسبية لاشتراكك في Azure لوحدة SKU المحددة للجهاز الظاهري.

خطأ: لا يمكن رؤية تعيينات المستخدمين في مجموعات التطبيقات.

السبب: يحدث هذا الخطأ عادة بعد نقل الاشتراك من مستأجر Azure Active Directory إلى آخر. إذا كانت مهامك القديمة لا تزال مرتبطة بمستأجر Azure Active Directory السابق، فستفقد بوابة Azure الإلكترونية تعقبها.

إصلاح: ستحتاج إلى إعادة تعيين المستخدمين إلى مجموعات التطبيقات.

لا أرى الولايات المتحدة إلا عند تعيين الموقع لكائنات الخدمة الخاصة بي

السبب: لا يدعم Azure حاليا هذه المنطقة لخدمة Azure Virtual Desktop. للتعرف على المناطق الجغرافية التي ندعمها، راجع مواقع البيانات. إذا كان Azure Virtual Desktop يدعم الموقع ولكنه لا يزال لا يظهر عند محاولة تحديد موقع، فهذا يعني أن موفر الموارد لم يتم تحديثه بعد.

إصلاح: للحصول على أحدث قائمة بالمناطق، أعد تسجيل موفر الموارد:

  1. انتقل إلى الاشتراكات وحدد الاشتراك ذي الصلة.
  2. حدد موفر الموارد.
  3. حدد Microsoft.DesktopVirtualization، ثم حدد إعادة التسجيل من قائمة الإجراءات.

عند إعادة تسجيل موفر الموارد، لن ترى أي ملاحظات محددة لواجهة المستخدم أو حالات تحديث. لن تتداخل عملية إعادة التسجيل أيضا مع بيئاتك الحالية.

أخطاء قالب Azure Resource Manager

اتبع هذه الإرشادات لاستكشاف أخطاء عمليات النشر غير الناجحة لقوالب Azure Resource Manager وPowerShell DSC وإصلاحها.

  1. راجع الأخطاء في النشر باستخدام عرض عمليات النشر باستخدام Azure Resource Manager.
  2. إذا لم تكن هناك أخطاء في النشر، فقم بمراجعة الأخطاء في سجل النشاط باستخدام عرض سجلات النشاط لتدقيق الإجراءات على الموارد.
  3. بمجرد تحديد الخطأ، استخدم رسالة الخطأ والموارد الموجودة في استكشاف أخطاء نشر Azure الشائعة وإصلاحها باستخدام Azure Resource Manager لمعالجة المشكلة.
  4. احذف أي موارد تم إنشاؤها أثناء النشر السابق وأعد محاولة نشر القالب مرة أخرى.

خطأ: فشل النشر الخاص بك....<اسم> المضيف/المجال المجاور

Your Deployment Failed screenshot.

مثال على الخطأ الخام:

 {"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: بيانات الاعتماد المقدمة للانضمام إلى الأجهزة الظاهرية إلى المجال غير صحيحة.

إصلاح 1: راجع الخطأ "بيانات اعتماد غير صحيحة" لعدم انضمام الأجهزة الظاهرية إلى المجال في تكوين الجهاز الظاهري لمضيف الجلسة.

السبب 2: اسم النطاق لا يحل.

إصلاح 2: راجع خطأ: لا يتم حل اسم المجال في تكوين الجهاز الظاهري لمضيف الجلسة.

السبب 3: يتم تعيين تكوين DNS للشبكة الظاهرية (VNET) إلى افتراضي.

لإصلاح ذلك، قم بالأمور التالية:

  1. افتح مدخل Azure وانتقل إلى علامة التبويب الشبكات الظاهرية .
  2. ابحث عن VNET، ثم حدد خوادم DNS.
  3. يجب أن تظهر قائمة خوادم DNS على الجانب الأيمن من الشاشة. في هذه القائمة، حدد مخصص.
  4. تأكد من أن خوادم DNS المدرجة ضمن مخصص تطابق وحدة تحكم المجال أو مجال Active Directory. إذا كنت لا ترى خادم DNS، فيمكنك إضافته عن طريق إدخال قيمته في حقل إضافة خادم DNS .

خطأ: فشل النشر الخاص بك...\غير مصرح به

{"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 أو Free أو Education هذا الخطأ.

ضبط: قم بتغيير نوع الاشتراك أو المنطقة إلى منطقة يمكنها الوصول إلى الميزات المطلوبة.

خطأ: VMExtensionProvisioningError

Screenshot of Your Deployment Failed with terminal provisioning state failed.

السبب 1: خطأ عابر في بيئة سطح المكتب الظاهري Azure.

السبب 2: خطأ عابر مع الاتصال.

ضبط: تأكد من أن بيئة سطح المكتب الظاهري Azure سليمة عن طريق تسجيل الدخول باستخدام PowerShell. قم بإنهاء تسجيل الجهاز الظاهري يدويا في إنشاء تجمع مضيف باستخدام PowerShell.

خطأ: اسم مستخدم المسؤول المحدد غير مسموح به

Screenshot of your deployment failed in which an admin specified isn't allowed.

مثال على الخطأ الخام:

 { …{ "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" } … }

سبب: تحتوي كلمة المرور المقدمة على سلاسل فرعية محظورة (المسؤول ، المسؤول ، الجذر).

ضبط: تحديث اسم المستخدم أو استخدام مستخدمين مختلفين.

خطأ: أبلغ الجهاز الظاهري عن فشل عند معالجة الملحق

Screenshot of the resource operation completed with terminal provisioning state in Your Deployment Failed.

مثال على الخطأ الخام:

{ … "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 من الحصول على وصول المسؤول على الجهاز الظاهري.

ضبط: تأكد من أن اسم المستخدم وكلمة المرور لهما حق الوصول الإداري على الجهاز الظاهري وتشغيل قالب Azure Resource Manager مرة أخرى.

خطأ: DeploymentFailed – اكتمال تكوين PowerShell DSC 'FirstSessionHost' مع خطأ (أخطاء)

Screenshot of deployment fail with PowerShell DSC Configuration 'FirstSessionHost' completed with Error(s).

مثال على الخطأ الخام:

{
    "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 من الحصول على وصول المسؤول على الجهاز الظاهري.

ضبط: تأكد من أن اسم المستخدم وكلمة المرور المقدمين لهما حق الوصول الإداري على الجهاز الظاهري وتشغيل قالب Azure Resource Manager مرة أخرى.

خطأ: 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 Resource Manager لنشر الأجهزة الظاهرية لمضيف جلسة العمل، اجعل أول حرفين فريدين لاسم مجموعة موارد الاشتراك.

خطأ: 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\

سبب: يرجع هذا الخطأ إلى أن NIC الذي تم إنشاؤه باستخدام قالب Azure Resource Manager له نفس اسم NIC آخر موجود بالفعل في VNET.

ضبط: استخدم بادئة مضيف مختلفة.

خطأ: 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 Resource Manager.

ضبط: قم بإزالة حظر المسار الثابت أو قاعدة جدار الحماية أو NSG. اختياريا، افتح ملف json قالب Azure Resource Manager في محرر نصوص، وخذ الارتباط إلى ملف مضغوط، وقم بتنزيل المورد إلى موقع مسموح به.

خطأ: لا يمكن حذف مضيف جلسة عمل من تجمع المضيف بعد حذف الجهاز الظاهري

سبب: تحتاج إلى حذف مضيف الجلسة قبل حذف الجهاز الظاهري.

ضبط: ضع مضيف الجلسة في وضع الاستنزاف، وسجل خروج جميع المستخدمين من مضيف الجلسة، ثم احذف المضيف.

الخطوات التالية