MSUSAzureAccelerators / Azure-Cognitive-Search-Azure-OpenAI-Accelerator

Virtual Assistant - GPT Smart Search Engine - Bot Framework + Azure OpenAI + Azure AI Search + Azure SQL + Bing API + Azure Document Intelligence + LangChain + CosmosDB
https://gptsmartsearchapp.azurewebsites.net
MIT License
333 stars 549 forks source link

"Properties is required for this resource" error when deploying bicep #14

Open msftph opened 1 year ago

msftph commented 1 year ago

The following resource is missing properties field and errors during deployment:

"{"code":"BadRequest","message":"Properties is required for this resouce."}"

https://github.com/MSUSAzureAccelerators/Azure-Cognitive-Search-Azure-OpenAI-Accelerator/blob/406038c0e8074b5b43cb995a21e4dcb39e1f1653/azuredeploy.bicep#L197C61-L197C69

The documentation shows the resource should have the following section:

resource formRecognizerAccount 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
  name: formRecognizerName
  location: location
  sku: {
    name: 'S0'
  }
  kind: 'FormRecognizer'
  properties: {}
}

https://learn.microsoft.com/en-us/azure/templates/microsoft.cognitiveservices/2023-05-01/accounts?pivots=deployment-language-bicep

msftph commented 1 year ago

This also appears to be broken with the ARM template.

I see the pull request addresses that as well, good work!