Share via


Discovery Solution NLP - Discover Solutions By Subscription

Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue summary and subscription.

POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Help/discoverSolutions?api-version=2024-03-01-preview

URI Parameters

Name In Required Type Description
subscriptionId
path True

string

The Azure subscription ID.

api-version
query True

string

Client Api Version.

Request Body

Name Required Type Description
issueSummary True

string

Natural language description of the issue.

additionalContext

string

Additional information in the form of a string.

resourceId

string

ARM resource Id of the resource that is having the issue. Only applicable for Discovery Solution NLP Subscription Scope.

serviceId

string

ARM service Id of the service that is having the issue. For more information on service Id see https://learn.microsoft.com/rest/api/support/services/list?tabs=HTTP.

Responses

Name Type Description
200 OK

DiscoveryNlpResponse

Successful fetched list of solution metadata.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Discovery Solutions using issue summary and service id.

Sample request

POST https://management.azure.com/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/providers/Microsoft.Help/discoverSolutions?api-version=2024-03-01-preview

{
  "issueSummary": "how to retrieve certs from deleted keyvault.",
  "resourceId": "subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read",
  "serviceId": "0d0fcd2e-c4fd-4349-8497-200edb39s3ca"
}

Sample response

{
  "value": [
    {
      "id": "/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/providers/Microsoft.Help/discoverSolutions/SampleProblemClassificationId1",
      "name": "SampleProblemClassificationId1",
      "type": "Microsoft.Help/discoverySolutions",
      "properties": {
        "problemTitle": "SampleTitle1",
        "problemDescription": "SampleDescription1",
        "serviceId": "SampleServiceId1",
        "problemClassificationId": "SampleProblemClassificationId1",
        "solutions": [
          {
            "solutionId": "SampleSolutionId1",
            "solutionType": "Diagnostics",
            "description": "This is an azure solution to troubleshoot subscription issues.",
            "requiredInputs": [
              "SubscriptionId"
            ]
          },
          {
            "solutionId": "SampleSolutionId2",
            "solutionType": "Solutions",
            "description": "This is an azure solution to troubleshoot keyvault resource.",
            "requiredInputs": [
              "SubscriptionId"
            ]
          }
        ],
        "relatedServices": [
          {
            "serviceId": "/providers/Microsoft.Support/services/40ef020e-8ae7-8d57-b538-9153c47cee69",
            "displayName": "SQL Server in VM - Linux",
            "resourceTypes": [
              "MICROSOFT.CLASSICCOMPUTE/VIRTUALMACHINES",
              "MICROSOFT.COMPUTE/VIRTUALMACHINES"
            ]
          }
        ]
      }
    }
  ]
}

Definitions

Name Description
ClassificationService

Service Classification result object.

createdByType

The type of identity that created the resource.

DiscoveryNlpRequest

Discover NLP request.

DiscoveryNlpResponse

Successfully fetched list of solution metadata.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

SolutionMetadataProperties

Metadata Properties

SolutionNlpMetadataResource

Nlp Metadata resource

SolutionType

Solution Type.

systemData

Metadata pertaining to creation and last modification of the resource.

ClassificationService

Service Classification result object.

Name Type Description
displayName

string

Localized name of the azure service.

resourceTypes

string[]

List of applicable ARM resource types for this service.

serviceId

string (arm-id)

Azure resource Id of the service.

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

DiscoveryNlpRequest

Discover NLP request.

Name Type Description
additionalContext

string

Additional information in the form of a string.

issueSummary

string

Natural language description of the issue.

resourceId

string

ARM resource Id of the resource that is having the issue. Only applicable for Discovery Solution NLP Subscription Scope.

serviceId

string

ARM service Id of the service that is having the issue. For more information on service Id see https://learn.microsoft.com/rest/api/support/services/list?tabs=HTTP.

DiscoveryNlpResponse

Successfully fetched list of solution metadata.

Name Type Description
value

SolutionNlpMetadataResource[]

The list of solution metadata.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

SolutionMetadataProperties

Metadata Properties

Name Type Description
description

string

A detailed description of solution.

requiredInputs

string[]

Required parameters for invoking this particular solution.

solutionId

string

Solution Id.

solutionType

SolutionType

Solution Type.

SolutionNlpMetadataResource

Nlp Metadata resource

Name Type Description
id

string (arm-id)

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

The name of the resource

properties.problemClassificationId

string

Id of the ProblemClassification (https://learn.microsoft.com/en-us/rest/api/support/problem-classifications?view=rest-support-2020-04-01) that may be used to create a support ticket.

properties.problemDescription

string

Description of the problem classification.

properties.problemTitle

string

Title of the problem classification.

properties.relatedServices

ClassificationService[]

The set of services that are most likely related to the request. If relatedServices is included in the response then solutions may not be discovered until the client calls a second time specifying one of the service Ids in the relatedServices object.

properties.serviceId

string

Id of the service (https://learn.microsoft.com/en-us/rest/api/support/services?view=rest-support-2020-04-01) that may be used to create a support ticket.

properties.solutions

SolutionMetadataProperties[]

The list of solution metadata.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

SolutionType

Solution Type.

Value Description
Diagnostics

Diagnostics resource type.

Solutions

Solutions resource type.

Troubleshooters

Troubleshooters resource type.

SelfHelp

SelfHelp resource type.

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string (date-time)

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.