Can an Azure VPN gateway be scheduled off outside business hours?

November 19, 2026 4 answers
Asked by p.539!fablewicket

We have a site-to-site VPN and standalone VPN clients. Most work happens between 8 a.m. and 5 p.m. Can we shut the gateway down outside those hours to reduce costs?

Answers

r.735!marblewicket

There is no stop state for an Azure virtual network gateway. The hourly gateway charge continues while the resource exists, so avoiding it would mean deleting and later recreating the gateway.

That is more involved than toggling a schedule. Connections are child resources, and point-to-site settings live on the gateway, so those need to be recreated too. Provisioning can take a long time, which makes a reliable morning startup tricky.

6v!canvasratchet_382:

Check the public IP separately as well. It is its own resource, so deleting the gateway does not necessarily remove it.

Reply to this answer
5u!parcelthimble_638

Start with the bill and the gateway SKU before building automation. Work out how many hours you could actually eliminate, then compare that saving with the effort and risk of rebuilding the service every day. Data charges would still apply to traffic sent while it is running.

The gateway cost is not necessarily the same as the cost of other network services. Check those separately rather than assuming the VPN is the biggest recurring charge.

Reply to this answer
r.746!ferrulecaddy

Even if the schedule is technically possible, what happens when someone needs access late at night or during a security incident? A failed rebuild on Monday morning could wipe out a lot of the value of a modest saving.

4t~copperwinder_731:

A fallback access method and a tested recovery process would matter if you decide to automate deletion and recreation.

Reply to this answer
4v+claspmarble_618

If the gateway cost does not fit the budget, compare another VPN solution rather than trying to force a daily shutdown. Check that any alternative supports both the site connection and remote clients, and include its operating and maintenance costs in the comparison.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions