microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I am getting this error when I am trying to deploy the app using Azure CLI

kagoolastha23 opened this issue · comments

Describe the bug
Unable to deploy the app using Azure CLI

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'readme_azd'
  2. See error

Getting this error when I am trying to deploy using Azure CLI

TraceID: 6ac*****************************

ERROR: error executing step command 'provision': deployment failed: failing invoking action 'provision', error deploying infrastructure: starting deployment to subscription: PUT https://management.azure.com/subscriptions/eb5**************************************/providers/Microsoft.Resources/deployments/sampleappenv-1712313672

RESPONSE 403: 403 Forbidden
ERROR CODE: AuthorizationFailed

{
"error": {
"code": "AuthorizationFailed",
"message": "The client 'email' with object id '5b3**********************' does not have authorization to perform action 'Microsoft.Resources/deployments/write' over scope '/subscriptions/eb5***************************/providers/Microsoft.Resources/deployments/sampleappenv-1712313672' or the scope is invalid. If access was recently granted, please refresh your credentials."
}
}

TraceID: 6ac*********************************************
Screenshots
sampleappissue3

Configuration: Please provide the following

  • Azure OpenAI model name and version (e.g. 'gpt4-32k')
  • Is chat history enabled? No
  • Are you using data? If so, what data source? (e.g. Azure AI Search)

I got owner level access on Azure OpenAI service but it is still not working. Do I need owner level permission at the resource group level?

To run azd up, you need these permissions:

To run azd up, you need these permissions:

How to enable both the permission you mentioned?

I assume you're working at a company that has restricted your account's permissions. Typically then, your company would have an IT department that could grant you those permissions, using steps like the ones detailed here: https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-steps