> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasavdhost.md).

# Get-RASAVDHost

## NAME

Get-RASAVDHost

## SYNOPSIS

The cmdlet returns an object of type Azure Virtual Desktop Host properties.

## SYNTAX

**Get-RASAVDHost** \[\[-[SiteId](#siteid-string)]\*\* *(uint)*] \[[ProviderId](#providerid-string) *(uint)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Get-RASAVDHost** \[[VMId](#vmid-string)] *(string)*\*\* \[\[-[SiteId](#siteid-string)] *(uint)*] -[ProviderId](#providerid-string) *(uint)* \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

To see the complete list of object properties, use the Format-List cmdlet (see examples).

The result set contains only the major properties of a group; it does not include the complete list of settings supported in RAS.

## PARAMETERS

## VMId (string)

The ID of the VM for which to retrieve the information.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ProviderId (uint)

Provider Id from which to retrieve the AVD Host.

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SiteId (uint)

Site ID from which to retrieve the AVD Host.

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
```

(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

[AVDHost](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/avdhost.md)

## EXAMPLES

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

Get-RASAVDHost -VMID "42311235-09c5-ca15-337d-b9723015edf0" -ProviderID 1 | Format-List

Retrieves information about the AVD Host properties specified by the VMId and ProviderId.

To retrieve the info from a specific site, specify the -SiteId parameter.

The Format-List cmdlet formats the display output to include all available group properties.\
\&#xNAN;**---------- EXAMPLE 2 ----------**

Get-RASAVDHost -ProviderID 1

Retrieves all the AVD Hosts found within the Provider with Id 1.

## RELATED LINKS

* [New-RASAVDHost](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/new-rasavdhost.md)
* [Remove-RASAVDHost](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/remove-rasavdhost.md)
* [Invoke-RASAVDHost](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/invoke-rasavdhost.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasavdhost.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
