Hello Michael Meier
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
The GatewayTimeout error occurs when the gateway does not receive a response from the backend within the specified time period. This can happen due to a variety of reasons, such as network connectivity issues, high load on the backend, or issues with the DevTest Lab service itself.
To troubleshoot this issue, you can try the following steps:
-Check the status of the DevTest Lab service in the Azure portal. If the service is experiencing issues, it may be causing the GatewayTimeout error. You can also check the Azure status page to see if there are any known issues with the service.
-Check the network connectivity between the DevTest Lab and the backend pool. If there is a network issue, resolve it and try provisioning the VM again.
-Check the size of the VM that you are trying to provision. If the VM size is too large, try provisioning a smaller VM size.
-Increase the timeout value for the gateway. You can do this by modifying the Backend Setting for the DevTest Lab service.
-Try provisioning the VM during off-peak hours when there is less load on the backend.
If none of these steps resolve the issue, you can submit a support ticket to Microsoft for further assistance as mentioned in the previous comment. I hope this helps!