question

RaviTejaManchikanti-5724 avatar image
RaviTejaManchikanti-5724 asked ·

How to register to this feature Microsoft.Compute/BulkGET RuntimeState

When I use below API

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines?api-version=2019-12-01&statusOnly={statusOnly}

Im getting below error

Query param statusOnly=true is only supported when subscription is registered with Microsoft.Compute/BulkGETVMRuntimeState feature.

How to fix this ?

azure-virtual-machines
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PritamGhatak-5879 avatar image
PritamGhatak-5879 answered ·

Hi RaviTejaManchikanti-5724,

From the error it looks like its resource provider registration issue for your subscription. So you can do one thing, just go to the subscription--> then click on "Resource Providers" and check whether Microsoft.compute resource provider is registered or not. If it is showing not registered, then please registered the same and try again whether you are still getting the error or not.

Thanks & Regards,
Pritam Ghatak (Prips)
 


Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

3 comments Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Pritam, Thanks for the response, I can execute all other features under Microsoft.Compute and also I have verified that my subscription registered with this feature. Im facing error only for this api

0 Votes 0 · ·
PritamGhatak-5879 avatar image PritamGhatak-5879 RaviTejaManchikanti-5724 ·

Hi @RaviTejaManchikanti-5724 ,

I can the error is "{"error":{"code":"SubscriptionNotFound","message":"The subscription '{subscriptionId}' could not be found."}}". So have you mentioned correct subscription id ?


Thanks & Regards,
Pritam Ghatak
 


Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!

0 Votes 0 · ·

Yes I mentioned Correct Subscription ID. Below is the error

Query param statusOnly=true is only supported when subscription is registered with Microsoft.Compute/BulkGETVMRuntimeState feature.

0 Votes 0 · ·