On occasions, when using Sysprep to generalize an image, the device remains Azure AD Joined. This causes that the AVD operation "Add virtual machines to a host pool" fail with error code 2700. This feedback is to request that AVD scripts/code behind this operation can handle this scenario and unjoin the device from Azure AD before it gets domain joined. You can find if a device is joined to Azure AD by checking the attribute AzureAdJoined after executing in the command prompt: dsregcmd.exe /status If it is, we must execute this other command to unjoin it: dsregcmd /leave /verbose /debug This can be either before running Sysprep again and capturing the new image for AVD. Or after the VM failed to get created in the hostpool. (Which requires us to join the VM in the domain and install the AVD agents manually). The following message is seen when this issue happens: 'displayStatus': 'Provisioning failed',
'message': 'ERROR - Failed to join domain='contoso.com', ou='DC=contoso,DC=com', email@example.com', option='NetSetupJoinDomain' (#1 meaning 'User Specified without NetSetupAcctCreate'). Error code 2700' This is the description of error code 2700: This machine is already joined to a cloud domain and cannot be subsequently joined to an Active Directory domain And this is the article we used as reference: https://glennopedia.com/2017/02/08/the-machine-attempted-to-join-the-domain-but-failed-the-error-code-was-2700/
... View more
Start VM on Connect is a great improvement but please allow for calling of Function/Logic Apps, Scripts in Storage Accounts, anything as an intermediate step to powering on the VM. This will allow for changes to the a VM ahead of powering on for the user i.e we might choose to change the SKU of the attached disks on power-off of Personal Desktops (easily done) but we cant change them back when using the native Start VM on Connect functionality. Similar functionality within the native scaling capabilities would also be nice for Pooled Host Pools.
... View more
When adding session hosts to a pool you declare a prefix and the template will append an incrementing number to the end. but this number is not a consistent length due to the lack of leading zeros. and in large host pool, this causes the hosts to not sort properly Current Example of Bad Sort Desired Test-VM-1 Test-VM-1 Test-VM-001 Test-VM-2 Test-VM-10 Test-VM-002 Test-VM-3 Test-VM-11 Test-VM-003 Test-VM-4 Test-VM-12 Test-VM-004 Test-VM-5 Test-VM-2 Test-VM-005 Test-VM-6 Test-VM-3 Test-VM-006 Test-VM-7 Test-VM-4 Test-VM-007 Test-VM-8 Test-VM-5 Test-VM-008 Test-VM-9 Test-VM-6 Test-VM-009 Test-VM-10 Test-VM-7 Test-VM-010 Test-VM-11 Test-VM-8 Test-VM-011 Test-VM-12 Test-VM-9 Test-VM-012
... View more