Get-AzAdvisorRecommendation
Gets a list of Azure Advisor recommendations.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Get-AzAdvisorRecommendation
[-Category <String>]
[-ResourceGroupName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzAdvisorRecommendation
[-ResourceId] <String>
[-Category <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Obtains the list of Azure Advisor recommendations. Can be filtered by Category, resource-ID, name etc.
Examples
Example 1
PS C:\> Get-AzAdvisorRecommendation
ResourceId : /subscriptions/{user_subscription}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/xyz/providers/Microsoft.Advisor/recommen
dations/{recommendation-Id}
Category : Performance
ExtendedProperties : {}
Impact : Medium
ImpactedField : Microsoft.Cache/Redis
ImpactedValue : azacache
LastUpdated : 12/5/2018 4:45:55 PM
Metadata : {}
RecommendationTypeId : 905a0026-8010-45b2-ab46-a92c3e4a5131
Risk : None
ShortDescription : Microsoft.Azure.Commands.Advisor.Cmdlets.Models.PsRecommendationBaseShortDescription
SuppressionIds : {}
Name : {recommendation-Id}
Type : Microsoft.Advisor/recommendations
Gets the list of all recommendations.
Example 2
PS C:\> Get-AzAdvisorRecommendation -Category Performance
ResourceId : /subscriptions/{user_subscription}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/xyz/providers/Microsoft.Advisor/recommen
dations/{recommendation-Id}
Category : Performance
ExtendedProperties : {}
Impact : Medium
ImpactedField : Microsoft.Cache/Redis
ImpactedValue : azacache
LastUpdated : 12/5/2018 4:45:55 PM
Metadata : {}
RecommendationTypeId : 905a0026-8010-45b2-ab46-a92c3e4a5131
Risk : None
ShortDescription : Microsoft.Azure.Commands.Advisor.Cmdlets.Models.PsRecommendationBaseShortDescription
SuppressionIds : {}
Name : {recommendation-Id}
Type : Microsoft.Advisor/recommendations
Gets the list of all recommendations filtered by category Performance.
Parameters
-Category
Category of the recommendation
| Type: | String |
| Accepted values: | Cost, HighAvailability, Performance, Security, OperationalExcellence |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-ResourceGroupName
ResourceGroup name of the recommendation
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-ResourceId
ResourceId of the recommendation
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |