If you lose connectivity across your S2S Azure VPN, you can reset the gateway device using the following PowerShell script.

Resource Manager Deployment Model
Classic Deployment Model