Resource provider is in "Registering" status for days.

Pavan 15 Reputation points
2023-11-07T18:54:25.1433333+00:00

Azure Media resource has been in "Registering" status for days and is stuck. Haven't found any definitive solution online. If anyone has ideas on how to resolve this issue, please post. Ironically, I didn't even explicitly tried to register it. Was trying to create new resources and ran into this issue.

Azure Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
302 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anton Kucer 91 Reputation points Microsoft Employee
    2023-11-09T02:28:37.74+00:00

    If you can't wait until the deployment to resolve this issue is completed the following are available mitigations:

    1. If at all possible, update your provisioning workflows to not rely on Registration completion. All CRUD operations for Azure Media Services will work even with the resource provider stuck in the "registering" state.
    2. If you will not be using Azure Media Services (e.g., true for some Terraform provisioning workflows), update your provisioning workflow to completely remove the Microsoft.Media registration e.g., add “skip_provider_registration = "true” to your Terraform code.
    3. The following PowerShell script can be used. If executed from the CloudShell available on Azure Portal, no local setup is necessary. This script should only be used as a one-off solution for the current issue. This script uses a region-specific ARM endpoint, and this usage pattern is strongly discouraged for any other workflow.
    $subscriptionId = ""; # replace with subscription GUID
    Connect-AzAccount;    # Not needed if running from Cloud Shell on Azure Portal 
    $token = (Get-AzAccessToken).Token;
    $res = Invoke-WebRequest https://northcentralus.management.azure.com/subscriptions/$subscriptionId/providers/microsoft.media/register?api-version=2021-04-01 -Headers @{ 'Authorization' = "Bearer $token" } -Method Post;
    
    #Validate registration state. It can take a couple of mins for registration to complete.
    $provider = Invoke-WebRequest https://management.azure.com/subscriptions/$subscriptionId/providers/microsoft.media?api-version=2021-04-01 -Headers @{ 'Authorization' = "Bearer $token" };
    ($provider.Content | ConvertFrom-Json).registrationstate        # Should print out Registered
    
    
    2 people found this answer helpful.
    0 comments No comments

  2. VenkateshDodda-MSFT 18,281 Reputation points Microsoft Employee
    2023-11-14T11:37:50.3866667+00:00

    @Pavan Thanks for your patience on this.

    I have checked with internal team on this and below is the feedback shared.

    Upon investigating further, our engineering team has identified a bug, and a fix has been deployed across all the regions to mitigate the issue.

    Feel free to reach back to me if you have any further questions on this.

    0 comments No comments