Unable to delete old Azure Stack registration from RG

Kim Zachariassen 11 Reputation points
2022-02-02T09:32:22.223+00:00

A resource of type: Microsoft.AzureStack/registrations

Type listed in portal: Azure Stack Hub | PREVIEW

Location: West Central US

When I try to delete the resource I get this error:

No registered resource provider found for location 'westcentralus' and API version '2018-05-01' for type 'registrations'. The supported api-versions are '2017-06-01, 2020-06-01-preview, 2021-05-01-preview'. The supported locations are 'global'. (Code: NoRegisteredProviderFound)

This results in other issues for AzOps integrations etc. for the entire subscription.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,795 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 23,211 Reputation points
    2022-02-02T17:18:09.277+00:00

    Hello @Kim Zachariassen ,

    Thank you for reaching out to Microsoft Q&A platform. Happy to answer your question.
    You need to make sure that the resource provider "Microsoft.AzureStack/registrations" is registered under the subscription. Appears this provider got unregistered. Hence it fails to delete the resource of its type.

    Possible Causes:
    You receive these errors for one of these reasons:

    1. The required resource provider hasn't been registered for your subscription.
    2. API version not supported for the resource type.
    3. Location not supported for the resource type.
    4. For VM auto-shutdown, the Microsoft.DevTestLab resource provider must be registered.

    Example:
    170672-image.png

    Detailed steps to register a provider is available here : error-register-resource-provider

    Please "Accept as Answer" and Upvote if any of above helped so that, it can help others in community looking for remediation for the similar issues.

    0 comments No comments