Module advisor
This page documents the language specification for the azure package. If you're looking for help working with the inputs, outputs, or functions of azure resources in a Pulumi program, please see the resource documentation for examples and API reference.
Functions
Others
Functions
Function getRecommendations
getRecommendations(args?: GetRecommendationsArgs, opts?: pulumi.InvokeOptions): Promise<GetRecommendationsResult>Use this data source to access information about an existing Advisor Recommendations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.advisor.getRecommendations({
filterByCategories: [
"security",
"cost",
],
filterByResourceGroups: ["example-resgroups"],
});
export const recommendations = example.then(example => example.recommendations);Others
interface GetRecommendationsArgs
interface GetRecommendationsArgsA collection of arguments for invoking getRecommendations.
property filterByCategories
filterByCategories?: string[];Specifies a list of categories in which the Advisor Recommendations will be listed. Possible values are HighAvailability, Security, Performance, Cost and OperationalExcellence.
property filterByResourceGroups
filterByResourceGroups?: string[];Specifies a list of resource groups about which the Advisor Recommendations will be listed.
interface GetRecommendationsResult
interface GetRecommendationsResultA collection of values returned by getRecommendations.
property filterByCategories
filterByCategories?: string[];property filterByResourceGroups
filterByResourceGroups?: string[];property id
id: string;The provider-assigned unique ID for this managed resource.
property recommendations
recommendations: GetRecommendationsRecommendation[];One or more recommendations blocks as defined below.