Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to find Subscription Key for Microsoft Cognitive Services

I need to work on Microsoft Cognitive Services (Face API). I downloaded the code from https://github.com/Microsoft/Cognitive-face-android. Now I am unable to generate the Subscription Key for it. No matter whatever I do I get stuck in this page enter image description here

From where else I can find the Subscription Key. Thanks

like image 608
Syeda Zunaira Avatar asked Nov 23 '16 05:11

Syeda Zunaira


People also ask

How do I find my cognitive service key?

You can retrieve your Microsoft Cognitive Services Labs keys by going to https://labs.cognitive.microsoft.com/en-us/subscriptions and signing in with your account, Hotmail, LinkedIn, or GitHub.

Where do I find my OCP Apim subscription key?

The subscription key can be found under user profile in the API Manager Portal. The subscription key is assigned to the Ocp-Apim-Subscription-Key parameter the header.

Is Azure cognitive services free?

Innovate at no cost to you, with out-of-the box AI services that are newly available for Azure free account users. Join the 1.3 million developers who have been using Cognitive Services to build AI powered apps to date.

What is cognitive services Microsoft?

These advances in the democratization of artificial intelligence are coming in part from Microsoft Cognitive Services, a collection of 25 tools that allow developers to add features such as emotion and sentiment detection, vision and speech recognition, and language understanding to their applications with zero ...


2 Answers

The interface you are using is for testing-purposes. Consequently, it is not meant to be used for more than a month.

Here's how you can generate an API key the proper way:

Newer Edit: The Azure interface has changed since this guide was written. It hasn't changed that much, so leave me a comment if this guide is broken.
The largest change I have seen is that Bing Search API can now be located directly using the "+ New" form shown in Part A/Step 3. (aka, don't search for "cognitive services")

Edit: There is now another piece of documentation half-way down entitled "Part B: Adding a Credit Card for Pay-As-You-Go via the Azure Portal." If you have not already set up your payment method on portal.azure.com, you will get stuck at Part A/step 5.
process.

Part A:

  1. Go to https://portal.azure.com and sign in with your credentials.
  2. (Optional) Check to make sure you have an active Pay-As-You-Go(PAYG) subscription. Click the "More services" arrow and type subscriptions into the form that appears. Click into Subscriptions and make sure you see an entry here.** enter image description here
  3. If you're sure you have an active PAYG acct, make sure you're on the dashboard and press the green "+ New" button and start to type Cognitive Services. As you finish typing it should be your only option.enter image description here
  4. Once you've clicked the "Cognitive Services APIs" suggestion you will be brought to the following page. Click the green brain.enter image description here
  5. You'll be given a description of Cognitive services and you'll see a create button at the bottom. Press that.
  6. The "Create" pane will pop up. Fill this out. CHECK THE PIN TO DASHBOARD BOX FIRST SO YOU DON'T FORGET (Note: If you do not have an active PAYG subscription you will see an error instead of the "Create" pane on the right-side of the image below.)enter image description here
  7. When you press the green-explosion from the picture above you will see the following icon: enter image description here

This is what you want. When you've completed the form from the previous picture, press "Create" below the "pin to dashboard" box.

  1. When you've created the subscription successfully, you'll get a little message that things are validated and your service is deploying. You should be on the dashboard now and should see a little tessellating box if you pressed pin to dashboard. Soon it will be complete and vuala!You'll see something similar to the following image. Press the "keys" button on your new service.enter image description here

** If you're told that "You don't have any active subscriptions," you'll need to click the white "Add+" button and create a PAYG subscription. You will need a credit-card and non-VoIP phone for this step.

Part B:

Adding a Credit Card for Pay-As-You-Go via the Azure Portal

This portion of the process is necessary if you have never used portal.azure.com before and/or don't have an active payment-subscription on it.

  1. For this process you will need: A valid credit-card**, a non-voip telephone for human-verification, >= $3 USD for the lowest API tier.

  2. TO AVOID POTENTIAL HEADACHES; DO NOT USE GOOGLE CHROME FOR THESE STEPS. If you are on a Windows 10 Machine use Edge in InPrivate mode as your browser. Otherwise, firefox private-browsing is a decent alternative.hoooray paint.

  3. Follow steps 1 & 2 from the guide above to navigate to the Subscriptions pane. Underneath the circled "+ Add" button, you should see a message telling you there are "No subscriptions in xxxxx(Default Diretory) directory." Click the "+ Add" button.enter image description here

  4. You will be taken to the URL https://account.windowsazure.com/signup?showCatalog=True, and you should see the following screen:enter image description here

  5. As the picture above indicates. Select Pay-as-you-go (PAYG) unless you want to go off-guide. You'll be brought here & will need to fill out the 3 sections. Your card won't be charged during this process.enter image description here

  6. Once you complete the 3 steps denoted in the image above, you'll be taken to a page which asks you to wait for ~4 mins while your subscription is getting ready & you'll see that fun little animation of spinning half-circles. Eventually you'll be presented with a button which is labeled "Start Managing my Services. Which will take you back to the dashboard at portal.azure.com.

  7. From the dashboard, Find the "Subscriptions" pane again, and this time you should see something similar to the following. enter image description here

  8. You now have a payment method with which to purchase your API subscription. From here you can resume at Step 3 of Creating an API Endpoint & Accessing Your Keys aka the first half of this guide.

** Your credit-card must have a billing address located in the country which your Microsoft username/password combo was created in.

like image 66
Rob Truxal Avatar answered Oct 12 '22 05:10

Rob Truxal


For the subscription key, you have to create the cognitive service account in azure portal. Follow the following steps:

If you have not done so already, you will need to sign up for the Face API (preview) service.

  1. Go to the Azure Portal at http://portal.azure.com/ and sign in with your Azure account.
  2. Click on + New.
  3. Select the Intelligence option.
  4. Select the Cognitive Services APIs product. This product will allow you to start a subscription for any of the cognitive services APIs (Face, Text Analytics, Computer Vision, etc.). Today we will focus on the Face API (preview) API.
  5. Enter a Resource name for your Face API subscription. (For instance: "MyFaceAPI"). This name should not have any spaces in it.
  6. On API type, select .
  7. On Pricing tier, you can select a plan. You may select the Free tier for 10,000 transactions/month. This is a free plan, so it is a good way to start trying the system. Once you go to production, we recommend you consider your request volume and change the plan type accordingly.
  8. Select a Resource Group, or create a new one if you don't have one already.
  9. You may change other elements in the Create dialog. We should point out that the resource provider today is only supported from United States data centers. Once you are done with any selections, click Create.
  10. Wait a few minutes for the resource to be deployed. Once it is deployed, you can go to the Keys section in the Settings blade where you will be provided a primary and secondary key to use the API. Copy the primary key, as you'll need it when creating your first model.

Hope this help.

REF:

See this image for the azure portal registration

like image 4
Aung Avatar answered Oct 12 '22 07:10

Aung