The term ‘register-AzureProvider’ is not recognized as the name of a cmdlet

In this Azure tutorial, we will discuss how to fix the error The term ‘register-AzureProvider’ is not recognized as the name of a cmdlet that I got while working with Azure PowerShell.

The term ‘register-AzureProvider’ is not recognized as the
name of a cmdlet

Recently, while working with the Azure PowerShell. I was trying to register the namespace using the below PowerShell cmdlet.

PS C:\WINDOWS\system32> register-AzureProvider -ProviderNamespace Microsoft.Cdn

After executing the above cmdlet, I got the error The term ‘register-AzureProvider’ is not recognized as the
name of a cmdlet
. You can see it as below

The term 'register-AzureProvider' is not recognized as the name of a cmdlet

The complete error message is as below

register-AzureProvider: The term ‘register-AzureProvider’ is not recognized as the
name of a cmdlet, function, script file, or operable program. Check the spelling of
the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • register-AzureProvider -ProviderNamespace Microsoft.Cdn
  • ~~~~~~
    • CategoryInfo : ObjectNotFound: (register-AzureProvider:String) [], Com
      mandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

The term ‘register-AzureProvider’ is not recognized as the name of a cmdlet [Solved]

Well, to fix the error The term ‘register-AzureProvider’ is not recognized as the name of a cmdlet, we need to follow the below steps

Open the PowerShell ISE as Run as administrator mode

The term 'register-AzureProvider' is not recognized

The next step is, Run the below PowerShell cmdlet

PS C:\WINDOWS\system32> Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Cdn

You can able to see, we got the expected output as below

register-AzureProvider The term 'register-AzureProvider' is not recognized

The output is as below

PS C:\WINDOWS\system32> Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Cdn

ProviderNamespace : Microsoft.Cdn
RegistrationState : Registered
ResourceTypes : {profiles, profiles/endpoints, profiles/endpoints/origins,
profiles/endpoints/origingroups…}
Locations : {global, Australia East, Australia Southeast, Brazil South…}

This is how we can able to fix the error The term ‘register-AzureProvider’ is not recognized as the name of a cmdlet.

You may also like following the below articles

Wrapping Up

Well, in this article, we have discussed how to fix the error The term ‘register-AzureProvider’ is not recognized as the name of a cmdlet. Azure resource provider. Hope this will help you to fix your issue as well !!!