Share via


ApplicationInsightsComponentResource.UpdateFavorite Method

Definition

Updates a favorite that has already been added to an Application Insights component.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}
  • Operation Id: Favorites_Update
  • Default Api Version: 2015-05-01
public virtual Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite> UpdateFavorite (string favoriteId, Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite favoriteProperties, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateFavorite : string * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
override this.UpdateFavorite : string * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentFavorite>
Public Overridable Function UpdateFavorite (favoriteId As String, favoriteProperties As ApplicationInsightsComponentFavorite, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ApplicationInsightsComponentFavorite)

Parameters

favoriteId
String

The Id of a specific favorite defined in the Application Insights component.

favoriteProperties
ApplicationInsightsComponentFavorite

Properties that need to be specified to update the existing favorite.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

favoriteId is an empty string, and was expected to be non-empty.

favoriteId or favoriteProperties is null.

Applies to