automatically connect to Azure Point-to-Site VPN on login

I have an Azure point-to-site VPN that works fine. However, Windows 10 has made the connection harder to establish because it requires five clicks: the network icon in the system tray; the VPN icon; the VPN icon in the Network & Internet panel; the Connect button that starts the connection program; the Connect button on the connection program.

Two questions:
1) Where is the connection program? I'd like to put a shortcut on the desktop.
2) Is it possible to automate the VPN connection on login?
LVL 31
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jian An LimSolutions ArchitectCommented:
create short on desktop via
https://shiftkeysoftware.wordpress.com/2015/08/24/quickly-connect-to-a-vpn-on-windows-10/

you can create startup the shortcut on login
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperAuthor Commented:
Thanks for the suggestion, but unfortunately,
   rasdial <VPNname>
doesn't work for an Azure VPN. It returns this error:
   "This function is not supported on this system."

A bit of searching reveals that this error doesn't necessary mean what it sounds like because rasdial is supported on Windows 10. It can also mean that there is a format error in the command line. However,
   rasdial /?
shows that "rasdial <VPNname>" is correct.

I also tried
   rasphone <VPNname>
which actually works -- except that is doesn't just connect. It pops a dialog that still requires two clicks to connect.

I'm looking for a command that connects to the Azure VPN all by itself -- no additional clicks or selections required.

Other ideas?
Jian An LimSolutions ArchitectCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Scott HelmersVisio Consultant, Trainer, Author, and DeveloperAuthor Commented:
This looks like exactly what  need. I'll report back after I have a chance to try it.
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperAuthor Commented:
I still haven't had time to try the solution proposed by Jian An Lim but it certainly looks correct. Rather than leave this as a neglected question, I'll close it and only report back if the solution doesn't work. Thanks for the help.
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperAuthor Commented:
I'm happy to report that the lengthy solution in the article posted by Jian An Lim works as advertised.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VPN

From novice to tech pro — start learning today.