sample-app-aoai-chatGPT icon indicating copy to clipboard operation
sample-app-aoai-chatGPT copied to clipboard

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

Open kagoolastha23 opened this issue 1 year ago • 4 comments
trafficstars

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?

kagoolastha23 avatar Apr 05 '24 11:04 kagoolastha23

To run azd up, you need these permissions:

pamelafox avatar Apr 06 '24 14:04 pamelafox

To run azd up, you need these permissions:

How to enable both the permission you mentioned?

kagoolastha23 avatar Apr 08 '24 06:04 kagoolastha23

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

pamelafox avatar Apr 08 '24 18:04 pamelafox

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

github-actions[bot] avatar Jun 27 '24 01:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 11 '24 01:07 github-actions[bot]