private void UpdateEncryptionKey(string secretId, EncryptionKey encryptionKey)
        {
            var task = Task.Run(async() =>
            {
                try
                {
                    await _client.SetSecretAsync(_keyVaultUrl, secretId, Convert.ToBase64String(encryptionKey.ToByteArray()));
                }
                catch (Exception ex)
                {
                    EventManager.KeyVaultFailed("SetSecretAsync", ex);
                }
            });

            task.Wait(_maxWaitTimeout);
        }