Microsoft.Advisor (stable:2025-01-01)

2025/07/03 • 2 updated methods

RecommendationMetadata_List (updated)
Description Gets the list of metadata entities.
Reference Link ¶

⚶ Changes

{
  "#id": "RecommendationMetadata_List",
  "$parameters": [
    {
      "#name": "$filter",
      "Description": {
        "new": "The filter to apply to the recommendation metadata.
Filter can be applied to properties ['[recommendationCategory](#category)', '[recommendationSubCategory](#recommendationSubCategory)', 'RetirementDate'] with operators ['eq', 'and', 'le', 'ge'].

\u26a0 **Note:** `recommendationControl` is a legacy filter property and will be deprecated in the future. Please use `recommendationSubCategory` for filtering recommendation subcategory.

Valid options for recommendationSubCategory: ['BusinessContinuity', 'DisasterRecovery', 'HighAvailability', 'MonitoringAndAlerting', 'Other', 'Personalized', 'PrioritizedRecommendations', 'Scalability', 'ServiceUpgradeAndRetirement', 'Validation']

Example:
- $filter=recommendationCategory eq 'HighAvailability' and recommendationSubCategory eq 'ServiceUpgradeAndRetirement' and retirementDate ge '2024-01-01' and retirementDate le '2028-01-01'", "old": "The filter to apply to the recommendation metadata.
Filter can be applied to properties ['[Category](#category)', '[Control](#control)', 'RetirementDate'] with operators ['eq', 'and', 'le', 'ge'].
Example:
- $filter=recommendationCategory eq 'HighAvailability' and recommendationControl eq 'ServiceUpgradeAndRetirement' and retirementDate ge '2024-01-01' and retirementDate le '2028-01-01'" } } ] }

⚼ Request

GET:  /providers/Microsoft.Advisor/metadata
{
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
type: string ,
name: string ,
properties:
{
displayName: string ,
dependsOn:
[
string ,
]
,
applicableScenarios:
[
string ,
]
,
supportedValues:
[
{
id: string ,
displayName: string ,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
message: string ,
code: string ,
}
,
}
Recommendations_List (updated)
Description Obtains cached recommendations for a subscription. The recommendations are generated or computed by invoking generateRecommendations.
Reference Link ¶

⚶ Changes

{
  "#id": "Recommendations_List",
  "$parameters": [
    {
      "#name": "$filter",
      "Description": {
        "new": "The filter to apply to the recommendations.
Filter can be applied to properties ['ResourceId', 'ResourceGroup', 'RecommendationTypeGuid', '[Category](#category)', 'SubCategory', 'RetirementDate'] with operators ['eq', 'and', 'or', 'lt', 'gt', 'le', 'ge'].

\u26a0 **Note:** `Control` is a legacy filter property and will be deprecated in the future. Please use `SubCategory` for filtering recommendation subcategory.

Valid options for SubCategory:
['BusinessContinuity', 'DisasterRecovery', 'HighAvailability', 'MonitoringAndAlerting', 'Other', 'Personalized', 'PrioritizedRecommendations', 'Scalability', 'ServiceUpgradeAndRetirement', 'Validation']

Example:
- $filter=Category eq 'Cost' and ResourceGroup eq 'MyResourceGroup'
-$filter=SubCategory eq 'ServiceUpgradeAndRetirement' and RetirementDate le '2024-01-01' and RetirementDate ge '2028-01-01'", "old": "The filter to apply to the recommendations.
Filter can be applied to properties ['ResourceId', 'ResourceGroup', 'RecommendationTypeGuid', '[Category](#category)', '[Control](#control)', 'RetirementDate'] with operators ['eq', 'and', 'or', 'lt', 'gt', 'le', 'ge'].
Example:
- $filter=Category eq 'Cost' and ResourceGroup eq 'MyResourceGroup'
-$filter=Control eq 'ServiceUpgradeAndRetirement' and RetirementDate le '2024-01-01' and RetirementDate ge '2028-01-01'" } } ] }

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/recommendations
{
subscriptionId: string ,
api-version: string ,
$filter: string ,
$top: integer ,
$skipToken: string ,
}

⚐ Response (200)

{
nextLink: string ,
value:
[
{
properties:
{
category: enum ,
control: enum ,
impact: enum ,
impactedField: string ,
impactedValue: string ,
lastUpdated: string ,
metadata: object ,
recommendationTypeId: string ,
risk: enum ,
shortDescription:
{
problem: string ,
solution: string ,
}
,
suppressionIds:
[
string ,
]
,
extendedProperties: object ,
resourceMetadata:
{
resourceId: string ,
source: string ,
action: object ,
singular: string ,
plural: string ,
}
,
description: string ,
label: string ,
learnMoreLink: string ,
potentialBenefits: string ,
actions:
[
object ,
]
,
remediation: object ,
exposedMetadataProperties: object ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
message: string ,
code: string ,
}
,
}