Get-AzSmartGroup
Gets Smart Groups information
Syntax
Get-AzSmartGroup
[-SortBy <String>]
[-SortOrder <String>]
[-TimeRange <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSmartGroup
-SmartGroupId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzSmartGroup cmdlet gets smart groups information.
Examples
Example 1
Get-AzSmartGroup -TimeRange "1h"
List all smart groups formed in last 1 hour. Use Format-List to get the complete details of each smart group in list.
Example 2
Get-AzSmartGroup -SmartGroupId "afbf1b3a-0a6c-4f19-9c9b-644ccd7b1529" | Format-List
Get Smart Group details by Id (GUID) or Resource Id (Complete ARM Id)
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SmartGroupId
Unique Identifier of SmartGroup / ResourceId of SmartGroup.
Type: | String |
Aliases: | ResourceId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SortBy
Alert property to use while sorting
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SortOrder
Sort Order
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TimeRange
Supported time range values - 1h, 1d, 7d, 30d (Default is 1d)
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.