Repository navigation
Get CostAdvisor
Retrieves Azure cost advisor recommendations for one or more subscriptions.
Get-CostAdvisor [[-SubscriptionName] <String[]>] [[-Impact] <String[]>] [-Raw]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Invokes the Get-AzAdvisorRecommendation cmdlet against one or more subscriptions and returns recommendations categorised as "Cost".
Get-CostAdvisor
Returns the current cost advisor recommendations for all subscriptions in the current Azure context.
Get-CostAdvisor -SubscriptionName 'MySubscriptionA','MySubscriptionB'
Returns the current cost advisor recommendations for the specified subscription names.
Get-CostAdvisor -Impact Medium,High
Returns the current cost advisor recommendations that match the specified impact levels.
The name or name/s of the Subscriptions to query. If not specified all subscriptions available in the current context will be used.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseUse to filter the results to one or more impact categories: High, Medium or Low.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSwitch: Include the raw advisor recommendation data as a property on the returned object.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{Fill ProgressAction Description}}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).