Disable/Enable Virtual network gateway (ExpressRoute)

jb_devel 60 Reputation points
2024-11-13T05:49:49.1966667+00:00

Hello, I am new to Azure.

My question is: Can the Virtual Network Gateway (ExpressRoute) be disabled in the development and staging environments to minimize subscription costs? If yes, can it be easily re-enabled, or would I need to recreate the service from scratch? Thank you.

Azure ExpressRoute
Azure ExpressRoute
An Azure service that provides private connections between Azure datacenters and infrastructure, either on premises or in a colocation environment.
398 questions
{count} votes

Accepted answer
  1. Marcin Policht 29,885 Reputation points MVP
    2024-11-13T06:13:36.49+00:00

    While you cannot directly "turn off" the gateway as you might with other resources, you can effectively disable the gateway by deleting the connection to ExpressRoute and the gateway itself. However, when you delete the gateway, the following happens:

    • The ExpressRoute circuit remains intact (if you don’t delete the ExpressRoute circuit itself), so the connection to the on-premises network is removed, but you won't lose the configuration of the circuit.
    • The Virtual Network Gateway is deleted, meaning any associated public IP addresses and gateway-specific settings will be removed.

    You’ll still incur some costs for the ExpressRoute circuit itself (unless you fully delete it), even when the gateway is deleted. The actual Virtual Network Gateway charges are mainly incurred for the gateway and the associated data transfer. If you only delete the gateway, it should minimize costs, but be aware that the circuit could still incur costs depending on the ExpressRoute plan you have.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.