a) First go to https://shell.azure.com
b) Once you have chosen your subscription and logged in, run the commands as shown below to create the Service Principal. This service principal will be used to generate the token which can be used in your REST API calls.
c) Download and install Postman
d) Open Postman App and create a new "POST" Request and provide the details as shown below using the output from b) to generate a token by clicking "Send".
- tenant = tenantId
- appId = clientId
- password = clientSecret
- subscription = [Get it from Azure Portal]
e) The above step will provide the access_token and copy it so that it can be used in subsequent API calls.
f) Create a new request in "GET" request and provide the Authorization token from the previous step and click on "Send"
g) The above endpoint will list all the operations available with the Azure SQL Database REST API and sample response is provided below.
h) You can use any REST API operations similar to above. Here is the list of all API operations that you can try. - https://docs.microsoft.com/en-us/rest/api/sql/