I had previously configured a load balancer and added my VM in its backend pool.
For uploading security certificate I have created an application gateway.
Now I am stuck for the part where my existing VM should be pointing to this new application gateway.