Skip to content

Commit 62ed3b3

Browse files
authored
Updated key instructions
1 parent e8961b2 commit 62ed3b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Search/BingImageSearch/Quickstart/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ After getting the prerequisites above:
2828
1. View the quickstart available [here]([Quickstart: Search for images using the Bing Image Search SDK and Java](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/image-sdk-java-quickstart))
2929
1. git clone https://github.com/Azure-Samples/cognitive-services-java-sdk-samples.git
3030
2. cd cognitive-services-java-sdk-samples/Search/BingImageSearch/Quickstart
31-
3. Either set a system environment variable named `AZURE_BING_SAMPLES_API_KEY` to your cognitive Services API key, or copy your key into the program. If you are going to set the AZURE_BING_SAMPLES_API_KEY environment variable, make sure to set it based on your OS, then reopen your command prompt or IDE. If not, you might get an API key not found exception.
31+
3. Set a system environment variable named `BING_SEARCH_V7_SUBSCRIPTION_KEY` with your subscription key value,
32+
then reopen your command prompt or IDE. If not, you might get an API key not found exception.
3233
4. mvn compile exec:java
3334

3435
## More information

0 commit comments

Comments
 (0)