Microsoft.Backup provider stuck in 'Registering' state

Category: azure backup

Question

Sam Boutros on Thu, 24 May 2018 00:29:35


Trying to register the Microsoft Backup provider will not complete the process:

$ProviderNamespace = 'Microsoft.Backup'

do {
Register-AzureRmResourceProvider -ProviderNamespace $ProviderNamespace
$Status = Get-AzureRmResourceProvider -ProviderNamespace $ProviderNamespace
Start-Sleep -Seconds 15
} while ($Status.RegistrationState -ne 'Registered')

ProviderNamespace : Microsoft.Backup
RegistrationState : Registering
ResourceTypes : {BackupVault}
Locations : {West US, East US, North Europe, West Europe...}

stuck like this for an hour..

Also referenced here https://github.com/MicrosoftDocs/azure-docs/issues/9059


Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________ Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx


Replies

vikranth s on Thu, 24 May 2018 12:30:44


If you haven’t tried, try to register Microsoft.Backup provider through the Azure portal and let us know the status.

Path to register through the Azure portal: Home>Subscriptions> Select your subscription>Resource provider

Screenshot:

Sam Boutros on Thu, 24 May 2018 14:21:14


No luck

Tried unregister/re-register but no change..

Kartik P V R on Thu, 24 May 2018 15:59:21


Apologies Sam for the awful experience.

Can you please run the powershell command in "-debug" mode so that we can arrive at/point out the exact stage where it getting struck?

Sam Boutros on Thu, 24 May 2018 18:07:10


Register-AzureRmResourceProvider -ProviderNamespace $ProviderNamespace -Debug
DEBUG: 1:15:26 PM - RegisterAzureProviderCmdlet begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 1:15:30 PM - using account id 'sam.boutros@xxxxxx.com'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'sam.boutros@xxxxxx.com', environment: 'AzureCloud', tenant: 'xxxx-xxxx-xxxx-xxxx'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - AcquireTokenHandlerBase: === Token Acquisition started:
	Authority: https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxx/
	Resource: https://management.core.windows.net/
	ClientId: xxxx-xxxx-xxxx-xxxx
	CacheType: Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache (1 items)
	Authentication Target: User
	

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - TokenCache: Looking up cache for a token...

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - TokenCache: An item matching the requested resource was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - TokenCache: 59.4536590466667 minutes left until token in cache expires

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - TokenCache: A matching item (access token or refresh token or both) was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
	Access Token Hash: xxxx-xxxx-xxxx-xxxx=
	Refresh Token Hash: xxxx-xxxx-xxxx-xxxx=
	Expiration Time: 05/24/2018 18:15:02 +00:00
	User Hash: xxxx-xxxx-xxxx-xxxx=
	

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 05/24/2018 17:15:35:  - TokenCache: Serializing token cache with 1 items.

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - AcquireTokenHandlerBase: === Token Acquisition started:
	Authority: https://login.microsoftonline.com/xxxx-xxxx-xxxx-xxxx/
	Resource: https://management.core.windows.net/
	ClientId: xxxx-xxxx-xxxx-xxxx
	CacheType: Microsoft.Azure.Commands.Common.Authentication.AuthenticationStoreTokenCache (1 items)
	Authentication Target: User
	

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - TokenCache: Looking up cache for a token...

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - TokenCache: An item matching the requested resource was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - TokenCache: 59.4536590466667 minutes left until token in cache expires

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - TokenCache: A matching item (access token or refresh token or both) was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 05/24/2018 17:15:35: xxxx-xxxx-xxxx-xxxx - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:
	Access Token Hash: xxxx-xxxx-xxxx-xxxx=
	Refresh Token Hash: xxxx-xxxx-xxxx-xxxx=
	Expiration Time: 05/24/2018 18:15:02 +00:00
	User Hash: xxxx-xxxx-xxxx-xxxx=
	

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 05/24/2018 17:15:35:  - TokenCache: Serializing token cache with 1 items.

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.Backup/register?api-version=2017-05-10

Headers:
x-ms-client-request-id        : xxxx-xxxx-xxxx-xxxx
accept-language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-request-id               : xxxx-xxxx-xxxx-xxxx
x-ms-correlation-request-id   : xxxx-xxxx-xxxx-xxxx
x-ms-routing-request-id       : CANADAEAST:20180524T171535Z:xxxx-xxxx-xxxx-xxxx
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Thu, 24 May 2018 17:15:34 GMT

Body:
{
  "id": "/subscriptions/xxxx-xxxx-xxxx-xxxx/providers/Microsoft.Backup",
  "namespace": "Microsoft.Backup",
  "authorization": {
    "applicationId": "xxxx-xxxx-xxxx-xxxx",
    "roleDefinitionId": "xxxx-xxxx-xxxx-xxxx"
  },
  "resourceTypes": [
    {
      "resourceType": "BackupVault",
      "locations": [
        "West US",
        "East US",
        "North Europe",
        "West Europe",
        "Brazil South",
        "East Asia",
        "Southeast Asia",
        "North Central US",
        "South Central US",
        "Japan East",
        "Japan West",
        "Australia East",
        "Australia Southeast",
        "Central US",
        "East US 2",
        "Central India",
        "South India"
      ],
      "apiVersions": [
        "2015-03-15",
        "2014-09-01"
      ],
      "capabilities": "None"
    }
  ],
  "registrationState": "Registering"
}




ProviderNamespace : Microsoft.Backup
RegistrationState : Registering
ResourceTypes     : {BackupVault}
Locations         : {West US, East US, North Europe, West Europe...}

DEBUG: AzureQoSEvent: CommandName - Register-AzureRmResourceProvider; IsSuccess - True; Duration - 00:00:11.5863047; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 1:15:39 PM - RegisterAzureProviderCmdlet end processing.
DEBUG: 1:15:39 PM - RegisterAzureProviderCmdlet end processing.

Kartik P V R on Fri, 25 May 2018 04:06:10


Thanks, I will forward this to my engineering team to analyze and fix the issue.

Thanks for your patience

Kartik P V R on Fri, 25 May 2018 04:19:17


Apologies Sam,

Should have noted this immediately. You should register with "Microsoft.RecoveryServices" not "Microsoft.Backup". We have removed support for "Microsoft.Backup" (which was for Classic vaults, not the latest ARM resources)