In order to connect to Azure Database and create access token, you will need to make sure that the Azure Database is accessible from outside server i.e. AgilePoint NX server in this case. So you will need to make sure a firewall rule is added in Azure Database to allow all IP addresses to make incoming call as shown below
After that you would create access token just like any other Database