Protected: Wisdom is Choosing the Right!

This content is password protected. To view it please enter your password below:

Advertisements

Microsoft Innovation Summit

Pic: National Monument (Malaysia)

On 2nd April, Microsoft hosted Microsoft Innovation Summit in Kuala Lumpur, Malaysia & I got an opportunity to talk about Microsoft Azure Platform services which sets up the foundation for AI services. For example using Platform Services to host applications powered by Cognitive Services. This is just one scenario and I see endless possibilities. It was a pleasure to talk about and demo these services.
Here, I’m sharing the slide deck used for this talk.

Namaste,
Mayur Tendulkar (MAY10)

Ignite – The Tour, Singapore


Pic: Colorful Skies, Singapore. Shot on Samsung Galaxy S8

So far, 2019 has been fantastic. I got a chance to speak at a local meetup for Azure DevOps Launch and also got a chance to speak about Graph APIs at Ignite, The Tour.

Along with Abbas Kudrati (Chief Security Advisor, Microsoft Australia), I delivered a session about Microsoft Graph: API for Microsoft 365. The slides for this session are on Slideshare. Even though I’ve code-samples on my GitHub, I’ll recommend checking resources on graph.microsoft.com. Those will be frequently updated with the latest SDK releases.

The original session was delivered by Product Team in Ignite and the recording is available here on YouTube

I hope the audience enjoyed the session, because we did :)

Namaste,
Mayur Tendulkar

Azure DevOps Launch


Pic: Walking Paths, Singapore. Shot on Samsung Galaxy S8

This Saturday, 12th January, I got a chance to talk about Azure DevOps at a local meetup. The event was about Azure DevOps Launch & the session was about CI/CD and the title for my session was:
Let’s Build LOLSystems : Complete CI/CD in Action. LOL-System is a custom I bought for my fictitious company used for demo purpose. I showed how we can setup CI/CD for ASP.NET Core application in Azure DevOps and deploy it to Azure Web Apps.

Namaste,
Mayur Tendulkar

Let’s monitor that cloud!

Cloud everywhere.
Pic: Cloud Everywhere, Singapore. Shot on Samsung Galaxy S8

It can’t be just a coincidence that recently many of my friends expressed interest in monitoring how their teams are using their cloud subscription. And yet, all of them have a valid problem to worry about! Let’s talk about this problem, scenario, and solution in this last blog post of 2018 :)

Problem:

A subscription is shared with the team or each member has a separate subscription. Anyone can create any kind of resources (e.g. Virtual Machines, Storage Accounts, Network Security Groups, Web or Application Services, etc…). Even though there are policies and access restrictions which can be forced in Azure Portal, sometimes Administrators or Support engineers require (or literally they ask for) ‘God Mode’ with full access to play around, explore services or fix some things. In this case, monitoring these activities happened in ‘god mode’ & quick remediation or reversal is important before any damage happens.

Scenario:

Sometimes, developers often need to create resources to try out things. For example, they may want to create a Storage Account. Now, we want to enforce rules around Storage Account and make sure that the created Storage Account is accessible only via HTTPs protocol. Or let’s say Network Admin creates a Network Security Group (NSG) and in that case, the policy is to disable or enable specific ports or protocols (UDP/TCP/etc).

Solution:

I consider Azure Services as Lego blocks. You can mix and match and use them together as and when required. In this case, there are multiple ways to handle this scenario and possibly many more. There could be operations team managing this infrastructure using their custom tools. However, being a developer, I’ll focus on two solutions from a developer’s point of view. And I can see there are two easy solutions:

(1) Whenever a resource is created (or executed like Logic App trigger) or modified or deleted within a subscription, a record is maintained at subscription level and resource group level. This log can be further exported to different Azure services to take action. For example, it can be exported (or streamed) to Event Hub for event publishing.

(2) Using Azure Monitor set up a trigger to such records (create, update, delete resources) and take action (Notify by Email/Text, call Logic App, Functions, etc…)

Once these pipelines are set up, these services (Event Hub/Activity Log) will send data in JSON format which can be used to track down what has happened.

This JSON has required information like resource id and resource type. In this case, I’m using Logic App to parse this JSON and accordingly call respective Azure Function which will take the action (by calling Azure Functions). I’m considering two scenarios here. (A) when new Storage Account is created and (B) when new Network Security Group is created/modified with Rules. But there can be many such scenarios!

Now according to the case (NSG/Storage Account), it will call the Azure Function. To modify the resources in subscription, I’m using Fluent APIs which makes life much easier. For example the following code creates a VM using Fluent APIs in US East Region within rgName provided:

Using these Fluent APIs, let’s write Azure Function which will monitor newly created Storage Account and make sure that it is accessible only with HTTPs protocol.

In the above code

storageAccount?.Update().WithOnlyHttpsTraffic().Apply(); 

makes sure that Storage Account is accessible with HTTPs protocol only.

One last thing before executing this function or enabling Logic App, give permission to this Azure Function to modify resources. It can be done by creating and passing service principal or by using Managed Identity option. More details are here on this blog post.  Managed Identity helps to avoid storing credentials in code.

Once this setup is complete, whenever Storage Account or Network Security Group is created, modified & updated, the Logic App will execute and call the respective Azure Function.

Conclusion

Using these various Azure Services, it is possible to monitor the subscription and perform actions on resources as per the rules. This makes governance easier. The sample and code used for Azure Functions in this blog post is available on GitHub here. Clone it and follow the steps there to deploy and run it in Azure subscription.

AI Future Now Event Update

Last week, i.e. on 7th November, I delivered a session at Microsoft AI Future Now event in Singapore. The session was titled as ‘Microsoft Azure – The Best Platform for AI Development‘. The idea behind this session was to showcase fundamental services which Microsoft Azure provides, on top of which other services can be *hosted*.  The session was a primer for the next session delivered by my friend Puneet on Bot Framework & Cognitive Services Deep Dive.

In this session, I covered App Services which can be used to host applications using different Azure Services like Cognitive Services or web application serving Chat bots. I also talked about Azure Serverless Platform and use cases where Cognitive Service can be used to read the receipt and attach the expense details to respective expense report. 

The slides for this session are available on Slideshare and demo for serverless is covered in my webinar on serverless platform which can be accessed from here

Once again, thanks for making this session houseful. Looking forward to see you at next Microsoft community event. 

Namaste,
Mayur Tendulkar

I have a dream

I have a dream. A dream of using my machine with seamless background updates without worrying about the restarts. A dream of using any device without worrying about drivers. A dream to connect projectors, speakers, power plugs without carrying additional adapters. A dream to connect my headphones to any phone, any in-flight system without thinking about splitters and connectors. A dream to use a single USB spec cable with all devices. A dream to collaborate with my colleagues without thinking about collaborating software (and its resource utilization). I have a dream.

Collaboration: Outlook, Teams, Telegram, Slack, WhatsApp, Skype, Skype for Business

i-have-a-dream-collaboration

Adapters: US, Europe, Japan, Asia and what not

photo_2018-10-11_07-23-48

Headset/Speakers: 2.5mm/3.5mm and splitter for in-flight systems

photo_2018-10-11_07-23-51

Adapters/Dongles: USB-C/Mini Display to various formats and network connections

photo_2018-10-11_07-23-54

Namaste,
Mayur Tendulkar