title: MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.Storage'
body: <p>Tried to run the <a href="https://github.com/Azure/azure-sdk-for-java/blob/master/azure-mgmt-samples/src/main/java/com/microsoft/azure/samples/compute/CreateVMExample.java" rel="nofollow">CreateVMExample.java</a> from Azure-Java-SDK</p>
  
  <pre><code>   VirtualMachine vm = ComputeHelper.createVM(
                          resourceManagementClient, computeManagementClient, networkResourceProviderClient, storageManagementClient,
                          context, "javaSampleVM", "Foo12", "BaR@123rgababaab")
                          .getVirtualMachine();
  
                  System.out.println(vm.getName() + " is created");
  </code></pre>
  
  <p>and got the following error.</p>
  
  <pre><code>Exception in thread "main" java.util.concurrent.ExecutionException: com.microsoft.windowsazure.exception.ServiceException: MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.Storage'.
      at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      at java.util.concurrent.FutureTask.get(FutureTask.java:188)
      at com.microsoft.azure.management.storage.StorageAccountOperationsImpl.create(StorageAccountOperationsImpl.java:737)
      at com.microsoft.azure.utility.StorageHelper.createStorageAccount(StorageHelper.java:71)
      at com.microsoft.azure.utility.StorageHelper.createStorageAccount(StorageHelper.java:53)
      at com.microsoft.azure.utility.ComputeHelper.createVM(ComputeHelper.java:246)
      at com.microsoft.azure.utility.ComputeHelper.createVM(ComputeHelper.java:213)
      at com.microsoft.azure.auth.CreateVMExample.main(CreateVMExample.java:74)
  </code></pre>
  
  <p>As I'm new to Azure from AWS, couldn't understand where to begin. saw same kind of error releavnt to Azure PS. But not much helpful. Please suggest something. I'm using Azure Active Directory Auth. Thanks.</p>