Hi
Taranjeet Malik,
Welcome to Microsoft Q&A forum.
As I understand, you are unable to get details of Azure SQL Database by using Powershell commands.
From the error it looks like Database does not exist inside the server which is mentioned in the command.
Kindly check if the Powershell command syntax is correct with all parameters named.
Also, refer to https://learn.microsoft.com/en-us/powershell/module/az.sql/get-azsqldatabase?view=azps-11.2.0 which has different commandlets which illustrates ways of getting DB details.
Example:
Get-AzSqlDatabase -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database02"
Please share sample Powershell command in use if above does not help.
Thanks