AKS cost-analysis-agent pod cannot attach pvc

Chalvatzis, Michael 0 Reputation points
2025-12-11T11:00:52.99+00:00

We see the following K8s event:

Note: AttachVolume.Attach failed for volume "pvc-xxxxxxxx" : rpc error: code = Internal desc = Attach volume /subscriptions/xxxxxxxx/resourceGroups/xxxxxxx-aksmanaged/providers/Microsoft.Compute/disks/pvc-xxxxxxxx to instance aks-sys-xxxxxxxx-vmss000000 failed with PUT http://localhost:7788/subscriptions/xxxxxxx/resourceGroups/xxxxxxx-aksmanaged/providers/Microsoft.Compute/virtualMachineScaleSets/aks-sys-xxxxxxxx-vmss/virtualMachines/0

RESPONSE 403: 403 Forbidden ERROR CODE: LinkedAuthorizationFailed

{ "error": { "code": "LinkedAuthorizationFailed", "message": "The client 'xxxxxxx' with object id 'xxxxxxx' has permission to perform action 'Microsoft.Compute/virtualMachineScaleSets/virtualMachines/write' on scope /subscriptions/xxxxxxxx-f8f7-4b

Question: How can we see the full "error" message? The interesting part is cut and we cannot evaluate the real problem

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.