Microsoft Azure Recommendations API

The Recommendations API from Microsoft Azure, for recommendations.

GitHub OpenAPI

Operations 15

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations List App Service recommendations for a subscription · Microsoft Azure List All Recommendations For A Subscription #
Ask an LLM
“What App Service recommendations apply across my whole subscription?”
“Can I see only the featured recommendations for my subscription?”
Tell an agent
List all App Service recommendations for subscription {sub}.
Show featured App Service recommendations for subscription {sub} matching {filter}.
POST /subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset Reset recommendation opt-outs for a subscription · Microsoft Azure Reset All Recommendation Opt Out Settings For A Subscription #
Ask an LLM
“How do I undo every recommendation I opted out of at the subscription level?”
“Can I bring back all the App Service recommendations I disabled for my subscription?”
Tell an agent
Reset all recommendation opt-out settings for subscription {sub}.
Re-enable every subscription-wide recommendation rule I turned off in {sub}.
POST /subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable Disable a recommendation rule for a subscription · Microsoft Azure Disables The Specified Rule So It Will Not Apply To A… #
Ask an LLM
“Can I stop a specific recommendation rule from applying to my subscription in the future?”
“Which call turns off one App Service recommendation for the whole subscription?”
Tell an agent
Disable recommendation rule {rule} for subscription {sub}.
Stop rule {rule} from appearing across my subscription {sub}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendationHistory Get past recommendations for an App Service Environment · Microsoft Azure Get Past Recommendations For An App, Optionally Specified By… #
Ask an LLM
“What recommendations did my App Service Environment receive in the past?”
“Can I limit an App Service Environment's recommendation history to expired items only?”
Tell an agent
Show the recommendation history for App Service Environment {ase} in {rg} of subscription {sub}.
List past recommendations for hosting environment {ase} in {rg} within time range {filter}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations List current recommendations for an App Service Environment · Microsoft Azure Get All Recommendations For A Hosting Environment #
Ask an LLM
“Which recommendations currently apply to my App Service Environment?”
“Can I see just the featured recommendations for a hosting environment?”
Tell an agent
List active recommendations for App Service Environment {ase} in {rg} of subscription {sub}.
Show current recommendations for hosting environment {ase} in {rg} filtered by {filter}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/disable Disable all recommendations for an App Service Environment · Microsoft Azure Disable All Recommendations For An App #
Ask an LLM
“Can I turn off every recommendation for an App Service Environment at once?”
“How do I silence all recommendations on a hosting environment?”
Tell an agent
Disable all recommendations for App Service Environment {ase} (environment {env}) in {rg} of subscription {sub}.
Turn off every recommendation on hosting environment {ase} named {env} in {rg}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/reset Reset recommendation opt-outs for an App Service Environment · Microsoft Azure Reset All Recommendation Opt Out Settings For An App #
Ask an LLM
“How do I restore recommendations I opted out of on an App Service Environment?”
“Can I clear all the disabled recommendation rules for a hosting environment?”
Tell an agent
Reset recommendation opt-out settings for App Service Environment {ase} (environment {env}) in {rg} of subscription {sub}.
Re-enable disabled recommendations on hosting environment {ase} named {env} in {rg}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name} Get a recommendation rule for an App Service Environment · Microsoft Azure Get A Recommendation Rule For An App #
Ask an LLM
“What does a specific recommendation rule say for my App Service Environment?”
“Can I mark a hosting environment's recommendation as seen when I read it?”
Tell an agent
Get recommendation rule {rule} for App Service Environment {ase} in {rg} of subscription {sub}.
Show rule {rule} on hosting environment {ase} in {rg} for recommendation {rec}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}/disable Disable a recommendation rule for an App Service Environment · Microsoft Azure Disables The Specific Rule For A Web Site Permanently #
Ask an LLM
“Can I permanently disable one recommendation rule on an App Service Environment?”
“Which call turns off a single rule for a hosting environment?”
Tell an agent
Disable rule {rule} for App Service Environment {ase} (environment {env}) in {rg} of subscription {sub}.
Permanently turn off recommendation {rule} on hosting environment {ase} named {env} in {rg}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory Get past recommendations for a web app · Microsoft Azure Get Past Recommendations For An App, Optionally Specified By… #
Ask an LLM
“What recommendations has my App Service web app received in the past?”
“Can I see a web app's recommendation history for a specific time range?”
Tell an agent
Show the recommendation history for web app {site} in {rg} of subscription {sub}.
List past recommendations for app {site} in {rg} within time range {filter}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations List current recommendations for a web app · Microsoft Azure Get All Recommendations For An App #
Ask an LLM
“Which recommendations currently apply to my web app?”
“Can I get only featured recommendations for one App Service app?”
Tell an agent
List active recommendations for web app {site} in {rg} of subscription {sub}.
Show current recommendations for app {site} in {rg} filtered by {filter}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable Disable all recommendations for a web app · Microsoft Azure Disable All Recommendations For An App #
Ask an LLM
“Can I turn off every recommendation for a single web app?”
“How do I stop all recommendations from showing on one App Service app?”
Tell an agent
Disable all recommendations for web app {site} in {rg} of subscription {sub}.
Silence every recommendation on app {site} in {rg}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/reset Reset recommendation opt-outs for a web app · Microsoft Azure Reset All Recommendation Opt Out Settings For An App #
Ask an LLM
“How do I restore recommendations I disabled on a web app?”
“Can I clear all recommendation opt-outs for one App Service app?”
Tell an agent
Reset recommendation opt-out settings for web app {site} in {rg} of subscription {sub}.
Re-enable disabled recommendations on app {site} in {rg}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name} Get a recommendation rule for a web app · Microsoft Azure Get A Recommendation Rule For An App #
Ask an LLM
“What are the details of one recommendation rule for my web app?”
“Can I mark a web app recommendation as seen while reading it?”
Tell an agent
Get recommendation rule {rule} for web app {site} in {rg} of subscription {sub}.
Show rule {rule} on app {site} in {rg} for recommendation {rec}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}/disable Disable a recommendation rule for a web app · Microsoft Azure Disables The Specific Rule For A Web Site Permanently #
Ask an LLM
“Can I permanently disable one recommendation rule on a web site?”
“Which call switches off a single rule for one App Service app?”
Tell an agent
Disable rule {rule} for web app {site} in {rg} of subscription {sub}.
Permanently turn off recommendation {rule} on site {site} in {rg}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-recommendations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-recommendations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2023-01-01'
  title: Microsoft Azure API Client Recommendations API
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Recommendations
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations:
    get:
      tags:
      - Recommendations
      summary: Microsoft Azure List All Recommendations For A Subscription
      description: Description for List all recommendations for a subscription.
      operationId: microsoftAzureRecommendationsList
      parameters:
      - name: featured
        in: query
        description: Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations.
        schema:
          type: boolean
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      - name: $filter
        in: query
        description: 'Filter is specified by using OData syntax. Example: $filter=channel eq ''Api'' or channel eq ''Notification'' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration''[PT1H|PT1M|P1D]'
        x-ms-skip-url-encoding: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecommendationCollection'
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
  /subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset:
    post:
      tags:
      - Recommendations
      summary: Microsoft Azure Reset All Recommendation Opt Out Settings For A Subscription
      description: Description for Reset all recommendation opt-out settings for a subscription.
      operationId: microsoftAzureRecommendationsResetallfilters
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '204':
          description: No Content
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
  /subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable:
    post:
      tags:
      - Recommendations
      summary: Microsoft Azure Disables The Specified Rule So It Will Not Apply To A…
      description: Description for Disables the specified rule so it will not apply to a subscription in the future.
      operationId: microsoftAzureRecommendationsDisablerecommendationforsubscription
      parameters:
      - name: name
        in: path
        description: Rule name
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: Successfully disabled recommendations.
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendationHistory
  : get:
      tags:
      - Recommendations
      summary: Microsoft Azure Get Past Recommendations For An App, Optionally Specified By…
      description: Description for Get past recommendations for an app, optionally specified by the time range.
      operationId: microsoftAzureRecommendationsListhistoryforhostingenvironment
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: hostingEnvironmentName
        in: path
        description: Name of the hosting environment.
        required: true
        schema:
          type: string
      - name: expiredOnly
        in: query
        description: Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations.
        schema:
          type: boolean
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      - name: $filter
        in: query
        description: 'Filter is specified by using OData syntax. Example: $filter=channel eq ''Api'' or channel eq ''Notification'' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration''[PT1H|PT1M|P1D]'
        x-ms-skip-url-encoding: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecommendationCollection'
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations
  : get:
      tags:
      - Recommendations
      summary: Microsoft Azure Get All Recommendations For A Hosting Environment
      description: Description for Get all recommendations for a hosting environment.
      operationId: microsoftAzureRecommendationsListrecommendedrulesforhostingenvironment
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: hostingEnvironmentName
        in: path
        description: Name of the app.
        required: true
        schema:
          type: string
      - name: featured
        in: query
        description: Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations.
        schema:
          type: boolean
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      - name: $filter
        in: query
        description: 'Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq ''Api'' or channel eq ''Notification'''
        x-ms-skip-url-encoding: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecommendationCollection'
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/disable
  : post:
      tags:
      - Recommendations
      summary: Microsoft Azure Disable All Recommendations For An App
      description: Description for Disable all recommendations for an app.
      operationId: microsoftAzureRecommendationsDisableallforhostingenvironment
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: environmentName
        in: query
        description: Name of the app.
        required: true
        schema:
          type: string
      - name: hostingEnvironmentName
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '204':
          description: No Content
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/reset
  : post:
      tags:
      - Recommendations
      summary: Microsoft Azure Reset All Recommendation Opt Out Settings For An App
      description: Description for Reset all recommendation opt-out settings for an app.
      operationId: microsoftAzureRecommendationsResetallfiltersforhostingenvironment
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: environmentName
        in: query
        description: Name of the app.
        required: true
        schema:
          type: string
      - name: hostingEnvironmentName
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '204':
          description: No Content
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}
  : get:
      tags:
      - Recommendations
      summary: Microsoft Azure Get A Recommendation Rule For An App
      description: Description for Get a recommendation rule for an app.
      operationId: microsoftAzureRecommendationsGetruledetailsbyhostingenvironment
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: hostingEnvironmentName
        in: path
        description: Name of the hosting environment.
        required: true
        schema:
          type: string
      - name: name
        in: path
        description: Name of the recommendation.
        required: true
        schema:
          type: string
      - name: updateSeen
        in: query
        description: Specify <code>true</code> to update the last-seen timestamp of the recommendation object.
        schema:
          type: boolean
      - name: recommendationId
        in: query
        description: The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry.
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecommendationRule'
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}/disable
  : post:
      tags:
      - Recommendations
      summary: Microsoft Azure Disables The Specific Rule For A Web Site Permanently
      description: Description for Disables the specific rule for a web site permanently.
      operationId: microsoftAzureRecommendationsDisablerecommendationforhostingenvironment
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: environmentName
        in: query
        description: Site name
        required: true
        schema:
          type: string
      - name: name
        in: path
        description: Rule name
        required: true
        schema:
          type: string
      - name: hostingEnvironmentName
        in: path
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: Successfully disabled recommendations.
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory
  : get:
      tags:
      - Recommendations
      summary: Microsoft Azure Get Past Recommendations For An App, Optionally Specified By…
      description: Description for Get past recommendations for an app, optionally specified by the time range.
      operationId: microsoftAzureRecommendationsListhistoryforwebapp
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: siteName
        in: path
        description: Name of the app.
        required: true
        schema:
          type: string
      - name: expiredOnly
        in: query
        description: Specify <code>false</code> to return all recommendations. The default is <code>true</code>, which returns only expired recommendations.
        schema:
          type: boolean
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      - name: $filter
        in: query
        description: 'Filter is specified by using OData syntax. Example: $filter=channel eq ''Api'' or channel eq ''Notification'' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration''[PT1H|PT1M|P1D]'
        x-ms-skip-url-encoding: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecommendationCollection'
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations
  : get:
      tags:
      - Recommendations
      summary: Microsoft Azure Get All Recommendations For An App
      description: Description for Get all recommendations for an app.
      operationId: microsoftAzureRecommendationsListrecommendedrulesforwebapp
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: siteName
        in: path
        description: Name of the app.
        required: true
        schema:
          type: string
      - name: featured
        in: query
        description: Specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>, which returns all recommendations.
        schema:
          type: boolean
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      - name: $filter
        in: query
        description: 'Return only channels specified in the filter. Filter is specified by using OData syntax. Example: $filter=channel eq ''Api'' or channel eq ''Notification'''
        x-ms-skip-url-encoding: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecommendationCollection'
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable
  : post:
      tags:
      - Recommendations
      summary: Microsoft Azure Disable All Recommendations For An App
      description: Description for Disable all recommendations for an app.
      operationId: microsoftAzureRecommendationsDisableallforwebapp
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: siteName
        in: path
        description: Name of the app.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '204':
          description: No Content
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/reset
  : post:
      tags:
      - Recommendations
      summary: Microsoft Azure Reset All Recommendation Opt Out Settings For An App
      description: Description for Reset all recommendation opt-out settings for an app.
      operationId: microsoftAzureRecommendationsResetallfiltersforwebapp
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: siteName
        in: path
        description: Name of the app.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '204':
          description: No Content
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}
  : get:
      tags:
      - Recommendations
      summary: Microsoft Azure Get A Recommendation Rule For An App
      description: Description for Get a recommendation rule for an app.
      operationId: microsoftAzureRecommendationsGetruledetailsbywebapp
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: siteName
        in: path
        description: Name of the app.
        required: true
        schema:
          type: string
      - name: name
        in: path
        description: Name of the recommendation.
        required: true
        schema:
          type: string
      - name: updateSeen
        in: query
        description: Specify <code>true</code> to update the last-seen timestamp of the recommendation object.
        schema:
          type: boolean
      - name: recommendationId
        in: query
        description: The GUID of the recommendation object if you query an expired one. You don't need to specify it to query an active entry.
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecommendationRule'
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}/disable
  : post:
      tags:
      - Recommendations
      summary: Microsoft Azure Disables The Specific Rule For A Web Site Permanently
      description: Description for Disables the specific rule for a web site permanently.
      operationId: microsoftAzureRecommendationsDisablerecommendationforsite
      parameters:
      - $ref: '#/components/parameters/resourceGroupNameParameter'
      - name: siteName
        in: path
        description: Site name
        required: true
        schema:
          type: string
      - name: name
        in: path
        description: Rule name
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: Successfully disabled recommendations.
        default:
          description: App Service error response.
          content:
            application/json:
              schema:
                $ref: ./CommonDefinitions.json#/definitions/DefaultErrorResponse
