title: Azure Runbook - No subscription found in the context
body: <h2>Background:</h2>
  
  <p>I am trying to set up a script via Runbooks on Azure. What I find unusual is that I can run the command via the Azure Powershell Cloud Shell and it works. However, when I try to run it via the Runbook, I recieve an error(See below).</p>
  
  <h2>The Script:</h2>
  
  <pre><code>$ResourceGroupName = "group"
  $ServerName = "serverName"
  $DatabaseName = "databaseName"
  $StorageKeyType = "StorageAccessKey"
  $StorageKey = "storageKey"
  $StorageUri = "storageUri"
  $AdminLogin = "admin"
  $AdminPassword = (ConvertTo-SecureString "12345" -AsPlainText -Force)
  
  New-AzureRmSqlDatabaseExport `
          -AdministratorLogin $AdminLogin `
          -AdministratorLoginPassword $AdminPassword `
          -DatabaseName $DatabaseName `
          -ResourceGroupName $ResourceGroupName `
          -ServerName $ServerName `
          -StorageKey $StorageKey `
          -StorageKeyType $StorageKeyType `
          -StorageUri $StorageUri `
  </code></pre>
  
  <p>**Generic values used</p>
  
  <h2>The Error:</h2>
  
  <pre><code>New-AzureRmSqlDatabaseExport : No subscription found in the context.  Please ensure that the credentials you provided 
  are authorized to access an Azure subscription, then run Connect-AzureRmAccount to login.
  At line:10 char:1
  + New-AzureRmSqlDatabaseExport `
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : CloseError: (:) [New-AzureRmSqlDatabaseExport], ApplicationException
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.Sql.ImportExport.Cmdlet.NewAzureSqlDatabaseExport
  </code></pre>
  
  <h2>The Question:</h2>
  
  <p>What am I doing wrong? I the password and username that I am using are the ones that are used everywhere else, and work when I run the script in the Cloud Shell. Also, what is meant by <em>"No subscription found in the context"</em>?</p>