I’m trying to run a simple bash script file from azure CLI in azure portal. But it is throwing error as “Operation returned an invalid status ‘Bad Request'” . Can you please help on the correct syntax for the below azure CLI command with varibale for bash?
#!/bin/bash
rgName="my-train-rg01"
serverName="test-db-svc-primary"
#echo $rgName
#echo $serverName
#echo "Hellow Wrold!"
az sql db list --resource-group $rgName --server $serverName