Azure/azure_preview_modules

The lookup plugin azure_keyvault_secret is very slow on a non-Azure VM

Opened this issue · 1 comments

It looks like these codes are used to determine whether it is running on an Azure VM
https://github.com/Azure/azure_preview_modules/blob/master/lookup_plugins/azure_keyvault_secret.py#L102
But it caused a performance issue on non-Azure VM.
The user has to wait until the HTTP request timeout

lukos commented

This is a really big problem for us. Normally this response should return really quickly so at minimum, please set a timeout of e.g. 5 seconds. Currently a simple lookup is taking 2 minutes!