Skip to content

Latest commit

 

History

History
98 lines (72 loc) · 2.46 KB

Get-AzureRemoteAppVmStaleAdObject.md

File metadata and controls

98 lines (72 loc) · 2.46 KB
external help file ms.assetid online version schema
Microsoft.WindowsAzure.Commands.RemoteApp.dll-Help.xml
EC6AB7E9-BC9F-4FA2-8172-144C9842D74C
2.0.0

Get-AzureRemoteAppVmStaleAdObject

SYNOPSIS

Gets objects in Microsoft Entra ID that are associated with Azure RemoteApp virtual machines that no longer exist.

[!INCLUDE rdfe-banner]

SYNTAX

Get-AzureRemoteAppVmStaleAdObject -CollectionName <String> [-Credential <PSCredential>]
 [-Profile <AzureSMProfile>] [<CommonParameters>]

DESCRIPTION

The Get-AzureRemoteAppVmStaleAdObject cmdlet gets objects in Microsoft Entra ID that are associated with Azure RemoteApp virtual machines that no longer exist. This cmdlet displays the name of each object that it gets.

EXAMPLES

Example 1: Get stale objects for a collection

PS C:\> Clear-AzureRemoteAppVmStaleAdObject -CollectionName "Contoso"

This second command gets the stale objects for the collection named Contoso.

PARAMETERS

-CollectionName

Specifies the name of the Azure RemoteApp collection.

Type: String
Parameter Sets: (All)
Aliases: Name

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Credential

Specifies a credential that has rights to perform this action. To obtain a PSCredential object, use the Get-Credential cmdlet. If you do not specify this parameter, this cmdlet uses the current user credentials.

Type: PSCredential
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type: AzureSMProfile
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

String

NOTES

RELATED LINKS

Clear-AzureRemoteAppVmStaleAdObject