@Juan Perez , Thank you for your question.
If the Azure managed disk is already attached to a running VM, disk resize will fail.
Before running kubectl edit pvc pvc-azuredisk
operation, please make sure this PVC is not mounted by any pod (change the replica count to 0, this will terminate the pod and detach the disk, need wait a few minutes) otherwise there would be resize error. Now run kubectl edit pvc pvc-azuredisk
to change azuredisk PVC size.
Please refer to this GitHub PR for detailed instructions.
----------
Hope this helps.
Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.