microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.44k stars 2.15k forks source link

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

Open kagoolastha23 opened 3 months ago

kagoolastha23 commented 3 months ago

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

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?

pamelafox commented 3 months ago

To run azd up, you need these permissions:

kagoolastha23 commented 2 months ago

To run azd up, you need these permissions:

How to enable both the permission you mentioned?

pamelafox commented 2 months ago

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

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity.