external help file | ms.assetid | online version | schema |
---|---|---|---|
Microsoft.WindowsAzure.Commands.RemoteApp.dll-Help.xml |
EC6AB7E9-BC9F-4FA2-8172-144C9842D74C |
2.0.0 |
Gets objects in Microsoft Entra ID that are associated with Azure RemoteApp virtual machines that no longer exist.
[!INCLUDE rdfe-banner]
Get-AzureRemoteAppVmStaleAdObject -CollectionName <String> [-Credential <PSCredential>]
[-Profile <AzureSMProfile>] [<CommonParameters>]
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.
PS C:\> Clear-AzureRemoteAppVmStaleAdObject -CollectionName "Contoso"
This second command gets the stale objects for the collection named Contoso.
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
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
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
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).