[Question] Language.QuestionAnswering: DeploymentName other than 'production' not supported.
See original GitHub issueLibrary name and version
Azure.AI.Language.QuestionAnswering 1.1.0-beta.1
Query/Question
Hi, We are moving from https://www.qnamaker.ai/ to new https://language.cognitive.azure.com/ and we think that can use deploymentName to separate between prod and test environtment but when try to deploy the project using QuestionAnsweringProjectsClient’s DeployProjectAsync with deploymentName = “testing”, there is an error:
Invalid input. See details. Status: 400 (Bad Request) ErrorCode: InvalidArgument
Content:
{
"error": {
"code": "InvalidArgument",
"message": "Invalid input. See details.",
"details": [
{
"code": "ValidationFailure",
"message": "DeploymentName other than 'production' not supported.",
"target": "Deploy"
}
]
}
}
So my question is why DeploymentName only allows ‘production’ as I can’t find any source mentioning this and as far as I remember I can use “testing” as deploymentName previously. If this is the desired behavior then can you please show us how to separate production and testing environment?
Thank you a lot for your support.
Environment
dotnet core 6.0.300 windows 10.0.22000 visual studio 2022 17.0.6
Issue Analytics
- State:
- Created a year ago
- Comments:14 (6 by maintainers)
Top GitHub Comments
@tung238 , I misunderstood your query. I thought you were testing the Project using the
/:query-knowledgebases
API. Actually, there’s no need to deploy your project to “test”, it exists by default. Whenever you add a QnA to the Project, it is added to the “test” deployment. One can only create a new “production” deployment for the Project using the Deploy functionality.This is more of a service question. @ChongTang can you respond?