# New-RASAVDWorkspace

## NAME

New-RASAVDWorkspace

## SYNOPSIS

Creates an Azure Virtual Desktop Workspace.

## SYNTAX

**New-RASAVDWorkspace** \[-[Name](#Name)] _\<string>_ \[\[-[SiteId](#SiteId)] _\<uint>_] -[Location](#Location) _\<string>_ -[ProviderId](#ProviderId) _\<uint>_ -[ResourceGroup](#ResourceGroup) _\<string>_ \[-[Description](#Description) _\<string>_] \[-[FriendlyName](#FriendlyName) _\<string>_] \[_<_[_CommonParameters_](#CommonParameters)_>_]

**New-RASAVDWorkspace** \[\[-[SiteId](#SiteId)] _\<uint>_] -[AzureId](#AzureId) _\<string>_ -[ProviderId](#ProviderId) _\<uint>_ \[_<_[_CommonParameters_](#CommonParameters)_>_]

## DESCRIPTION

Creates a new Azure Virtual Desktop Workspace or imports an existing Azure Virtual Desktop Workspace.

## PARAMETERS

-**Name \<string>**\
The name of the Azure Virtual Desktop Workspace.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**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.

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**ProviderId \<uint>**\
The Provider ID of the Azure Virtual Desktop Provider.

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Description \<string>**\
Description of the Azure Virtual Desktop Workspace.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**FriendlyName \<string>**\
Friendly name of Azure Virtual Desktop Workspace.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**ResourceGroup \<string>**\
Resource Group of the Azure Virtual Desktop Workspace.

```
        Required?                    true

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Location \<string>**\
Location Name of the Azure Virtual Desktop Workspace.

```
        Required?                    true

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AzureId \<string>**\
Azure ID of existing Workspace.

```
        Required?                    true

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

\<CommonParameters>

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation. 
```

## INPUTS

-none-

## OUTPUTS

[AVDWorkspace](../classes-and-enumerations/avdworkspace)

## EXAMPLES

**---------- 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.\
&#xNAN;**---------- 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.

## RELATED LINKS

* [Get-RASAVDWorkspace](get-rasavdworkspace)
* [Remove-RASAVDWorkspace](remove-rasavdworkspace)
* [Set-RASAVDWorkspace](set-rasavdworkspace)
