First, this project requires Visual Studio 2017 with the ASP.NET and web tools workload.
For detailed instructions, see the blog post for this project, which walks through everything with pretty pictures.
- Get an Azure subscription (it's free to start, and cheap for something as simple as this).
- Create a Cognitive Services resource.
- Create an Azure Storage resource.
Open the Web.Config file and modify the placeholder values with API keys that you grabbed from the Azure Portal:
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<!-- Azure Storage -->
<add key="AzureStorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=account-name;AccountKey=account-key" />
<!-- Azure Cognitive Services -->
<add key="CognitiveServiciesUrl" value="YOUR_PROVIDED_URL_HERE" /> <!-- See here: https://azure.microsoft.comtry/cognitive-services/ -->
<add key="CognitiveServicesFaceApiKey" value="YOUR_PROVIDED_KEY_HERE" /> <!-- See here: https://azure.microsoft.comtry/cognitive-services/ -->
</appSettings>
The easiest way to publish is via Right-click > Publish to Azure. However, you can publish a number of ways, including by configuring this project to run via a CI/CD pipeline.