title: How to register resource providers using Azure fluent resource management?
body: <p>I'd like to fully automate my resource creation process. Unfortunately brand new subscriptions don't have a few resource providers registered by default. E.g. SQL.
  That's easily solved as described here: <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors#noregisteredproviderfound" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors#noregisteredproviderfound</a></p>
  
  <p>However this only outlines methods using either manually using the portal or using Powershell.</p>
  
  <p>I'm looking for a solution using <code>Microsoft.Azure.Management.ResourceManager.Fluent</code></p>
  
  <p>It seems inconsistent that I wouldn't be able to do it using C#, but I can't seem to be able to find the functionality anywhere.</p>
  
  <p><strong>How to register resource providers for a new subscription using Azure fluent resource management?</strong></p>