components:
  schemas:
    RecommendationCollection:
      description: Collection of recommendations.
      required:
      - value
      type: object
      properties:
        value:
          description: Collection of resources.
          type: array
          items:
            $ref: '#/components/schemas/Recommendation'
        nextLink:
          description: Link to next page of resources.
          type: string
          readOnly: true
    RecommendationRule:
      description: Represents a recommendation rule that the recommendation engine can perform.
      type: object
      allOf:
      - $ref: ./CommonDefinitions.json#/definitions/ProxyOnlyResource
      properties:
        properties:
          description: RecommendationRule resource specific properties
          type: object
          properties:
            recommendationName:
              description: Unique name of the rule.
              type: string
            displayName:
              description: UI friendly name of the rule.
              type: string
            message:
              description: Localized name of the rule (Good for UI).
              type: string
            recommendationId:
              format: uuid
              description: 'Recommendation ID of an associated recommendation object tied to the rule, if exists.

                If such an object doesn''t exist, it is set to null.'
              type: string
              example: 00000000-0000-0000-0000-000000000000
            description:
              description: Localized detailed description of the rule.
              type: string
            actionName:
              description: Name of action that is recommended by this rule in string.
              type: string
            level:
              description: Level of impact indicating how critical this rule is.
              enum:
              - Critical
              - Warning
              - Information
              - NonUrgentSuggestion
              type: string
              x-ms-enum:
                name: NotificationLevel
                modelAsString: false
            channels:
              description: List of available channels that this rule applies.
              enum:
              - Notification
              - Api
              - Email
              - Webhook
              - All
              type: string
              x-ms-enum:
                name: Channels
                modelAsString: false
            categoryTags:
              description: The list of category tags that this recommendation rule belongs to.
              type: array
              items:
                type: string
              readOnly: true
            isDynamic:
              description: True if this is associated with a dynamically added rule
              type: boolean
            extensionName:
              description: Extension name of the portal if exists. Applicable to dynamic rule only.
              type: string
            bladeName:
              description: Deep link to a blade on the portal. Applicable to dynamic rule only.
              type: string
            forwardLink:
              description: Forward link to an external document associated with the rule. Applicable to dynamic rule only.
              type: string
          x-ms-client-flatten: true
    Recommendation:
      description: Represents a recommendation result generated by the recommendation engine.
      type: object
      allOf:
      - $ref: ./CommonDefinitions.json#/definitions/ProxyOnlyResource
      properties:
        properties:
          description: Recommendation resource specific properties
          type: object
          properties:
            creationTime:
              format: date-time
              description: Timestamp when this instance was created.
              type: string
            recommendationId:
              format: uuid
              description: A GUID value that each recommendation object is associated with.
              type: string
              example: 00000000-0000-0000-0000-000000000000
            resourceId:
              description: Full ARM resource ID string that this recommendation object is associated with.
              type: string
            resourceScope:
              description: Name of a resource type this recommendation applies, e.g. Subscription, ServerFarm, Site.
              enum:
              - ServerFarm
              - Subscription
              - WebSite
              type: string
              x-ms-enum:
                name: ResourceScopeType
                modelAsString: true
            ruleName:
              description: Unique name of the rule.
              type: string
            displayName:
              description: UI friendly name of the rule (may not be unique).
              type: string
            message:
              description: Recommendation text.
              type: string
            level:
              description: Level indicating how critical this recommendation can impact.
              enum:
              - Critical
              - Warning
              - Information
              - NonUrgentSuggestion
              type: string
              x-ms-enum:
                name: NotificationLevel
                modelAsString: false
            channels:
              description: List of channels that this recommendation can apply.
              enum:
              - Notification
              - Api
              - Email
              - Webhook
              - All
              type: string
              x-ms-enum:
                name: Channels
                modelAsString: false
            categoryTags:
              description: The list of category tags that this recommendation belongs to.
              type: array
              items:
                type: string
              readOnly: true
            actionName:
              description: Name of action recommended by this object.
              type: string
            enabled:
              format: int32
              description: True if this recommendation is still valid (i.e. "actionable"). False if it is invalid.
              type: integer
            states:
              description: The list of states of this recommendation. If it's null then it should be considered "Active".
              type: array
              items:
                type: string
            startTime:
              format: date-time
              description: The beginning time in UTC of a range that the recommendation refers to.
              type: string
            endTime:
              format: date-time
              description: The end time in UTC of a range that the recommendation refers to.
              type: string
            nextNotificationTime:
              format: date-time
              description: When to notify this recommendation next in UTC. Null means that this will never be notified anymore.
              type: string
            notificationExpirationTime:
              format: date-time
              description: Date and time in UTC when this notification expires.
              type: string
            notifiedTime:
              format: date-time
              description: Last timestamp in UTC this instance was actually notified. Null means that this recommendation hasn't been notified yet.
              type: string
            score:
              format: double
              description: A metric value measured by the rule.
              type: number
            isDynamic:
              description: True if this is associated with a dynamically added rule
              type: boolean
            extensionName:
              description: Extension name of the portal if exists.
              type: string
            bladeName:
              description: Deep link to a blade on the portal.
              type: string
            forwardLink:
              description: Forward link to an external document associated with the rule.
              type: string
          x-ms-client-flatten: true
  parameters:
    resourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: Name of the resource group to which the resource belongs.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
        pattern: ^[-\w\._\(\)]+[^\.]$
    apiVersionParameter:
      name: api-version
      in: query
      description: API Version
      required: true
      x-ms-parameter-location: client
      schema:
        type: string
    subscriptionIdParameter:
      name: subscriptionId
      in: path
      description: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
      required: true
      x-ms-parameter-location: client
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/web/resource-manager/Microsoft.Web/stable/2018-02-01/Recommendations.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)