Show / Hide Table of Contents

Class GetRecommendations

Inheritance
System.Object
GetRecommendations
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Advisor
Assembly: Pulumi.Azure.dll
Syntax
public static class GetRecommendations

Methods

View Source

InvokeAsync(GetRecommendationsArgs, InvokeOptions)

Use this data source to access information about an existing Advisor Recommendations.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.Advisor.GetRecommendations.InvokeAsync(new Azure.Advisor.GetRecommendationsArgs
    {
        FilterByCategories = 
        {
            "security",
            "cost",
        },
        FilterByResourceGroups = 
        {
            "example-resgroups",
        },
    }));
    this.Recommendations = example.Apply(example => example.Recommendations);
}

[Output("recommendations")]
public Output<string> Recommendations { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetRecommendationsResult> InvokeAsync(GetRecommendationsArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetRecommendationsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetRecommendationsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.