Skip to main content

recommendations_rule_details_by_hosting_environments

Creates, updates, deletes, gets or lists a recommendations_rule_details_by_hosting_environments resource.

Overview

Namerecommendations_rule_details_by_hosting_environments
TypeResource
Idazure.app_service.recommendations_rule_details_by_hosting_environments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
propertiesobjectRecommendationRule resource specific properties
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, hostingEnvironmentName, name, subscriptionIdupdateSeen, recommendationIdDescription for Get a recommendation rule for an app.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hostingEnvironmentNamestringName of the hosting environment.
namestringName of the recommendation.
resourceGroupNamestringName of the resource group to which the resource belongs.
subscriptionIdstringYour Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
recommendationIdstringThe GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry.
updateSeenbooleanSpecify true to update the last-seen timestamp of the recommendation object.

SELECT examples

Description for Get a recommendation rule for an app.

SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.recommendations_rule_details_by_hosting_environments
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND hostingEnvironmentName = '{{ hostingEnvironmentName }}' -- required
AND name = '{{ name }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND updateSeen = '{{ updateSeen }}'
AND recommendationId = '{{ recommendationId }}'
;