AdvisorRecommendationCollection.GetAll Method

Definition

Obtains cached recommendations for a subscription. The recommendations are generated or computed by invoking generateRecommendations.

  • Request Path. : /{resourceUri}/providers/Microsoft.Advisor/recommendations.
  • Operation Id. : ResourceRecommendationBases_ListByTenant.
  • Default Api Version. : 2025-05-01-preview.
public virtual Azure.Pageable<Azure.ResourceManager.Advisor.AdvisorRecommendationResource> GetAll(string filter = default, int? top = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Advisor.AdvisorRecommendationResource>
override this.GetAll : string * Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Advisor.AdvisorRecommendationResource>
Public Overridable Function GetAll (Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of AdvisorRecommendationResource)

Parameters

filter
String

The filter to apply to the recommendations.<br>Filter can be applied to properties ['ResourceId', 'ResourceGroup', 'RecommendationTypeGuid', 'Category'] with operators ['eq', 'and', 'or'].<br>Example:<br>- $filter=Category eq 'Cost' and ResourceGroup eq 'MyResourceGroup'.

top
Nullable<Int32>

The number of recommendations per page if a paged version of this API is being used.

skipToken
String

The page-continuation token to use with a paged version of this API.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of AdvisorRecommendationResource that may take multiple service requests to iterate over.

Applies to