Windows Azure Development

WordPress Blog in Azure App Service In Minutes–Part 02 (Configuring WordPress)

March 24, 2018 App Service, Azure, Back-2-Bascis, Emerging Technologies, KnowledgeBase, Microsoft, OpenSource, Tips & Tricks, Web Development, Windows Azure Development No comments

In the last part of this series, we experienced how to create a new wordpress blog instance in Azure App Service. In this part we will learn, how to configure your wordpress instance for publishing.

Now that we have WordPress instance deployed in Azure App Service, lets expore the app service instance a bit.

Step 1: Go to “All Resources” and select “mywordpress-blog” app

image

Step 2:  Copy URL and open in another browser window

image

Step 3: WordPress Configuration will automatically kick-in.  Select your desired language, in my case it would be ‘English’ and click on Continue.

image

Step 4: Specify your blog name, initial admin username, password, email etc.

Click on [Install WordPress]

image

Step 5: Congragulations!, Your installation is successful and you will be greeted with Success message. Now it is your time to get started with your blog.

image

You can simply login to <your_wordpress_website_url>/wp-admin, with the admin login and start creating your content.

If you are a beginner and need additional help in using wordpress, please visit – Official WordPress-Configuration  Help

WordPress Blog in Azure App Service In Minutes–Part 01

March 24, 2018 App Service, Azure, Azure Database for MySQL, Back-2-Bascis, CodeSnippets, JumpStarts, KnowledgeBase, Microsoft, OpenSource, Tips & Tricks, Windows, Windows Azure Development No comments

All my life I have been a tech saavy person would make my hands dirty trying out all odds available.

Here I am going to help you with setting up your own WordPress Blog in Azure App Service.

SPOILER ALERT: We will be using a B1 – Basic instance to save the cost.

image

Step 1: Login to Azure Portal

Step 2: Click on New

Step 3: Search for “Wordpress” among resources  and Select WordPress

image

Step 4: Click on ‘CREATE’

image

Step 5: Enter App Service Instance Name

image

Step 6: Now Select Database Provider. We need MySQL as the database and we have two options provided by Azure

1. Azure Database for MySQL ( a managed MySQL instance)  which has become publically available few days back.

2. MySQL In App (an instance hosted within App Service instance, basically your web app and mysql will be sharing the computing capabilities of the instance).

For the interest of the article, I will go with Option 2: MySQL InApp

image

Step 7: Specify App Service Plan /Location

As metioned in the spoiler we will go with a B1 Basic tier in West Europe location.

image

Step 8: Turn Application Insights ON and Specify location (This is optional, you do not want Application Insights performance logging for your blog, you can simply ignore)

Step 9: You are ready to go, click on [CREATE] to start the deployment.

image

Step 10: Now you see the deployment in progress message in Azure Portal.

image

image

Wait until this deployment is finished to setup WordPress initial configuration for use along with your custom domain.  We will continue with our setup in next part of this series.

Getting Started with Azure Functions App

June 25, 2017 .NET, .NET Framework, App Service, Azure, C#.NET, Emerging Technologies, Functions App, JavaScript, Microsoft, Windows Azure Development, Windowz Azure No comments

In my previous article I gave you an overview of Azure Functions and discussed about the benefits of the Azure Functions. With this session I will cover you with necessary steps to create an initial basic functions app.

Getting Started:

Login to Azure Portal, you will see Function Apps section in the left menu. This is where all your Function Apps will be listed, once you login.

imageimage

Let us start by creating a new Function app. Type Functions

image

Select Function App from Web + Mobile category, and Click on Create Button.

Fill In details:

  1. App Name,
  2. Select Subscription
  3. Select Resource Group (new if you want to create new resource group) or select existing
  4. Select Hosting Plan
  5. Specify Storage
  6. Click on Create

imageimage

You will see deployment in progress message.

imageimage

image

Once you explore further selecting the Function App instance you will be able view the URL and left side  menu you will see the options to configure:

  1. Functions
  2. Proxies (Preview Feature)
  3. Slots (Preview Feature)

image

Getting Started – create first Function App

Now since we have new instance ready. Let us create our first Function.

We have to choose by :

1.)  Choose a scenario:

  1. Webhook + API
  2. Time
  3. Data Processing

2.)  Choose a language:

  1. JavaScript
  2. CSharp
  3. FSharp
  4. For PowerShell, Python and Batch processing, you create your own custom function

