Error extending Linux VM disk - This subscription is not registered to use Microsoft.Compute / TestSubscription feature

Jhon Castañeda 1 Reputation point
2021-03-07T15:53:55.87+00:00

Hi,

I am a new user to Azure and I deployed a template from a QNAP NAS. This computer is throwing me an error in which I must expand the disk space where the operating system is.

I did as specified in https://learn.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks but trying to expand the disk using

az disk update --resource-group QNAP8701_GROUP --name Qnap8701_OsDisk_1_8c9a182f51a641aea013e33188e5d47e --size-gb 64

It throws the error (BadRequest) This subscription is not registered to use Microsoft.Compute / TestSubscription feature.

After doing some research I entered through the Azure GUI and Microsoft.Compute is active in the resource providers.

Any ideas?

Regards,

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

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 47,466 Reputation points Microsoft Employee Moderator
    2021-03-09T07:40:09.153+00:00

    @Jhon Castañeda Welcome to Microsoft Q&A, Thank you for posting the query!
    Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.
    Based on the error the message: By default, your Azure Subscription is not registered with all resource providers and because your Subscription is not registered with Microsoft.Compute resource provider, you're getting this error.

    You can use also az command-line tool

    To register  
    az provider register --namespace Microsoft.Compute  
    Notes:     Execute both commands before to log in and switch to the desired subscription  
      
    az login  
    az account set --subscription <name or id>  
    

    For more information, please refer to this article: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/error-register-resource-provider

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.

    --------------------------------------------------------------------------------------------------------------------

    Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

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