5 is not fixed. The call to create_virtual_wan_connection is successful, but the tasks fails in Azure causing the VPN tunnel to fail between MX and Azure on first attempt. Second attempt will create the tunnels successfully.
Expected Behavior
Create VPN gateway and connect it to a Hub in vWAN without any errors.
Steps to Reproduce
Have all perquisites built
Tag a networks with "vWAN-1"
Run the automation script in Azure
Write VpnGateways fails
Run the automation script in Azure
Write VpnGateways succeeds
Detailed Description
Logs show the following error.
"statusMessage": {
"status": "Failed",
"error": {
"code": "ResourceOperationFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [{
"code": "InvalidParameter",
"message": "The nrp resource uri '/subscriptions/97f34de4-264e-4e71-a6a0-XXXXXXXXXXXX/resourceGroups/Meraki-VWAN-RG/providers/Microsoft.Network/vpnSites/Office-Sydney/vpnSiteLinks/Office-Sydney-wan1' is invalid or the resource does not exist.",
"details":[]
}]
}
}
5 is not fixed. The call to create_virtual_wan_connection is successful, but the tasks fails in Azure causing the VPN tunnel to fail between MX and Azure on first attempt. Second attempt will create the tunnels successfully.
Expected Behavior
Create VPN gateway and connect it to a Hub in vWAN without any errors.
Steps to Reproduce
Detailed Description
Logs show the following error.
However, that resource seems to exist.
Possible Solution
Wait until the VPN link connection's provision state has "Succeeded". I expect create_virtual_wan_connection() is called when the state is "Updating".