Azure-Samples / graphrag-accelerator

One-click deploy of a Knowledge Graph powered RAG (GraphRAG) in Azure
https://github.com/microsoft/graphrag
MIT License
1.65k stars 250 forks source link

Assigning 'Cognitive Services OpenAI Contributor' role to managed identity.. brings an error #131

Closed jamil77944 closed 1 month ago

jamil77944 commented 1 month ago
Deployment name: graphrag-deploy-2024-08-08_16-47-58 WARNING: The configuration value of bicep.use_binary_from_path has been set to 'false'. ERROR: {"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Resources/deployments/graphrag-deploy-2024-08-08_16-47-58","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/xxxxx/resourceGroups/xxxxx/providers/Microsoft.Resources/deployments/aks","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"DeploymentFailed","target":"/subscriptions/xxxxxx/resourceGroups/xxxxx/providers/Microsoft.Resources/deployments/aks","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/xxxxx/resourceGroups/xxxxx/providers/Microsoft.ContainerService/managedClusters/aks-emt-grapghrag-dev-15/agentPools/graphrag","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"OverconstrainedAllocationRequest","message":"Code=\"OverconstrainedAllocationRequest\" Message=\"Allocation failed. VM(s) with the following constraints cannot be allocated, because the condition is too restrictive. Please remove some constraints and try again. Constraints applied are:\n - Networking Constraints (such as Accelerated Networking or IPv6)\n - VM Size\n\" Target=\"0\"","details":[{"code":"OverconstrainedAllocationRequest","target":"0","message":"Allocation failed. VM(s) with the following constraints cannot be allocated, because the condition is too restrictive. Please remove some constraints and try again. Constraints applied are:\n - Networking Constraints (such as Accelerated Networking or IPv6)\n - VM Size\n"}]}]}]}]},{"code":"ResourceDeploymentFailure","target":"/subscriptions/xxxxx/resourceGroups/xxxxx/providers/Microsoft.Resources/deployments/apim","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"DeploymentFailed","target":"/subscriptions/xxxxxx/resourceGroups/xxxxx/providers/Microsoft.Resources/deployments/apim","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"Timeout","message":"Call to Management API apim-emt-grapghrag-dev-15.management.azure-api.net:3443 timed out for the Developer SKU service which will have inherent capacity issues due to it's scale. Please refer to SLA at https://aka.ms/apimsla and considering upgrading to a SKU Tier with higher SLA."}]}]}]}} Assigning 'Cognitive Services OpenAI Contributor' role to managed identity... ____ / Uh oh, an error has occurred. \ \ Please see message below. / ‾‾‾‾‾‾‾‾‾‾/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ / _ / / \ ~ ~ / \ /\ \o/ \o/ /
_/
\     /
 \___/

Unable to parse service principal id from azure outputs, exiting...

This happens when the deployment runs locally.

timothymeyers commented 1 month ago

This error appears to be related to a lack of resource capacity in your subscription quota and/or the region you're deploying to. I'd suggest you go to the Azure Portal -> {your resource group} -> Deployments and look for failed deployments. Try digging into the error messages to see which resource deployment is failing and why.

jamil77944 commented 1 month ago

this is solved. thanks

yzlee commented 2 weeks ago

this is solved. thanks

how did you solve it? I am facing same problem