MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Error: Set the COMPUTER_VISION_SUBSCRIPTION_KEY environment variable. **Restart your shell or IDE for changes to take effect.** #62138

Closed Tylersuard closed 4 years ago

Tylersuard commented 4 years ago

I set my key and my endpoint, but I still get this error, no matter how many times I restart my IDE (VScode by the way).

[Enter feedback here]


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ram-msft commented 4 years ago

@Tylersuard Thanks for the question! We will review and update accordingly.

ram-msft commented 4 years ago

Thanks, after setting the COMPUTER_VISION_SUBSCRIPTION_KEY and COMPUTER_VISION_ENDPOINT respectively we are able to execute the sample successfully as shown below. please check os.environ returns set of environment variables If not please add the same. image

ram-msft commented 4 years ago

@Tylersuard We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.