title: Getting Database names from SQLAzure using powershell in azure devops
body: <p>I have a need to list down all the database names of a particular server on Azure.</p>
  <pre><code>$databases = Get-AzSqlDatabase -ServerName servername -ResourceGroupName resourcegroupname
  foreach($dbs in $databases)
  {
      $dbs.DatabaseName
  }
  </code></pre>
  <p>this script works well run from local.</p>
  <p>My question is how to run this from an Azure DevOps release using the powershell task?</p>