Enable-AzAdvisorRecommendation
Enables Azure Advisor recommendation(s).
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Enable-AzAdvisorRecommendation
[-RecommendationName] <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Enable-AzAdvisorRecommendation
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Enable-AzAdvisorRecommendation
[-InputObject] <PsAzureAdvisorResourceRecommendationBase>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
This cmdlet enables a previously suppressed recommendation. You can remove all the suppressions associated with a recommendation as well.
Examples
Example 1
PS C:\> Enable-AzAdvisorRecommendation -ResourceId c3621337-f131-4bf4-92f2-3fb9c8cfa0d8
ResourceId : subscriptions/{user_subscription}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/xyz/providers/Microsoft.Advisor/recommendations/c3621337-f131-4bf4-92f2-3fb9c8cfa0d8
Category : Performance
ExtendedProperties : {}
Impact : Medium
ImpactedField : Microsoft.Cache/Redis
ImpactedValue : xyz
LastUpdated : 12/4/2018 12:06:47 AM
Metadata : {}
RecommendationTypeId : 905a0026-8010-45b2-ab46-a92c3e4a5131
Risk : None
ShortDescription : problem : Improve the performance and reliability of your Redis Cache instance
solution : Follow Redis cache Advisor recommendations
SuppressionIds : {}
Name : c3621337-f131-4bf4-92f2-3fb9c8cfa0d8
Type : Microsoft.Advisor/recommendations
Removes all the suppressions for the given recommendation with name "recommendation_id".
Example 2
PS C:\> Get-AzAdvisorRecommendation -ResourceId "/subscriptions/{user_subscription}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/xyz"
| Enable-AzAdvisorRecommendation
ResourceId : subscriptions/{user_subscription}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/xyz/providers/Microsoft.Advisor/recommendations/{recommendation_id}
Category : Performance
ExtendedProperties : {}
Impact : Medium
ImpactedField : Microsoft.Cache/Redis
ImpactedValue : xyz
LastUpdated : 12/4/2018 12:06:47 AM
Metadata : {}
RecommendationTypeId : 905a0026-8010-45b2-ab46-a92c3e4a5131
Risk : None
ShortDescription : problem : Improve the performance and reliability of your Redis Cache instance
solution : Follow Redis cache Advisor recommendations
SuppressionIds : {}
Name : {recommendation_id}
Type : Microsoft.Advisor/recommendations
Removes all the suppressions for the given recommendation(s) passed from the pipeline.
Parameters
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
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 |
The powershell object type PsAzureAdvisorResourceRecommendationBase returned by Get-AzAdvisorRecommendation call.
| Type: | PsAzureAdvisorResourceRecommendationBase |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
ResourceName of the recommendation.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Id of the recommendation to be suppressed.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
PsAzureAdvisorResourceRecommendationBase