Sinatra applications require an extra step on top of the steps required for go and nodejs
applications. Sinatra applications require an inbound security rule to allow access to port 4567.
-
To open port 4567 for your application, run the following command using your Azure client.
az network nsg rule create -g MyResourceGroup --nsg-name MyNsg -n sinatra-incoming --priority 1010 --source-address-prefix * --source-port-range * --destination-address-prefix * --destination-port-range 4567 --access Allow --protocol Any --description "Allow traffic to the 4567 port."
After you push your code successfully to Azure using git, and add the inbound security rules you should see something like the following when you select your application URL: