The Start-AzVirtualNetworkGatewaySiteFailoverTest cmdlet initiates a failover simulation on the virtual network gateway, specifically for the given PeeringLocation. This is useful for testing the gateway's ability to failover and ensure network resiliency.
You can specify the Type of the failover test, either:
SingleSiteFailover: A test to simulate a failover for a single site.
MultiSiteFailover: A test to simulate a failover for multiple sites.
By default, the test will be performed using the SingleSiteFailover type unless specified otherwise. The failover test helps ensure that the virtual network gateway can handle failovers correctly and that any issues are identified proactively.
This example starts a failover simulation for the virtual network gateway "test_gateway" in the "test_rg" resource group for the peering location EastUS. By default, a SingleSiteFailover test will be performed.
This example starts a failover simulation for the virtual network gateway "test_gateway" in the "test_rg" resource group for the EastUS peering location. The test type is set to MultiSiteFailover, meaning the test will simulate failover for multiple sites.
Parameters
-AcquirePolicyToken
Acquire an Azure Policy token automatically for this resource operation.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.