image

For the demo sake I am creating a Timer Scenario and selected CSharp as the language.

image

I created a simple trigger code  and Click on Save and Run

image

Job has completed within speculated delay we put through on the Thread.Sleep:

image

Code Sample:

<br />
using System;<br />
using System.Threading;</p>
<p>public static void Run(TimerInfo myTimer, TraceWriter log)<br />
{<br />
    log.Info($"C# Timer trigger function executing at: {DateTime.Now}");</p>
<p>    RunTest(log);</p>
<p>    log.Info($"C# Timer trigger function completed at: {DateTime.Now}");<br />
}</p>
<p>public static void RunTest(TraceWriter log)<br />
{<br />
    for(int i=0; i&lt; 100; i++)<br />
    {<br />
       log.Info($"C# Timer trigger function executing at thread: {i}"); </p>
<p>        Thread.Sleep(1000);</p>
<p>        log.Info($"C# Timer trigger function completed at thread: {i}");<br />
    }<br />
}<br />

Using the Functions –> Integrate section we can configure Input, Output parameters and Schedule Timers, to make it available as a WebAPI methods. You can call this functional logic from another application to invoke as a web API call by passing necessary inputs, to start another functional process.

One example for this scenario would be to invoke a Database record archival  call after completion of an order. This is will be applicable in case we choose the scenario WebHook + API during the creation of your functional logic.

image

That’s all for now for this topic.  I will cover more details about WebHook + API in next series.

Please share your comments and rate this article to help me understand areas of improvement.

Additional Refs:

Azure Functions App–Run OnDemand Serverless code – a path way to Serverless Computing

June 18, 2017 App Service, Azure, Azure Functions, CosmosDB, Microsoft, Resilliancy, Scalability, Windows Azure Development, Windowz Azure No comments

Azure Functions is a new cloud solution from Azure that would let you execute small pieces code or “functions” in the cloud.  This means you do not have to worry about the infrastructure or environment to execute your little piece of code to solve any of your business problems.

functions-logo

Functions can make development even more productive, and you can use your development language of choice.

Benefits:

  • Pay only for the time your code runs and trust Azure to scale as needed.
  • Azure Functions lets you develop serveries applications on Microsoft Azure.
  • Supports wide variety of development language choices , such as C#, F#, Node.js, Python or PHP.
  • Bring your own dependencies – you can bring any of your Nuget/NPM dependencies for your functional logic.

What can we do with Azure Functions?

Azure Functions is a very good  solution for processing data, integrating systems, working with the internet-of-things (IoT), and building simple APIs and micro services.

Functions provides templates to help you  get started with some useful scenarios, including the following:

  • BlobTrigger – Process Azure Storage blobs when they are added to containers. You might use this function for image resizing.
  • EventHubTrigger – Respond to events delivered to an Azure Event Hub. Particularly useful in application instrumentation, user experience or workflow processing, and Internet of Things (IoT) scenarios.
  • Generic Webhook – Process webhook HTTP requests from any service that supports webhooks.
  • GitHub Webhook – Respond to events that occur in your GitHub repositories.
  • HTTPTrigger – Trigger the execution of your code by using an HTTP request.
  • QueueTrigger – Respond to messages as they arrive in an Azure Storage queue.
  • ServiceBusQueueTrigger – Connect your code to other Azure services or on-premises services by listening to message queues.
  • ServiceBusTopicTrigger – Connect your code to other Azure services or on-premises services by subscribing to topics.
  • TimerTrigger – Execute cleanup or other batch tasks on a predefined schedule.

Integration Support with other Azure Services:

Following are the services integration supported by Azure Functions app.

  • Azure Cosmos DB
  • Azure Event Hubs
  • Azure Mobile Apps (tables)
  • Azure Notification Hubs
  • Azure Service Bus (queues and topics)
  • Azure Storage (blob, queues, and tables)
  • GitHub (webhooks)
  • On-premises (using Service Bus)
  • Twilio (SMS messages)

Costing:

Azure functions will be charged based on two pricing plans below:

  1. App Service Plan – if you already have an Azure App Service running with Logic, Web, Mobile or Web Job, you can use the same environment for your Azure functions execution without needing to pay for extra resources.  You will be charged based on regular app service rates.
  2. Consumption plan  – with this plan you only need to pay for how long and how many times your functions runs and computational needs/resource usage during that execution time. Consumption plan pricing includes a monthly free grant of 1 million requests and 400,000 GB-s of resource consumption per month.

