Skip to content

Commit 06c9128

Browse files
authored
Merge pull request #51 from wiazur/patch-11
Updated endpoint
2 parents d88c826 + 951d384 commit 06c9128

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

dotnet/Face/ComputerVision1.0.cs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,9 @@ static class Program
1515
// *** Update or verify the following values. ***
1616
// **********************************************
1717

18-
// Replace the subscriptionKey string value with your valid subscription key.
19-
const string subscriptionKey = "Enter key here";
20-
21-
// Replace or verify the region.
22-
//
23-
// You must use the same region in your REST API call as you used to obtain your subscription keys.
24-
// For example, if you obtained your subscription keys from the westus region, replace
25-
// "westcentralus" in the URI below with "westus".
26-
//
27-
// NOTE: Free trial subscription keys are generated in the westcentralus region, so if you are using
28-
// a free trial subscription key, you should not need to change this region.
29-
const string uriBase = "https://westcentralus.api.cognitive.microsoft.com/vision/v1.0/analyze";
30-
18+
// Add your Azure Computer Vision subscription key and endpoint to your environment variables
19+
const string subscriptionKey = Environment.GetEnvironmentVariable("COMPUTER_VISION_SUBSCRIPTION_KEY");
20+
const string uriBase = Environment.GetEnvironmentVariable("COMPUTER_VISION_ENDPOINT");
3121

3222
static void Main()
3323
{

0 commit comments

Comments
 (0)