Hello George Sikharulidze
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
Based on the error details shared, the disk controller type required for resizing the virtual machine is not enabled for your subscription.
You need to register your subscription for the 'Microsoft.Compute/DiskControllerTypePreview' feature to use this capability.
Try the following steps:
- Register the feature for your subscription using Azure CLI or Azure PowerShell and then refresh your subscription using below commands.
For Azure CLI, run the following commands:
az feature register --namespace Microsoft.Compute --name DiskControllerTypePreview
az provider register --namespace Microsoft.Compute
For Azure PowerShell, run the following command:
Register-AzProviderFeature -FeatureName Microsoft.Compute/DiskControllerTypePreview -ProviderNamespace Microsoft.Compute
Register-AzResourceProvider -ProviderNamespace Microsoft.Compute
- Wait for a few minutes for the registration to complete.
- After the registration is complete, you can try resizing your virtual machine again.
- Please make sure that you have the latest version of Azure CLI or Azure PowerShell installed. This feature is currently in preview and may not be available in all regions.
- Ref: https://learn.microsoft.com/en-us/powershell/module/az.resources/register-azproviderfeature?view=azps-9.4.0&viewFallbackFrom=azps-5.1.0
- https://github.com/Azure/azure-cli/issues/23664
Hope this helps. If you need further help on this, tag me in a comment. If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.