Delen via


AdvisorExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Advisor.

public static class AdvisorExtensions
type AdvisorExtensions = class
Public Module AdvisorExtensions
Inheritance
AdvisorExtensions

Methods

CreateConfiguration(ResourceGroupResource, ConfigurationName, ConfigData, CancellationToken)

Create/Overwrite Azure Advisor configuration.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations/{configurationName}
  • Operation Id: Configurations_CreateInResourceGroup
  • Default Api Version: 2020-01-01
CreateConfiguration(SubscriptionResource, ConfigurationName, ConfigData, CancellationToken)

Create/Overwrite Azure Advisor configuration and also delete all configurations of contained resource groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/configurations/{configurationName}
  • Operation Id: Configurations_CreateInSubscription
  • Default Api Version: 2020-01-01
CreateConfigurationAsync(ResourceGroupResource, ConfigurationName, ConfigData, CancellationToken)

Create/Overwrite Azure Advisor configuration.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations/{configurationName}
  • Operation Id: Configurations_CreateInResourceGroup
  • Default Api Version: 2020-01-01
CreateConfigurationAsync(SubscriptionResource, ConfigurationName, ConfigData, CancellationToken)

Create/Overwrite Azure Advisor configuration and also delete all configurations of contained resource groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/configurations/{configurationName}
  • Operation Id: Configurations_CreateInSubscription
  • Default Api Version: 2020-01-01
GenerateRecommendation(SubscriptionResource, CancellationToken)

Initiates the recommendation generation or computation process for a subscription. This operation is asynchronous. The generated recommendations are stored in a cache in the Advisor service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/generateRecommendations
  • Operation Id: Recommendations_Generate
  • Default Api Version: 2020-01-01
  • Resource: ResourceRecommendationBaseResource
GenerateRecommendationAsync(SubscriptionResource, CancellationToken)

Initiates the recommendation generation or computation process for a subscription. This operation is asynchronous. The generated recommendations are stored in a cache in the Advisor service.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/generateRecommendations
  • Operation Id: Recommendations_Generate
  • Default Api Version: 2020-01-01
  • Resource: ResourceRecommendationBaseResource
GetConfigurations(ResourceGroupResource, CancellationToken)

Retrieve Azure Advisor configurations.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListByResourceGroup
  • Default Api Version: 2020-01-01
GetConfigurations(SubscriptionResource, CancellationToken)

Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListBySubscription
  • Default Api Version: 2020-01-01
GetConfigurationsAsync(ResourceGroupResource, CancellationToken)

Retrieve Azure Advisor configurations.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListByResourceGroup
  • Default Api Version: 2020-01-01
GetConfigurationsAsync(SubscriptionResource, CancellationToken)

Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListBySubscription
  • Default Api Version: 2020-01-01
GetGenerateStatusRecommendation(SubscriptionResource, Guid, CancellationToken)

Retrieves the status of the recommendation computation or generation process. Invoke this API after calling the generation recommendation. The URI of this API is returned in the Location field of the response header.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/generateRecommendations/{operationId}
  • Operation Id: Recommendations_GetGenerateStatus
  • Default Api Version: 2020-01-01
  • Resource: ResourceRecommendationBaseResource
GetGenerateStatusRecommendationAsync(SubscriptionResource, Guid, CancellationToken)

Retrieves the status of the recommendation computation or generation process. Invoke this API after calling the generation recommendation. The URI of this API is returned in the Location field of the response header.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/generateRecommendations/{operationId}
  • Operation Id: Recommendations_GetGenerateStatus
  • Default Api Version: 2020-01-01
  • Resource: ResourceRecommendationBaseResource
GetMetadataEntities(TenantResource)

Gets a collection of MetadataEntityResources in the TenantResource. MockingTo mock this method, please mock GetMetadataEntities() instead.

GetMetadataEntity(TenantResource, String, CancellationToken)

Gets the metadata entity.

  • Request Path: /providers/Microsoft.Advisor/metadata/{name}
  • Operation Id: RecommendationMetadata_Get
  • Default Api Version: 2020-01-01
  • Resource: MetadataEntityResource
GetMetadataEntityAsync(TenantResource, String, CancellationToken)

Gets the metadata entity.

  • Request Path: /providers/Microsoft.Advisor/metadata/{name}
  • Operation Id: RecommendationMetadata_Get
  • Default Api Version: 2020-01-01
  • Resource: MetadataEntityResource
GetMetadataEntityResource(ArmClient, ResourceIdentifier)

Gets an object representing a MetadataEntityResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String) to create a MetadataEntityResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetMetadataEntityResource(ResourceIdentifier) instead.

GetResourceRecommendationBase(ArmClient, ResourceIdentifier, String, CancellationToken)

Obtains details of a cached recommendation.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}
  • Operation Id: Recommendations_Get
  • Default Api Version: 2020-01-01
  • Resource: ResourceRecommendationBaseResource
GetResourceRecommendationBaseAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Obtains details of a cached recommendation.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}
  • Operation Id: Recommendations_Get
  • Default Api Version: 2020-01-01
  • Resource: ResourceRecommendationBaseResource
GetResourceRecommendationBaseResource(ArmClient, ResourceIdentifier)

Gets an object representing a ResourceRecommendationBaseResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a ResourceRecommendationBaseResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetResourceRecommendationBaseResource(ResourceIdentifier) instead.

GetResourceRecommendationBases(ArmClient, ResourceIdentifier)

Gets a collection of ResourceRecommendationBaseResources in the ArmClient. MockingTo mock this method, please mock GetResourceRecommendationBases(ResourceIdentifier) instead.

GetSuppressionContractResource(ArmClient, ResourceIdentifier)

Gets an object representing a SuppressionContractResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a SuppressionContractResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetSuppressionContractResource(ResourceIdentifier) instead.

GetSuppressionContracts(SubscriptionResource, Nullable<Int32>, String, CancellationToken)

Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/suppressions
  • Operation Id: Suppressions_List
  • Default Api Version: 2020-01-01
  • Resource: SuppressionContractResource
GetSuppressionContractsAsync(SubscriptionResource, Nullable<Int32>, String, CancellationToken)

Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/suppressions
  • Operation Id: Suppressions_List
  • Default Api Version: 2020-01-01
  • Resource: SuppressionContractResource

Applies to