FREE Cloud Workshops Oct-Nov 2017 @ Reston VA!

By Shahed C on October 6, 2017

For those of you in the DC Metro area, check out these free workshops to be held at the Microsoft Reston VA office in October and November 2017.

ms-logo

Webinar alternatives: https://aka.ms/cloudlearning

In-person workshops:
• 10/17 – Blockchain: https://aka.ms/va-blockchain1
• 10/18 – Analytics: https://aka.ms/va-analytics1
• 10/18 – Natural Computer Interactions: https://aka.ms/va-natural1
• 10/19 – Artificial Intelligence: https://aka.ms/va-ai
• 11/14 – Blockchain: https://aka.ms/va-blockchain2
• 11/14 – BOTs: https://aka.ms/va-bots
• 11/15 – Analytics: https://aka.ms/va-analytics2
• 11/15 – IOT: https://aka.ms/va-iot
• 11/16 – Natural Computer Interaction: https://aka.ms/va-natural2

ASP.NET Core 2.0 + VS2017

By Shahed C on August 8, 2017

I presented ASP.NET Core 2.0 and Visual Studio 2017 at DC Metro Devs on Tue August 8, 2017. Here is the presentation material with the slides, links and my contact information.

asp-net-logo

Download PPTX or view slideshow below

SlideShare: https://www.slideshare.net/shahedC3000/aspnet-core-20-the-future-of-web-apps

The all-new ASP .NET Core 2.0 introduces some great new capabilities, the ability to host on multiple server platforms, and a number of new tools that you will want to get familiar with. Learn about the future of ASP.NET Core MVC, Web API, Razor Web Pages, .NET Core Tools and Visual Studio 2017!

 

Azure: How-To Guide

By Shahed C on August 4, 2017

Getting started with Azure? Check out the following resources for a quickstart!

Slides with Links to Resources:

Quick Video Guides:

NOTE: The Azure web portal UI changes often, so you may use the videos as a guide but be prepared for slight variations in the steps involved.

 

Azure links and resources:

Getting Started: 

Quick Start Guides:

BizSpark, MSDN Benefits, AzurePass:

Azure App Service (Web, Mobile, Logic, API):

Other APIs:

Data, Storage, Analytics

Media Services, Internet of Things

Infrastructure:

Intro to Bot Framework v3

By Shahed C on June 22, 2017

Here is the presentation material for Bot Framework (v3), presented at Microsoft Maniacs on June 22, 2017.

bot-framework

PPTX: https://wakeupandcode.com/public_downloads/BotFrameworkIntroV3.pptx

Slideshare: https://www.slideshare.net/shahedC3000/intro-to-bot-framework-v3

 

Azure Functions – Dev Workflow

By Shahed C on May 24, 2017

If you’re looking for new ways to put your code in the cloud, look no further than serverless code deployments with Azure Functions! If you need some tutorials and basic information to get started, check out the following links first, especially the Quick Login page.

Azure Functions

Special Thanks: I’d like to give credit to my awesome colleague Joe Raio, who walked me through these steps during a hackathon project.

Useful Links

The rest of this blog post will focus on how you can develop Azure Functions without being tied to a web browser. You’ll learn how to write the code on your own dev machine, which will enable you to easily commit/push your code into any source code repository.

Step 0: Install Node.js if you haven’t done so already

Download Node.js from the following URL. This includes npm.

Step 1: Install the Azure-CLI npm package

Get more information at the following URL:

In a brand new folder, run the following command from a command line:

> npm i -g azure-functions-cli 
This folder can reside anywhere in your project’s folder structure, to ensure that you can easily check in your code into source control.
UPDATE: There is a newer URL for the Azure Functions CLI, now called Core Tools:

The install command is now:

npm i -g azure-functions-core-tools

Step 2: Create a new Azure Function locally

In the same folder, run the following command to create a new Function App locally:
> func init
Now, run the following command to create a new Function within your Function App.
> func new
Next:
  • Select a language, e.g. C#
  • Select a template, e.g. HttpTriggerWithParameters
  • Enter a name for your new Function, e.g. “MyFunction”, which will create a subfolder using the Function’s name.

Step 3: Observe the folder structure and its files.

Open the folder in your code editor, e.g. Visual Studio Code and take a look at the folder structure. For my C# function, here’s what I can expect in my function’s subfolder:
  • readme.md is a typical “Readme” file, in markdown format, useful for Github repos.
  • run.csx is contains the code for your Azure Function
  • function.json defines the function bindings and other configuration settings

In the Function App’s main folder, the appsettings.js file will be shared by all the functions in this Function App. You can update this settings file by pulling down the actual settings file from your a Function App in your Azure account.

Step 4: Log in to Azure from the command line

Type the following command at the command line:

> func azure login

Follow the onscreen prompts and instructions to log in to your Azure account. If you have two-factor authentication enabled, make sure you have your verification method ready for a quick login process.

Step 5: Get a list of Function Apps in your Azure account

Type the following command at the command line:

> func azure functionapp list

Step 6: Import your App Settings from the cloud

Type the following command at the command line:

> func azure functionapp fetch-app-settings <fn-app-name>

Make sure that you replace the placeholder <fn-app-name> with your own function app’s name. If you have the settings file open locally (e.g. in VS Code), you’ll notice that local file gets updated automatically!

Step 7: Run your function locally (optional)

If you want to run your function locally, type the following command at the command line:

> func host start

This should start the function locally and display the local URL with port number. Use this URL and port number to run it in a web browser and provide parameters via the QueryString. Note that QueryString parameters start with a “?” but subsequent parameters are separated by “&” ampersand characters.

Step 8: Publish back to Azure

Each time you want to publish your Function to Azure, type the following command at the command line:

> func azure functionapp publish <fn-app-name>

Once again, make sure that you replace the placeholder <fn-app-name> with your own function app’s name.

Step 9: Enable CORS for your Function App

If your Function App is hosted in Azure, you will need to enable CORS to ensure that it can be called from JavaScript code with a different origin. For step by step instructions, follow the guide at:

Conclusion

Now you’re ready to use your function from anywhere: directly in a web browser, from a mobile app, web app and more!