Skip to content

Azure C++ sdk for Secret related operation (Like GetSecret() )not working on Ubunut 20.04 but same code working on ubuntu18.04 #2848

@dhavalkaneria

Description

@dhavalkaneria

Query/Question
Azure C++ sdk for Secret related operation (Like GetSecret() )not working on Ubunut 20.04 but same code working on ubuntu 18.04.
I am getting KeyVault Client Exception on Ubuntu 20.04 VM system. Also not printing any reason phrase. same code working properly with Ubuntu 18.04 VM.

uname -a for Ubuntu 20.04 [ Linux dhaval-VirtualBox 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux]

for Ubuntu 18.04 [Linux dhaval-VirtualBox 5.4.0-81-generic #91~18.04.1-Ubuntu SMP Fri Jul 23 13:36:29 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux]
Is there anything I need to take care to install any library?
Azure c++ SDK supported higher version like Ubuntu 20.04 ?

Code:
SecretClient secretClient(keyVaultURL, credential);
std::cout << "after constructor" << std::endl;
// just a response, with a secret
auto response = secretClient.SetSecret("Test1","Test2");
Errors Message:

Access Token:eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im5PbzNaRHJPRFhFSzFqS1doWHNsSFJfS1hFZyIsImtpZCI6Im5PbzNaRHJPRFhFSzFqS1doWHNsSFJfS1hFZyJ9.eyJhdWQiOiJodHRwczovL3ZhdWx0LmF6dXJlLm5ldCIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzU4MjBhMjM2LTdiNDktNDgxZC1iYWRlLWQ5MDVlNWEzNzg3NS8iLCJpYXQiOjE2MzExMDYzNjIsIm5iZiI6MTYzMTEwNjM2MiwiZXhwIjoxNjMxMTEwMjYyLCJhaW8iOiJFMlpnWUpqdTZzS2hrVkM4OFBvQnBXVjdmMjY2QndBPSIsImFwcGlkIjoiNzIwNjk1YTctMmM3Mi00NzU2LTk2YTgtZmNlNTY4NDI3MjFlIiwiYXBwaWRhY3IiOiIxIiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTgyMGEyMzYtN2I0OS00ODFkLWJhZGUtZDkwNWU1YTM3ODc1LyIsIm9pZCI6IjA2NjU1NzlhLTVlYWMtNDIxMy05ZGY4LTE1NzdiMDdhMTU4YSIsInJoIjoiMC5BVG9BTnFJZ1dFbDdIVWk2M3RrRjVhTjRkYWVWQm5KeUxGWkhscWo4NVdoQ2NoNDZBQUEuIiwic3ViIjoiMDY2NTU3OWEtNWVhYy00MjEzLTlkZjgtMTU3N2IwN2ExNThhIiwidGlkIjoiNTgyMGEyMzYtN2I0OS00ODFkLWJhZGUtZDkwNWU1YTM3ODc1IiwidXRpIjoiTDdsd1BKb194MEd2ZWpXTW5NaldBQSIsInZlciI6IjEuMCJ9.MvMoPY6C-8ep1Ivk6KGNNDB7njbbfi9e8iPhGF1snTrCUlnDrPDUUiiUZZJk3V7mKe_pj3Bgrqt8pMjDK591vkBObCNz3wq6KPMTUTYE_b-vm1KSLBhr29iG41I8g63K8i9zWuoJE5zK_89ClwGwKbbxe_7Q_m-Fz28OYLmRr_Y1gGLyPVmizIOrQPW109LUhGN8kr1mhIeokcS45GjdXcMHd0Mpbq_wiisxCnO_aErVLyVCMSm7AcxCdK9PJbe-CljtetjSrJt5tUm6cM3dmxHEbckBqnbNXHpPyDghYne_oFI67XjoiOOClrISC55XfKRUfwvkxI9REjNqSIOpnQ
Status Code: 0, Reason Phrase:
KeyVault Client Exception error:

Why is this not a Bug or a feature Request?
A clear explanation of why is this not a bug or a feature request?

Setup (please complete the following information if applicable):

  • OS: Ubuntu 20.04 and Ubuntu 18.04
  • IDE : Visual Code
  • latest release

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [* ] Query Added
  • [ *] Setup information Added

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.KeyVaultbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions