Skip to content

Specify properties on Microsoft.CognitiveServices/accounts apiProperties #7244

@r0bnet

Description

@r0bnet

Hey,

it seems as if for the above mentioned resource some properties are not specified as needed. If you want to create an account you need to specify an apiProperties sub-object within the properties but there's no documentation on that. Here it only says it has to be a not null object.

If you pass an empty object then you get this:

Error: Error creating Cognitive Services Account "qnamaker-stable" (Resource Group "qnamaker-stable"): cognitiveservices
.AccountsClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returne
d an error. Status=400 Code="ApiPropertiesInvalid" Message="The given 'apiProperties' '{}' is invalid. Validation errors
: Required properties are missing from object: qnaRuntimeEndpoint. Path ''."

So currently it's not possible to create an account with the current state of documentation so the properties should be specified in detail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cognitive - QnA MakerService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions