Signing Up For Azure

Last updated 24 days ago

CREATE YOUR FREE MICROSOFT AZURE ACCOUNT

Some of the challenges on our site require a Microsoft Azure account in order for you to use Microsoft's Cognitive Services API. This API provides functions to analyse images, understand text, convert audio to text and more. For each Microsoft Cognitive API function you want to use, you need to create a resource in your Microsoft Azure account and then get an API key for that resource.

For example, if you want to OCR read text from an image, you would need an API key from the Computer Vision collection of services.

If you wanted to analyse faces, you would need a different API key for the Face collection of services

The challenges on this site require keys for the following

Microsoft Match Game

Only one key needed

Computer Vision API Key

Who's Who

Two keys needed

A Face API key

A Computer Vision API key

Creating a Trial Microsoft Azure Account

If you already have a Microsoft Azure account you can use this, otherwise, you can create a trial account in one of three ways:

2. 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​

3. You can sign up for a limited 7 day trial to just the Cognitive Services APIs that we will need for the event and you will not need to enter phone numbers and credit card details - if you would prefer to do that, please click here for instructions.

The 7 day trial signup gives you API keys for Computer Vision as soon as you login, you do not have to create resources as described in the Getting the API Keys section below.

NOTE: The 7 day trial only allows the use of resources in West Central US, so, you will need to update the template source code to point to West Central US region as described in the instructions page.

Getting the API Keys

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

We'll get a Face API key in this example, but, you follow the same steps for each API key that you need.

Getting a Face API Key

Select 'AI + Cognitive Service' and then 'Face API':

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

Here are details about the options you need to choose in this dialogue box.

Name - Enter a name so you can identify your service. This name will appear on your Azure dashboard e.g. 'face_api'.

Subscription - Select 'Azure for Students' or 'Free Trial'.

Location - Select 'West Europe'. You have to know the location you create services in. When you call the API, you will call it using a URL for the region the service exits in, so. make sure to use West Europe in this example.

Pricing tier

Choose an appropriate pricing tier. If you have a trial with free credit, you can select a pricing option that increases the number of calls you can make per minute or per second. If you are on a trial that does not have free credit you may be restricted to the 20 calls per minute tier. This will slow down your ability to make moves in games and could be a disadvantage.

Select free 'S0 (10 calls per second) if you can

Resource group - Create a new group and give it a descriptive name so you can identify it later if you need to. Maybe call it 'AIGaming Challenges'.

Pin to dashboard - Tick this option so that you will see the service on your dashboard when you login.

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:

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

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). You can use either Key 1 or Key 2, both are valid keys for this service.

That's it, you have created an API key for the Face Microsoft Cognitive API service. You will use this key in the code you write to access the Microsoft Cognitive API services.

If you just need a Face API key, you can skip to the next section, but, just for completeness, we included a similar section below that gets an API key for the Vision API

Getting a Vision API key

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:

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

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).

Using the API Keys in our Demo Code

The API keys you created through the above process can now be used in the demo code supplied in our Online Code Editor. Wherever you need an API key, we will have highlighted the place that you need to insert it with the following code:

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. In the examples below you can see that all our demo code API URLs expect API keys to be from the West Europe location:

BACKUP OPTION - COGNITIVE SERVICES TRIAL SIGN UP

As an alternative to signing up for a trial or student Azure account, you can sign up for access to just the Cognitive Services you will require for the game you are playing. This gives you a limited number of calls to the services for a 7 day period only, but should be sufficient if you are at one of our events or just want to experiment for a short time with these games. If you prefer to return to the Azure sign up instructions, please click here​

In order to participate in the Microsoft Match Game, you only need to sign up for the Computer Vision API, in order to participate in the Microsoft Who's Who game, you need to sign up for both the Face API and the Computer Vision API.

Microsoft Match Game

To start, please click the following link, and click the green button: