Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

Are QnaMaker cognitiveservices compatible with a linux service plan ? #9004

Closed MrLuje closed 2 years ago

MrLuje commented 5 years ago

Describe the bug A QnaMaker cognitiveservice created on a linux serviceplan cannot be linked to https://qnamaker.ai

image

I used the commands from this post (windows serviceplan version) to create the cognitiveservices/webapp

To Reproduce The differences with the working example are :

// Create Search instance and get admin key. // in this example, the key is "B044183F2450193E26751DC20423DFE4" az search service create -g devexp-qnamaker -n devexp-qnamaker-search --sku standard az search admin-key show -g devexp-qnamaker --service-name devexp-qnamaker-search

// Create App Service plan and Web App // in this example, Web App endpoint will be https://devexp-qnamaker-webapp.azurewebsites.net az appservice plan create -g devexp-qnamaker -n devexp-qnamaker-webapp-plan --is-linux --sku S1 az webapp create -g devexp-qnamaker -n devexp-qnamaker-webapp --plan devexp-qnamaker-webapp-plan --runtime "DOTNETCORE|2.1"

// Configure Web App az webapp config appsettings set -g devexp-qnamaker -n devexp-qnamaker-webapp --settings AzureSearchName=devexp-qnamaker-search AzureSearchAdminKey=C6109F408309D28DCE72483FE50CAE86 PrimaryEndpointKey=devexp-qnamaker-webapp-PrimaryEndpointKey SecondaryEndpointKey=devexp-qnamaker-webapp-SecondaryEndpointKey DefaultAnswer="No good match found in KB." QNAMAKER_EXTENSION_VERSION="latest"

az webapp cors add -g devexp-qnamaker -n devexp-qnamaker-webapp -a "*"

// Create QnAMaker account az cognitiveservices account create -g devexp-qnamaker -n devexp-qnamaker-account --kind QnAMaker --sku S0 --location westus --api-properties qnaRuntimeEndpoint=https://devexp-qnamaker-webapp.azurewebsites.net


All resources are properly created at this point.

**Expected behavior**
The QnaService should be usable for a KB.
At this point, I'm not really sure if this is a known limitation of the current version of QnaMaker or bug

**Environment summary**
cf previous steps, commands done from cmd.exe on windows 10
esoler-sage commented 5 years ago

I'm interested in this scenario as well. Do you have any information about this?

ghost commented 4 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @yangyuan.

peterbozso commented 3 years ago

Are there any updates on this? This scenario would be interesting for my customer.

pravinambekar commented 3 years ago

Are there any updates on configuring Linux based Cognitive Service for QnAMaker ? In my case LinuxFxVersion and Stack is correctly getting configured during deployment but, unable to create knowledgebase through script and throwing error about EndpointKeysError @azure-sdk

SaurabhSharma-MSFT commented 2 years ago

@pravinambekar Based on the discussion on the other GitHub issue it looks like you are unblocked, and this issue can be resolved. Please let us know.

ghost commented 2 years ago

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!