You can find further pricing related info here

Support and SLA:

  • Free billing and subscription management support
  • Flexible support plans starting at $29/month. Find a plan
  • 99.95% guaranteed up time. Read the SLA

Useful Links:

Managed Azure Database for MySQL and PostgreSQL

June 9, 2017 App Service, Azure, Azure Data Services Platform, Azure Database for MySQL, Azure Database for PostgreSQL, Cloud Computing, Cloud Services, Data Services, Emerging Technologies, OpenSource, PaaS, SQL Data Warehouse, SQL Database, Windows Azure Development No comments

During Microsoft Build 2017(May 10th 2017) conference in Seattle, Scott Guthrie (EVP of Cloud and Enterprise Group) announced two new offerings to the Azure Database Services Platform, Azure Database for MySQL and Azure Database for PostgreSQL.

I was happy that Microsoft is filling the gap for the need of Fully Managed MYSQL and PostgreSQL . I recollect around in April I was trying to migrate this WordPress blog from Godaddy hosting in to  an Azure App Service to provide and since WordPress requires MySQL as the database. The only option left for me in Azure was to have local MySQL(MySQL in App)  in App Service, which cannot scale well or either use Clear DB service (a Microsoft partner in azure). Some how I wasn’t happy with the performance of local MYSQL and Clear DB, due to my bulky blog. So I thought what if there was a Managed MYSQL service just like Managed SQL Azure services.

What is Azure Database for MySQL and PostgreSQL?

Azure Database for MYSQL and PostgreSQL(currently in PREVIEW)  are fully managed Platform as a Service(PaaS) offering from Microsoft Azure, which does not want us to worry about infrastructure and managing the server instance.  Below is the outline of how these services has been stacked up against existing SQL Database offerings. As a customer you do not need to worry about the Compute, Storage, Networking, and high-performance/availability/scalability  of these services ensured by Azure Data Service Platform with built in monitoring.

You easily deploy an Azure Web App with Azure Database for MySQL as the database provider, and to provide complete solutions for common Content Management Systems (CMS) such as WordPress and Drupal.

2d1e1ef6-94ac-4110-bc4d-93d0b44d45aa

I will cover more details in later series That’s all for now. Thank you for reading my content. Leave your comments.

Pricing Details:

Useful Links:

Microsoft Build Tour – Hyderabad, 21,22 June 2017

May 30, 2017 .NET, Community, Dev Community, General, Microsoft, TechNet, Windows Azure Development 2 comments

The Microsoft Build Tour brings the best of Microsoft Build right to you. Developers building Line of Business or consumer applications using Cloud or traditional desktop technologies will hear firsthand from Microsoft experts about the latest technical news and updates from the Microsoft Build conference.

Date & Timings:
· DAY1 – Wednesday, June 21, 2017 9:00 AM – 5:30 PM
· DAY2 – Thursday, June 22, 2017 9:00 AM – 5:30 PM (Developer Hackathon)

Venue:
Trident Hyderabad
Survey No.64,
Hitech City Main Road,
HITECH City,
Near Cyber Towers,
Madhapur, Hyderabad,
Telangana 500081

AGENDA DAY 1
08:30 – 09:00 Registration
09:00 – 09:50 Opening keynote shares the future of Microsoft’s Cloud, AI, and Windows technologies.
10:00 – 12:30 Morning sessions dive deep into the latest Cloud tech including serverless, containers, AI, bots, Web, .NET, and cross-platform development.
12:30 – 14:00 Lunch Break
14:00 – 14:25 Technical discussion from your local Microsoft Experts. More details to come!
14:30 – 16:00 Afternoon sessions bring in-depth discussions and demos of Windows 10 features, UWP, Windows Store, and the latest devices.
16:00 – 17:30 Q&A Session with Microsoft Experts and Developers
AGENDA DAY 2
08:30 – 09:00 Registration / Team Assignments / Breakfast
09:00 – 09:30 Introduction
09:30 – 16:00 Hacking
16:00 – 17:00 Presentations & Closing

REGISTRATION LINKS: DAY1 SESSIONS | DAY2 DEVELOPER HACKATHON