In the Azure Key Vault .NET Quickstart, the variables tenantId and subscriptionId are set from environment variables. It seems that these are leftovers from https://github.com/Azure-Samples/key-vault-dotnet-core-quickstart/commit/12cc86d8506357cfc0c6c53fab66e8f771cb5da5 , as they were used before this commit but were not removed when the sample code was updated.
The article mentions that these are used for authentication, but it seems now that they are unnecessary for the use-case shown. This would require an update to both the example code and the article.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@Chris-Johnston Thank you for pointing that out. We will ave this checked and update the content authors as necessary.
@Chris-Johnston: I have updated both the authentication section in the quickstart and the code sample itself. Thanks again for all your feedback -- it is hugely appreciated.