Azure-Samples / graphrag-accelerator

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

Deployment Failure - The template deployment 'aks' is not valid #64

Closed gerglitzen closed 2 months ago

gerglitzen commented 2 months ago

I followed the deployment guide step by step.

I'm using Linux Mint 21.3

I have an error while running the deployment

bash deploy.sh -p deploy.parameters.json

The error message is:

{
    "status":"Failed",
    "error":{
        "code":"DeploymentFailed",
        "target":"/subscriptions/xxxxxx/resourceGroups/graphrag/providers/Microsoft.Resources/deployments/graphrag-deploy-2024-07-08_09-59-44",
         "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":"InvalidTemplateDeployment",
            "message":"The template deployment 'aks' is not valid according to the validation procedure. The tracking id is 'xxxx'. See inner errors for details.",
            "details":[{
                "code":"InternalOperationError",
                "message":"Preflight validation check for resource(s) for container service aks-g6jrqeyika2zs in resource group graphrag failed. Message: We are unable to serve this request due to an internal error, Correlation ID: xxx, Operation ID: xxx, Timestamp: 2024-07-08T08:00:23Z.. Details: "
}]}]}}
timothymeyers commented 2 months ago

@gerglitzen Verify that the AKS SKUs in the accelerator are available in East US 2 and that you have quota.

In some of my tests, I ran into issues in various regions where I had to downgrade from standard_d4s_v5 to standard_d4s_v3 https://github.com/Azure-Samples/graphrag-accelerator/blob/497aa5e176c422c958b850e8d65a4d11df3d665e/infra/core/aks/aks.bicep#L33

Arvoid00 commented 2 months ago

@timothymeyers Hi!

Setting the VM size to 'standard_d4s_v3' worked. Thanks! However I am getting the following error:

Creating a free tier cluster is unavailable at this time in region westeurope. 
To create a new cluster, we recommend using an alternate region, or create a paid tier cluster.

I am unsure which parameters to change to make it a standard tier cluster, or how to check which VM types are compatible for the application and in which regions the free tier exist. Where do I find this info?

A simple copilot chat (in Azure) returned that all VMs are available for free tier in all regions, which is not true, given the error above...

timothymeyers commented 2 months ago

Hey @Arvoid00 glad to hear that helped you on to the next step.

Someone else had this same 'free tier' availability issue in westeurope - check out this discussion for some guidance on configuring for standard (or I'd just try a different region) - https://github.com/Azure-Samples/graphrag-accelerator/discussions/72

Arvoid00 commented 2 months ago

Thanks for guiding to those docs. Must help for sure. Currently creating a bunch of resource groups in different regions in hope of one actually deploying due to high demand issues (for cosmos too actually).

gerglitzen commented 2 months ago

@timothymeyers At the end I moved my deployment to another region (swedencentral) and I changed the aks.bicep file to standard_d4s_v3 and it worked for me too!