<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2527 " id="quads-ad2527" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
<h2></h2>
<h2>Azure Windows Virtual Desktop</h2>
<p>WVD or Azure Virtual Desktop has become popular these days during the COVID-19 Virus where everyone started working from home. Companies wanting to adapt to the situation started deploying WVD and so I started to test this feature to keep up with the technology around.</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2526 " id="quads-ad2526" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2525 " id="quads-ad2525" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2531 " id="quads-ad2531" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<h2>Deployment</h2>
<p>I tried using different scenarios during the deployment of Azure WVD, I am going to list them down and explain where did I get my problem exactly.</p>
<p>1- Deploying using Azure Gallery VM.</p>
<p>2- Deploying using a VM Image (This scenario) </p>
<p>3- Deploying using uploaded VM. </p>
<p>My first deployment was using Azure Gallery and in that deployment the machine was deployed without an issue although the domain error has occurred. </p>
<p>In the second Scenario, When you try to use the Github link that has the ARM template </p>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image001-1.png"><img width="1009" height="287" title="clip_image001" style="display: inline; background-image: none;" alt="clip_image001" src="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image001_thumb-1.png" border="0"></a> 

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2523 " id="quads-ad2523" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 
</p>
<h2>Error 1</h2>
<p>{</p>
<p>&#8220;status&#8221;: &#8220;Failed&#8221;,</p>
<p>&#8220;error&#8221;: {</p>
<p>&#8220;code&#8221;: &#8220;ResourceDeploymentFailure&#8221;,</p>
<p>&#8220;message&#8221;: &#8220;The resource operation completed with terminal provisioning state &#8216;Failed&#8217;.&#8221;,</p>
<p>&#8220;details&#8221;: [</p>
<p> ; ; ; ; ; ; ; ; ; ; ; {</p>
<p>&#8220;code&#8221;: &#8220;VMExtensionProvisioningError&#8221;,</p>
<p>&#8220;message&#8221;: &#8220;VM has reported a failure when processing extension &#8216;joindomain&#8217;. Error message: \&#8221;Exception(s) occured while joining Domain &#8216;moh10ly.local&#8217;\&#8221;\r\n\r\nMore information on troubleshooting is available at <a href="https://aka.ms/vmextensionwindowstroubleshoot">https://aka.ms/vmextensionwindowstroubleshoot</a> &#8220;</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2530 " id="quads-ad2530" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<p> ; ; ; ; ; ; ; ; ; ; ; }</p>
<p> ; ; ; ; ; ; ; ]</p>
<p> ; ; ; }</p>
<p>}</p>
<h2>Error 2</h2>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image0016-1.png"><img width="1028" height="412" title="clip_image001[6]" style="display: inline; background-image: none;" alt="clip_image001[6]" src="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image0016_thumb-1.png" border="0"></a></p>
<p>{&#8220;code&#8221;:&#8221;DeploymentFailed&#8221;,&#8221;message&#8221;:&#8221;At least one resource deployment operation failed. Please list deployment operations for details. Please see <a href="https://aka.ms/DeployOperations">https://aka.ms/DeployOperations</a> for usage details.&#8221;,&#8221;details&#8221;:[{&#8220;code&#8221;:&#8221;Conflict&#8221;,&#8221;message&#8221;:&#8221;{\r\n \&#8221;status\&#8221;: \&#8221;Failed\&#8221;,\r\n \&#8221;error\&#8221;: {\r\n \&#8221;code\&#8221;: \&#8221;ResourceDeploymentFailure\&#8221;,\r\n \&#8221;message\&#8221;: \&#8221;The resource operation completed with terminal provisioning state &#8216;Failed&#8217;.\&#8221;,\r\n \&#8221;details\&#8221;: [\r\n {\r\n \&#8221;code\&#8221;: \&#8221;VMExtensionProvisioningError\&#8221;,\r\n \&#8221;message\&#8221;: \&#8221;VM has reported a failure when processing extension &#8216;dscextension&#8217;. Error message: <a href="file:///%22DSC">\\\&#8221;DSC</a> Configuration &#8216;CreateHostPoolAndRegisterSessionHost&#8217; completed with error(s). Following are the first few: PowerShell DSC resource MSFT_ScriptResource failed to execute Set-TargetResource functionality with error message: User is not authorized to query the management service.\\nActivityId: ef602cd9-7efd-474d-bc70-ccfd340ecb08\\nPowershell commands to diagnose the failure:\\nGet-RdsDiagnosticActivities -ActivityId ef602cd9-7efd-474d-bc70-ccfd340ecb08\\n PowerShell DSC resource MSFT_ScriptResource failed to execute Set-TargetResource functionality with error message: WVD-Host-Pool01 Hostpool does not exist in CagriandMoh10ly Tenant The SendConfigurationApply function did not succeed.\\\&#8221;\\r\\n\\r\\nMore information on troubleshooting is available at <a href="https://aka.ms/VMExtensionDSCWindowsTroubleshoot">https://aka.ms/VMExtensionDSCWindowsTroubleshoot</a> \&#8221;\r\n }\r\n ]\r\n }\r\n}&#8221;}]}</p>
<h2>Solution:</h2>
<h3>Original Setting</h3>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image00110.png"><img width="765" height="288" title="clip_image001[10]" style="display: inline; background-image: none;" alt="clip_image001[10]" src="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image00110_thumb.png" border="0"></a></p>
<h3>Change To</h3>
<ol>
<li>Domain to join needs to reflect your Active Directory domain not AD Connect Public Domain.</li>
<li>The Credentials must be for a domain user that has the privileges&#8217; to join any PC to the domain</li>
</ol>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image0018.png"><img width="761" height="160" title="clip_image001[8]" style="display: inline; background-image: none;" alt="clip_image001[8]" src="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image0018_thumb.png" border="0"></a></p>
<p>The Tenant Admin UPN must reflect a user who is allowed to Create a WVD tenant </p>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2020/04/image-15.png"><img width="1028" height="189" title="image" style="display: inline; background-image: none;" alt="image" src="https://www.moh10ly.com/wp-content/uploads/2020/04/image_thumb-15.png" border="0"></a></p>
<p>After this, In the Tenant Admin UPN or Application ID use one of the Tenant creator account and you’ll get the below result. </p>
<p>Don’t forget to change the Virtual Network’s DNS to point to your DNS Server whether it is on Azure or On-premises network which must have VPN to access if there.</p>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image00112.png"><img width="1028" height="354" title="clip_image001[12]" style="margin: 0px; display: inline; background-image: none;" alt="clip_image001[12]" src="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image00112_thumb.png" border="0"></a></p>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image00114.png"><img width="1028" height="326" title="clip_image001[14]" style="margin: 0px; display: inline; background-image: none;" alt="clip_image001[14]" src="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image00114_thumb.png" border="0"></a></p>
<p><a href="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image002.png"><img width="1028" height="194" title="clip_image002" style="margin: 0px; display: inline; background-image: none;" alt="clip_image002" src="https://www.moh10ly.com/wp-content/uploads/2020/04/clip_image002_thumb.png" border="0"></a></p>
<p><a title="https://docs.microsoft.com/en-us/azure/virtual-desktop/tenant-setup-azure-active-directory" href="https://docs.microsoft.com/en-us/azure/virtual-desktop/tenant-setup-azure-active-directory">https://docs.microsoft.com/en-us/azure/virtual-desktop/tenant-setup-azure-active-directory</a></p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2529 " id="quads-ad2529" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<p><a title="https://docs.microsoft.com/en-us/azure/virtual-desktop/troubleshoot-set-up-issues" href="https://docs.microsoft.com/en-us/azure/virtual-desktop/troubleshoot-set-up-issues">https://docs.microsoft.com/en-us/azure/virtual-desktop/troubleshoot-set-up-issues</a></p>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2524 " id="quads-ad2524" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>


Reset and manage your Active Directory users' Passwords Active Directory is one of the most…
Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…
If you're using a Proxy server in your firewall or in your network and have…
Story:I got some clients that have reported some of their users being locked out and…
Delegate Permissions This is a code that I have wrote recently to check if an…
Story: I got a request from a client who constantly gets CVs and have to…