New-RASAVDWorkspace
Creates an Azure Virtual Desktop Workspace.
New-RASAVDWorkspace [-Name] <string> [[-SiteId] <uint>] -Location <string> -ProviderId <uint> -ResourceGroup <string> [-Description <string>] [-FriendlyName <string>] [<CommonParameters>]
New-RASAVDWorkspace [[-SiteId] <uint>] -AzureId <string> -ProviderId <uint> [<CommonParameters>]
Creates a new Azure Virtual Desktop Workspace or imports an existing Azure Virtual Desktop Workspace.
-Name <string> The name of the Azure Virtual Desktop Workspace.
-SiteId <uint> Site ID in which to create the specified Azure Virtual Desktop Workspace.
If the parameter is omitted, the Licensing Server site ID will be used.
-ProviderId <uint> The Provider ID of the Azure Virtual Desktop Provider.
-Description <string> Description of the Azure Virtual Desktop Workspace.
-FriendlyName <string> Friendly name of Azure Virtual Desktop Workspace.
-ResourceGroup <string> Resource Group of the Azure Virtual Desktop Workspace.
-Location <string> Location Name of the Azure Virtual Desktop Workspace.
-AzureId <string> Azure ID of existing Workspace.
<CommonParameters>
-none-
---------- EXAMPLE 1 ----------
New-RASAVDWorkspace -Name "My AVDWorkspace" -ProviderId 1 -ResourceGroup "My Resource Group" -Location "My Location"
Creates a new AVD Workspace within the Licensing Server site.
To create the AVD Workspace within a specific site, specify the -SiteId parameter. ---------- EXAMPLE 2 ----------
New-RASAVDWorkspace -ProviderId 1 -AzureId "subscriptions/b0375739-05f3-859f-ac89-20ef4dcd92cb/resourceGroups/My_Resource_Group/providers/Microsoft.DesktopVirtualization/workspaces/My-Workspace"
Creates an AVD Workspace, from an existing Workspace specified by the AzureId, within the Licensing Server site.