azure-search-openai-demo
azure-search-openai-demo copied to clipboard
Deployment getting failed in AKS
Please provide us with the following information:
This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
azd version?
run
azd versionand copy paste here.
Versions
Mention any other details that might be useful
Thanks! We'll be in touch soon.
I am trying to deploy this solution in the Azure AKS. During the azd up command I am getting below error
Please help to resolve this issue. Thanks in advance.!
That looks like a permission error with the shell scripts. Try chmod +x scripts/prepdocs.sh and similarly for all shell files.
@pamelafox ,
Still I am facing some errors after doing the mentioned changes. { ##[error]88.93 "error": { ##[error]88.93 "code": "InvalidTemplateDeployment", ##[error]88.93 "message": "The template deployment failed with error: 'Authorization failed for template resource 'azure_resource_rg' of type 'Microsoft.Resources/resourceGroups'. The client '5bbbbbbb-xxxx-4aa6-cccc-5dddddc1e199' with object id '5bbbbbbb-xxxx-4aa6-cccc-5dddddc1e199' does not have permission to perform action 'Microsoft.Resources/subscriptions/resourceGroups/write' at scope '/subscriptions/3999df45-4aa6-cccc-dddd-eeeeeeeeee/resourceGroups/azure_resource_rg'.'." ##[error]88.93 } ##[error]88.93 }
I am getting the same error.
I am able to successfully run the following commands: $ azd up $ cd app $ ./start.sh
Then the after I navigate to http://localhost:50505 and execute the suggested search, I get the message.
@surendransuri That error indicates a lack of permissions in your Azure account. Please make sure your account has all the permissions described here: https://github.com/Azure-Samples/azure-search-openai-demo?tab=readme-ov-file#azure-account-requirements
@amarpatel-xx Please share the exact error, since there are two errors mentioned in this thread. Or start a new thread.
Ok I will start a new thread. Thank you.
@pamelafox , I have enabled all the necessary permissions in the Azure Account for the Service Principal. We are trying to deploy the app using service principal ID. We are getting the below error while deploying with Service Principal as :
"UnmatchedPrincipalType: The PrincipalId '627c024b6bc94dd6a8c77635670c1e193' has type 'ServicePrincipal' , which is different from specified PrinciaplType 'User'. "