I need to make a call using Azure REST API to get the list of databases and delete the particular database if exits.
If somebody could give me a shell script that would be helpful. I tried this to list Azure SQL Databases on a given server
wget -U --no-check-certificate https://management.core.windows.net:8443/ subscriptionID/services/sqlservers/servers/serverName/p1y/databases? contentview=generic
--2016-01-22 22:15:57-- https://management.core.windows.net:8443/${subscriptionID}/services/sqlservers/servers/${serverName}/databases?contentview=generic
Resolving management.core.windows.net (management.core.windows.net)...xx.xxx.xxx.xxx
Connecting to management.core.windows.net (management.core.windows.net)|xx.xxx.xxx.xxx|:8443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2016-01-22 22:15:57 ERROR 403: Forbidden.
Note: I am not allowed to install AZURE CLI on the server. AZURE CLI makes my work easy :(