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.
Table of Contents
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.
- The remote name could not be resolved: ‘eastus.api.cognitive.microsoft.com’
- Failed To Validate The Notification URL SharePoint Webhook Azure Function Endpoint
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 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
- CategoryInfo : ObjectNotFound: (register-AzureProvider:String) [], Com
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 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

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
- CS1061 C# ‘HttpRequest’ does not contain a definition for ‘Content’ and no accessible extension method ‘Content’ accepting a first argument of type ‘HttpRequest’ could be found
- Create Azure Function using Visual Studio Code and PowerShell
- Error While Redeploying The Azure Function System.Exception: Publishing failed
- The subscription is not in registered state for the resource provider: Microsoft.Quota
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 !!!