{"id":657,"date":"2021-11-20T22:31:30","date_gmt":"2021-11-20T22:31:30","guid":{"rendered":"http:\/\/192.168.8.123\/?p=657"},"modified":"2022-02-11T11:17:18","modified_gmt":"2022-02-11T11:17:18","slug":"setting-up-windows-10-environment-for-ai-apps-with-azure-cognitive-services","status":"publish","type":"post","link":"https:\/\/exceedthecloud.com\/?p=657","title":{"rendered":"Setting up Windows 10 environment for AI Apps with Azure Cognitive Services"},"content":{"rendered":"\n<p>If you want to complete the exercise on your own computer, you can do so by installing the following software. You may experience unexpected dialogs and behavior when using your own environment. Due to the wide range of possible local configurations.<\/p>\n\n\n\n<p>Prerequisites for this labs : <a rel=\"noreferrer noopener\" href=\"https:\/\/azure.microsoft.com\/en-us\/free\/\" target=\"_blank\">Azure Account<\/a><\/p>\n\n\n\n<p><strong>Note<\/strong>: The instructions below are for a Windows 10 computer. You can also use Linux or MacOS. You may need to adapt the lab instructions for your chosen OS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"base-operating-system-windows-10\">Base Operating System (Windows 10)<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"windows-10\">Windows 10<\/h4>\n\n\n\n<p>Install Windows 10 and apply all updates.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"edge\">Edge<\/h4>\n\n\n\n<p>Install <a href=\"https:\/\/microsoft.com\/edge\" target=\"_blank\" rel=\"noreferrer noopener\">Edge (Chromium)<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"net-core-sdk\">.NET Core SDK<\/h3>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Download and install from <a href=\"https:\/\/dotnet.microsoft.com\/download\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/dotnet.microsoft.com\/download<\/a> (download .NET Core SDK &#8211; not just the runtime)<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"c-redistributable\">C++ Redistributable<\/h3>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Download and install the Visual C++ Redistributable (x64) from <a href=\"https:\/\/aka.ms\/vs\/16\/release\/vc_redist.x64.exe\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/aka.ms\/vs\/16\/release\/vc_redist.x64.exe<\/a>.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"node-js\">Node.JS<\/h3>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Download the latest LTS version from <a href=\"https:\/\/nodejs.org\/en\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/nodejs.org\/en\/download\/<\/a><\/li><li>Install using the default options<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"python-and-required-packages\">Python (and required packages)<\/h3>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Download version 3.8 from <a href=\"https:\/\/docs.conda.io\/en\/latest\/miniconda.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.conda.io\/en\/latest\/miniconda.html<\/a><\/li><li>Run setup to install &#8211; <strong>Important<\/strong>: Select the options to add Miniconda to the PATH variable and to register Miniconda as the default Python environment.<\/li><li>After installation, open the Anaconda prompt and enter the following commands to install packages:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install flask requests python-dotenv pylint matplotlib pillow\npip install --upgrade numpy\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img1-2.png\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"azure-cli\">Azure CLI<\/h3>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Download from <a href=\"https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/install-azure-cli?view=azure-cli-latest\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.microsoft.com\/en-us\/cli\/azure\/install-azure-cli?view=azure-cli-latest<\/a><\/li><li>Install using the default options<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"git\">Git<\/h3>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Download and install from <a href=\"https:\/\/git-scm.com\/download.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/git-scm.com\/download.html<\/a>, using the default options<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"visual-studio-code-and-extensions\">Visual Studio Code (and extensions)<\/h3>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Download from <a href=\"https:\/\/code.visualstudio.com\/Download\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/code.visualstudio.com\/Download<\/a><\/li><li>Install using the default options<\/li><li>After installation, start Visual Studio Code and on the <strong>Extensions<\/strong> tab (CTRL+SHIFT+X), search for and install the following extensions from Microsoft:<ul><li>Python<\/li><li>C#<\/li><li>Azure Functions<\/li><li>PowerShell<\/li><\/ul><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"bot-framework-emulator\">Bot Framework Emulator<\/h3>\n\n\n\n<p>Follow the instructions at <a href=\"https:\/\/github.com\/Microsoft\/BotFramework-Emulator\/blob\/master\/README.md\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/Microsoft\/BotFramework-Emulator\/blob\/master\/README.md<\/a> to download and install the latest stable version of the Bot Framework Emulator for your operating system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"bot-framework-composer\">Bot Framework Composer<\/h3>\n\n\n\n<p>Install from <a href=\"https:\/\/docs.microsoft.com\/en-us\/composer\/install-composer\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.microsoft.com\/en-us\/composer\/install-composer<\/a>.<\/p>\n\n\n\n<p><strong>Enable Resource Providers<\/strong><\/p>\n\n\n\n<p>There are some resource providers that must be registered in your Azure subscription. Follow these steps to ensure that they&#8217;re registered.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Sign into the Azure portal at <a href=\"https:\/\/portal.azure.com\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/portal.azure.com<\/a> using the Microsoft credentials associated with your subscription.<\/li><li>On the <strong>Home<\/strong> page, select <strong>Subscriptions<\/strong> (or expand the <strong>\u2261<\/strong> menu, select <strong>All Services<\/strong>, and in the <strong>All<\/strong> category, select <strong>Subscriptions<\/strong>).<\/li><li>Select your Azure subscription (if you have multiple subscriptions, select the one you created by redeeming your Azure Pass).<\/li><li>In the blade for your subscription, in the pane on the left, in the <strong>Settings<\/strong> section, select <strong>Resource providers<\/strong>.<\/li><li>In the list of resource providers, ensure the following providers are registered (if not, select them and click <strong>register<\/strong>):<ul><li>Microsoft.BotService<\/li><li>Microsoft.Web<\/li><li>Microsoft.ManagedIdentity<\/li><li>Microsoft.Search<\/li><li>Microsoft.Storage<\/li><li>Microsoft.CognitiveServices<\/li><li>Microsoft.AlertsManagement<\/li><li>microsoft.insights<\/li><li>Microsoft.KeyVault<\/li><li>Microsoft.ContainerInstance<\/li><\/ul><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/02\/img2-2.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><mark class=\"kt-highlight\"><strong>Reminder<\/strong>: Don\u2019t forget to delete or shutdown all unused Azure resources after your labs for cost saving<\/mark><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to complete the exercise on your own computer, you can do so by installing the following software. You may experience unexpected dialogs and behavior when using your own environment. Due to the wide range of possible local &hellip; <a href=\"https:\/\/exceedthecloud.com\/?p=657\">Continued<\/a><\/p>\n","protected":false},"author":1,"featured_media":872,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"kt_blocks_editor_width":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[14,15,4],"tags":[62,7,8,63,57,64,53,55,54,61],"class_list":["post-657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-artificial-intelligence","category-cognitive-services","category-practical-labs-series","tag-net","tag-ai","tag-azure","tag-bot","tag-cognitive-service","tag-framework","tag-git","tag-python","tag-visual-studio-code","tag-windows-10"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2021\/11\/cognitive.gif","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=657"}],"version-history":[{"count":3,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":2335,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/657\/revisions\/2335"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/media\/872"}],"wp:attachment":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}