title: Find Azure ResourceGroup from Azure SQL Server Name
body: <p>I'm trying to write a powershell script that deploys a BACPAC to an Azure database. I found this <a href="https://docs.microsoft.com/en-us/azure/sql-database/scripts/sql-database-import-from-bacpac-powershell" rel="nofollow noreferrer">example</a> on the Microsoft site</p>
  
  <p>I don't have to have to ask which resource group the SQL Server is in so using Powershell, is it possible to find the resource group a SQL server resides in if you only know the server name?</p>