Face API registration
Once you have your Azure sandbox subscription, you can add a Face API resource and obtain the Face API URL and key needed to connect to this API.
Go to the Azure Cognitive Services Face Service and click on Try Face. Click on the Sign In button in the Existing Azure Account box. This will take you to the Azure Portal and open the Create Face dialog box. Enter the following information:
- a name for the Azure Face resource
Concierge Subscriptionfor the subscription
- leave the location at its default value
F0for pricing tier
Sandbox Resource Groupfor the Resource Group
Once the Azure resource has been deployed successfully, go to this resource and make a note of the API Endpoint and keys. You will need one of the keys to call the Face API. You can use either of the keys.
To create a Slack command, you need administrator privileges for a Slack workspace.
- If you already have a Slack workspace where you have admin privileges, you can use that. You can also create a brand new Slack workspace.
You do most of the exercises in this module on your local machine, deploying to your Azure sandbox as the final step.
Install Visual Studio Code
If you don't have it already, download and install Visual Studio Code
Add Azure Extensions to Visual Studio Code
If you don't have them already, install these VS Code extensions:
Install node and npm
If you don't already have them installed locally on your machine, Install node and npm for your operating system.
Clone the starter code
Cloning the starter code will help you get the most out of this module. All of the code you need to complete the app, and some initial bootstrap code, is available for free to get you started.
git clone https://github.com/MicrosoftDocs/mslearn-the-mojifier.git
You should be able to complete the project using the code provided, but if you can't figure something out, then you can find the completed code in the
Change into the directory containing the cloned source repository, then install the required packages:
cd mslearn-the-mojifier npm install
tscis installed when you run the
npm installcommand above, and the
package.jsonis configured to run it in the build stage. Run the following command:
npm run build