WVD Creation

Rising Flight 3,731 Reputation points
2021-05-24T09:18:01.473+00:00

Hi All

We use github tool (WVD Support Tool) to provision WVD's. If a WVD is provisioned and if the user is not logged in at all, this tool will not show whether wvd is provisioned or not, only when user logins to the wvd it shows the wvd status.

How can i know if the wvd is provisioned for a specific user. if the i use the below syntax i can see for all the WVD's

Get-RdsSessionHost -TenantName mytenant -HostPoolName MYPOOL-5

How can i provision a WVD for a specific user(user1@Company portal .com) in the HostPool MYPOOL-5, after provisioning how can i know the status of this wvd.

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,362 questions
{count} votes

Accepted answer
  1. prmanhas-MSFT 17,886 Reputation points Microsoft Employee
    2021-05-25T06:09:21.89+00:00

    @Rising Flight Apologies for the delay in response and all the inconvenience caused because of the issue.

    Try the below to check the WVD host assigned /provisioned for a specific user

    Get-AzWvdSessionHost -HostPoolName <hostpoolname> -ResourceGroupName <RGName> | Where-Object {$_.AssignedUser -eq "user@domain.com"}  
    

    Also in order to create wvd through Powershell you can refer to this doc.

    I can see that you have posted your query here as well. Do let me know in case of any further queries.

    Hope it helps!!!

    Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Rising Flight 3,731 Reputation points
    2021-05-25T12:50:42.68+00:00

    I am getting the below error

    Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"

    Get-AzWvdSessionHost -HostPoolName "MYPOOL-5" -ResourceGroupName "my-rg01" | Where-Object {$_.AssignedUser -eq "user1@Company portal .com"}

    Get-AzWvdSessionHost : The term 'Get-AzWvdSessionHost' is not recognized as the name of a cmdlet, function, script
    file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
    and try again.
    At line:1 char:1

    • Get-AzWvdSessionHost -HostPoolName MYPOOL-5 -ResourceGroupName "my- ...
    • ~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : ObjectNotFound: (Get-AzWvdSessionHost:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException