Megosztás a következőn keresztül:


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
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
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
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
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
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
GetConfigurations(ResourceGroupResource, CancellationToken)

Retrieve Azure Advisor configurations.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListByResourceGroup
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
GetConfigurationsAsync(ResourceGroupResource, CancellationToken)

Retrieve Azure Advisor configurations.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations
  • Operation Id: Configurations_ListByResourceGroup
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
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
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
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
GetMetadataEntityAsync(TenantResource, String, CancellationToken)

Gets the metadata entity.

  • Request Path: /providers/Microsoft.Advisor/metadata/{name}
  • Operation Id: RecommendationMetadata_Get
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
GetResourceRecommendationBaseAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Obtains details of a cached recommendation.

  • Request Path: /{resourceUri}/providers/Microsoft.Advisor/recommendations/{recommendationId}
  • Operation Id: Recommendations_Get
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
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

Applies to