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.

advisor

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.

class pulumi_azure.advisor.AwaitableGetRecommendationsResult(filter_by_categories=None, filter_by_resource_groups=None, id=None, recommendations=None)
class pulumi_azure.advisor.GetRecommendationsResult(filter_by_categories=None, filter_by_resource_groups=None, id=None, recommendations=None)

A collection of values returned by getRecommendations.

id = None

The provider-assigned unique ID for this managed resource.

recommendations = None

One or more recommendations blocks as defined below.

pulumi_azure.advisor.get_recommendations(filter_by_categories=None, filter_by_resource_groups=None, opts=None)

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

import pulumi
import pulumi_azure as azure

example = azure.advisor.get_recommendations(filter_by_categories=[
        "security",
        "cost",
    ],
    filter_by_resource_groups=["example-resgroups"])
pulumi.export("recommendations", example.recommendations)
Parameters
  • filter_by_categories (list) – Specifies a list of categories in which the Advisor Recommendations will be listed. Possible values are HighAvailability, Security, Performance, Cost and OperationalExcellence.

  • filter_by_resource_groups (list) – Specifies a list of resource groups about which the Advisor Recommendations will be listed.