Describe the bug
When trying to deploy a connection of type IPsec, it fails stating that a connection must have exactly two endpoints:
New-AzResourceGroupDeployment: 15:57:51 - The deployment 'deploy' failed with error(s). Showing 1 out of 1 error(s).
Status Message: Virtual Network Gateway connection /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Network/connections/<connectionName> must have exactly two endpoints. The first endpoint must be a VirtualNetworkGateway, the second endpoint can be a VirtualNetworkGateway or a LocalNetworkGateway or a ExpressRouteCircuit. (Code: GatewayConnectionMustHaveExactlyTwoEndpoints)
CorrelationId: 5fa19b24-8e0a-4067-979c-0240e28d477e

To reproduce
Deploy a connection of type IPsec
Code snippet
No response
Relevant log output
No response
Solution
Update the casing to "IPsec" as done in here
Describe the bug
When trying to deploy a connection of type IPsec, it fails stating that a connection must have exactly two endpoints:
To reproduce
Deploy a connection of type IPsec
Code snippet
No response
Relevant log output
No response
Solution
Update the casing to "IPsec" as done in here