# Get-RASAVDVersion.md

## NAME

Get-RASAVDVersion

## SYNOPSIS

The cmdlet retrieves a list or the latest Azure Virtual Desktop Version.

## SYNTAX

**Get-RASAVDVersion** -[Location](#location-string) *(string)* -[Offer](#offer-string) *(string)* -[ProviderId](#providerid-string) *(uint)* -[Publisher](#publisher-string) *(string)* -[RequestType](#RequestType) {All | Latest} -[SKU](#sku-string) *(string)* \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

The cmdlet retrieves a list or the latest Azure Virtual Desktop Version.

## PARAMETERS

## ProviderId (uint)

Provider ID from which to retrieve the Azure Virtual Desktop Stock Keeping Unit information.

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Location (string)

Location of the Azure Virtual Desktop Provider.

```
        Required?                    true

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Publisher (string)

The Azure Virtual Desktop Publisher.

```
        Required?                    true

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Offer (string)

The Azure Virtual Desktop Offer.

```
        Required?                    true

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SKU (string)

The Azure Virtual Desktop SKU.

```
        Required?                    true

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RequestType ([RequestType](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/requesttype))

Whether to retrieve a list of all available versions or just the latest version.

Possible values: All, Latest

```
        Required?                    true

        Position?                    named

        Default value                0

        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

[AVDMarketplaceVersion](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/avdmarketplaceversion)

## EXAMPLES

\*\*---------- EXAMPLE 1 ----------

Get-RASAVDVersion -ProviderId 2 -Location "westeurope" -Publisher "my-publisher" -Offer "my-offer" -SKU "my-sku" -RequestType All

Retrieves a list of Versions which fall under the Provider, Location, Publisher, Offer and SKU specified.\
\*\*---------- EXAMPLE 2 ----------

Get-RASAVDVersion -ProviderId 2 -Location "westeurope" -Publisher "my-publisher" -Offer "my-offer" -SKU "my-sku" -RequestType Latest

Retrieves only the latest Version which falls under the Provider, Location, Publisher, Offer and SKU specified.

## RELATED LINKS

-none-
