Azure / Azure/azure-powershell
Cmdlet [New-AzWvdSessionHostConfiguration] not included in Az.DesktopVirtualization
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
Following the Microsoft KB article for creating a host pool with a session host configuration ([here](https://learn.microsoft.com/en-us/azure/virtual-desktop/deploy-azure-virtual-desktop?tabs=powershell-session-host-configuration%2Cportal-standard%2Cportal&pivots=host-pool-session-host-configuration#create-a-host-pool-with-a-session-host-configuration)) makes reference to using the command `New-AzWvdSessionHostConfiguration` but the `5.4.1` module does not include this cmdlet.
### Issue script & Debug output
```PowerShell
PS C:\> Import-Module Az.DesktopVirtualization
PS C:\> New-AzWvdSessionHostConfiguration
New-AzWvdSessionHostConfiguration: The term 'New-AzWvdSessionHostConfiguration' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
```
### Environment data
```PowerShell
PS C:\> $PSVersionTable
Name Value
---- -----
PSVersion 7.4.6
PSEdition Core
GitCommitId 7.4.6
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```
### Module versions
```PowerShell
PS C:\> Get-Module Az*
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 4.0.2 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script 5.4.1 Az.DesktopVirtualization {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdAppAttachPackage, Get-AzWvdApplication…}
```
### Error output
```PowerShell
PS C:\> New-AzWvdSessionHostConfiguration
New-AzWvdSessionHostConfiguration: The term 'New-AzWvdSessionHostConfiguration' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
```
Contributor guide
Assessment
This issue has not been assessed yet.