Disk controller error when attempting to resize VM

George Sikharulidze 25 Reputation points
2023-02-27T03:02:19.71+00:00

Hello,

I am attempting to resize a B4ms VM to a B20ms VM but receive the following error:

User's image

I receive this error no matter what size I try to resize it, and can't find any documentation online on how to resolve this. VM is using a managed disk. Thanks!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,160 questions
0 comments No comments
{count} votes

Accepted answer
  1. vipullag-MSFT 24,206 Reputation points Microsoft Employee
    2023-02-27T04:15:20.46+00:00

    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.

1 additional answer

Sort by: Most helpful
  1. Manu Philip 16,986 Reputation points MVP
    2023-02-27T04:21:53.73+00:00

    I guess, the related provider is not registered in the subscription. You can check the registration status here as below: Search for Microsoft.Compute as below and register the provider type. After that try the resizing of the disk again

    User's image


    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments