Create your free Microsoft Azure Account

To take part in this challenge you will need a Microsoft Azure account that will give you access to the Cognitive Services API.

If you already have a Microsoft Azure account you can use this otherwise if you are a student, you can use the link below to create a free academic account with $100 of free credit:

Visit aka.ms/azure4students

If you do not have access to an academic email address you have two options:

1. You can sign up for a free trial with £150 of free credit, however you will need to supply mobile phone information and a credit card, but Microsoft will not charge this unless you upgrade your account to a paid account (please see Microsoft Ts and Cs).
Visit azure.microsoft.com/en-gb/free

2. You can sign up for limited access to just the Cognitive Services APIs that we will need for the event - if you would prefer to do that, please click here for alternative instructions.

Once your account has been created you will be signed into the Azure Portal. Click on 'Create a resource' as hi-lighted in the screen below:

wiwsignup3.png

Then select 'AI + Cognitive Service' and then 'Face API':

wiwsignup4.png

This will display a new window to allow you to create the service:

wiwsignup1.png
  • Name - Enter the name of your service as it will appear on the Azure dashboard e.g. 'face_api'.
  • Subscription - Select 'Azure for Students' or 'Free Trial'.
  • Location - Select 'West Europe'.
  • Pricing tier - Select free 'S0 (10 calls per second)
  • Resource group - Create a new group called e.g. 'Group_test'.
  • Pin to dashboard - Tick to place an icon the dashboard for the service.

Once you have clicked 'Create' it will create the API service and after a few moments you will be directed to the screen as shown below:

wiwsignup5.png

Then click on 'Keys' in the section 'Grab your keys' and you will be redirected to the window as shown below:

wiwsignup6.png

IMPORTANT Take a note of 'Key 1' as you will need this when creating your bot (note in the picture above part of the key is blanked out for security reasons).

Now click on 'Create a resource', select 'AI + Cognitive Service' and then 'Vision API':

wiwsignup7.png

This will display a new window to allow you to create the service:

wiwsignup2.png
  • Name - Enter the name of your service as it will appear on the Azure dashboard e.g. 'Vision_api'.
  • Subscription - Select 'Azure for Students' or 'Free Trial'.
  • Location - Select 'West Europe'.
  • Pricing tier - Select free 'S1 (10 calls per second)
  • Resource group - Select the existing group e.g. 'Group_test'.
  • Pin to dashboard - Tick to place an icon the dashboard for the service.

Once you have clicked 'Create' it will create the API service and after a few moments you will be directed to the screen as shown below:

wiwsignup8.png

Then click on 'Keys' in the section 'Grab your keys' and you will be redirected to the window as shown below:

wiwsignup9.png

IMPORTANT Take a note of 'Key 1' as you will need this when creating your bot (note in the picture above part of the key is blanked out for security reasons).


The two "Key1"s you created through the above process can now be used in the demo code supplied in our Online Code Editor, replacing the placeholders:

headers_face = {'Ocp-Apim-Subscription-Key': 'YOUR-MICROSOFT-FACE-API-KEY-HERE'}
headers_vision = {'Ocp-Apim-Subscription-Key': 'YOUR-MICROSOFT-COMPUTER-VISION-API-KEY-HERE'}

If you want to use any of the other Microsoft API calls you will need to go through a similar process of selecting and creating the services.

When creating the service for some of the API calls be mindful of the location you select - if you choose something other than Western Europe, you will need to tailor the URLs when calling the APIs from your code.

face_api_url = 'https://westeurope.api.cognitive.microsoft.com/face/v1.0/detect'
face_compare_api_url = 'https://westeurope.api.cognitive.microsoft.com/face/v1.0/verify'
ocr_vision_api_url = 'https://westeurope.api.cognitive.microsoft.com/vision/v1.0/ocr'
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License