Greetings all! I'm happy to announce that a book I have contributed to has hit the shelves. Azure Integration Guide for Business by Packt is chock full of service and adoption-related information for business decision makers as well as technical decision makers. Feel free to check out the Packt site for more details or head over to Amazon to read the reviews or get a copy for yourself.
Thursday, September 28, 2023
Tuesday, March 14, 2023
New Book: Event-Driven Architecture and .NET 7
Aloha! I'm excited to share that my latest book (co-authored with the incomparable Omar McIver) has hit the press. Implementing Event-Driven Microservices Architecture in .NET 7 by Packt follows a ground-up implementation of an application using EDA to better distribute, handle, and process events for a high-throughput transportation platform. Covering everything from message brokers and domain modeling to observability and advanced scalability strategies, this book intends to give a practitioner the skills needed to design, understand, build, and deploy an application in Azure leveraging EDA design principles. Feel free to cruise over to the Packt site to check it out, or head to Amazon to read the reviews or get a copy for yourself!
Saturday, January 19, 2019
Targeted Alerts Using Azure Event Grid
I came across something interesting the other day while trying to refine a governance strategy for Azure at an enterprise level. The specific scenario is centered around an organization that has a very large Azure estate with many virtual machines as well as a wide swath of platform-as-a-service components. We had seen some upticks in password resets coming from the Azure portal for VMs, and didn't discover this until we decided to go in and audit some activities. When looking through the Activity Log, these types of activities aren't immediately apparent as they display as deployments instead of password reset events. After digging through the event metadata, I was able to locate a common convention for these events--under the authorization section of the event details, the scope value will end with "PasswordReset" and the timestamp it was initiated.
This got me thinking...it would likely be good to capture this and alert operations if anyone is using the Azure portal to reset VM credentials. Typically the account that is reset using the portal will be an administrative non-domain user, and multiple resets may indicate a larger issue. But what is the best way to alert on this activity?
Using Log Analytics is one approach to solve this problem. To start with, you will need to add the Activity Log to the list of data sources for the Log Analytics workspace. Depending on how large the subscription is, and how active people are in that subscription, this can mean a large amount of data. When using a per-gigabyte instance of LA, you may end up seeing a large usage charge related to importing all of this data. Getting the information using a LA query is not terribly difficult:
Another option, one that I found to be more interesting, is to use Azure Event Grid to listen for specific messages and fire when the intended message is found. To set up an Event Grid subscription, you can use the Azure portal, Azure PowerShell, or Azure CLI. One caveat here is that the ability to use complex filters on event subjects is not supported currently when using PS or CLI. You can use a "starts with" or "ends with" filter, but nothing that captures something akin to "contains". The use case I'm after here looks to use a wildcard operator to find the phrase that pays within the event subject, in this case "PasswordReset". The only way to create this type of filter currently is to use the portal. During creation you can specify the type of action to take when the event subscription picks a winner:
This got me thinking...it would likely be good to capture this and alert operations if anyone is using the Azure portal to reset VM credentials. Typically the account that is reset using the portal will be an administrative non-domain user, and multiple resets may indicate a larger issue. But what is the best way to alert on this activity?
Using Log Analytics is one approach to solve this problem. To start with, you will need to add the Activity Log to the list of data sources for the Log Analytics workspace. Depending on how large the subscription is, and how active people are in that subscription, this can mean a large amount of data. When using a per-gigabyte instance of LA, you may end up seeing a large usage charge related to importing all of this data. Getting the information using a LA query is not terribly difficult:
AzureActivity | where Resource contains 'PasswordReset'
From there, you can wire up an Azure Alert to fire when this condition is met. Again, this operates on the premise that you have imported all of the Activity Log data into your LA workspace.Another option, one that I found to be more interesting, is to use Azure Event Grid to listen for specific messages and fire when the intended message is found. To set up an Event Grid subscription, you can use the Azure portal, Azure PowerShell, or Azure CLI. One caveat here is that the ability to use complex filters on event subjects is not supported currently when using PS or CLI. You can use a "starts with" or "ends with" filter, but nothing that captures something akin to "contains". The use case I'm after here looks to use a wildcard operator to find the phrase that pays within the event subject, in this case "PasswordReset". The only way to create this type of filter currently is to use the portal. During creation you can specify the type of action to take when the event subscription picks a winner:
- Web Hook
- Azure Storage Queues
- Event Hub
- Hybrid Connections (Azure Automation)
Before we rush to get the event subscription created, let's take a moment to think through the mechanism that will send the alert. Using a serverless component such as a Logic App or Azure Function could be an easy way to tee up an email to the ops team. For the purposes of this example, using a serverless component will rule out the use of the Hybrid Connection endpoint. While actions can be invoked from Storage Queues, I want to explore using an Event Hub as the recipient of these messages. Both Logic Apps and Functions have triggers for receiving events from Event Hubs, and setting up a new Logic App to handle these events should be fairly straightforward. Why Event Hubs, though? My thought here is that using Event Hubs will allow me to send multiple types of messages to a Hub, and with low retention settings as well as lower per-transaction cost, it seems like something I should at least try out, right?
Let's start by creating the Event Hub namespace, along with a hub. The simplest way to do this is to use the Azure CLI to create the namespace, then the hub.
Once the namespace and hub are created, we are ready to set up an Event Grid subscription that will push specific events to the hub. In the Azure Portal, go to All Services -> Event Grid Subscriptions. The screen below will display.
To create a new subscription, click the "Create one" button if you have no subscriptions already, or click the "+ Event Subscription" button in the command bar. The next blade that appears will have basic information. Enter in the information as seen below. Keep in mind that you will need to select Subscription Events from the dropdown for Topic Details, and Event Hubs for the Endpoint Details section. You will be able to specify the
Next, click on the Filters tab. This will allow you to set filters on the event subject in a basic way (starts with / ends with) or in an advanced manner. We are after the advanced filter since we intend to use a wildcard search term. Click on "Add new filter" to add a new advanced filter.
In the Key field, type in "subject". For the Operator field, select "String contains" from the drop down. Then, click on the area that says "Add new value" to enter the filter expression.
In the text box that appears, type in "PasswordReset".
Click "Create" to create the subscription. This will now send a message to your Event Hub whenever a password reset happens via the portal. To finish the job, you need to create a Logic App that will listen for activity on the hub and send an email when it receives an event. You can create a new Logic App in the Azure Portal directly, or by using Visual Studio with the Azure Logic App Tools for Visual Studio extension. Once you have created a new Logic App, search for Event Hubs in the trigger section and add the "When events are available to Event Hub" trigger.
Let's start by creating the Event Hub namespace, along with a hub. The simplest way to do this is to use the Azure CLI to create the namespace, then the hub.
az eventhubs namespace create -g rg-shared-services -n governance
az eventhubs eventhub create -g rg-shared-services --namespace-name governance -n auditalerts
You can set the message retention here as well using the --message-retention flag, as the default setting is 7 days.Once the namespace and hub are created, we are ready to set up an Event Grid subscription that will push specific events to the hub. In the Azure Portal, go to All Services -> Event Grid Subscriptions. The screen below will display.
To create a new subscription, click the "Create one" button if you have no subscriptions already, or click the "+ Event Subscription" button in the command bar. The next blade that appears will have basic information. Enter in the information as seen below. Keep in mind that you will need to select Subscription Events from the dropdown for Topic Details, and Event Hubs for the Endpoint Details section. You will be able to specify the
auditalerts hub once you select the appropriate Event Hub Namespace.Next, click on the Filters tab. This will allow you to set filters on the event subject in a basic way (starts with / ends with) or in an advanced manner. We are after the advanced filter since we intend to use a wildcard search term. Click on "Add new filter" to add a new advanced filter.
In the text box that appears, type in "PasswordReset".
Click "Create" to create the subscription. This will now send a message to your Event Hub whenever a password reset happens via the portal. To finish the job, you need to create a Logic App that will listen for activity on the hub and send an email when it receives an event. You can create a new Logic App in the Azure Portal directly, or by using Visual Studio with the Azure Logic App Tools for Visual Studio extension. Once you have created a new Logic App, search for Event Hubs in the trigger section and add the "When events are available to Event Hub" trigger.
You can choose the polling interval for whatever you like, and it will default to 5 minutes. For extra granularity, you can add a Parse JSON step and parse the event. To get the schema for an event, copy any activity from the Activity Log and enter that into the popup you receive when clicking on "Generate schema from sample payload" on the expanded JSON task. After this, you can add a task for Office365, Exchange, SendGrid, or any other email provider you wish and add the details from the event to the body of the email. Include any email addresses (individuals or distribution lists) that need to be informed.
To test, use a test VM in the subscription where the Event Grid subscription was set to listen. Reset the password for the VM using the Portal and wait for the email to be sent out. It will not fire immediately, so do not be alarmed if you aren't immediately emailed.
That's all there is to it. You can expand this to include routing to Event Hub consumer groups or even use Event Grid Domains to further expand your reach. Happy eventing!
Monday, December 10, 2018
My book is live!
I'm excited to announce that my new book, Migrating to Azure, has officially launched! Copies can be found at select bookstores and always on Amazon.com. This is the reason I've not been very active on this site for a while. Enjoy!
Saturday, September 10, 2016
Require is required but it can't find require.d.ts
I've just released a fairly significant update to the VSTS Extension Project Templates extension. Recently a few of the ALM Rangers noticed that there was a problem with a missing TypeScript definition file that seemed to crop up out of nowhere. The file (require.d.ts) was not in the template's file system previously as it had not been needed by the underlying VSS SDK definition files (VSS.d.ts and TFS.d.ts). A recent change, however, has revealed that a new dependency was introduced:
To remedy this, I added the DefinitelyTyped d.ts file for RequireJS. Many thanks to Wouter de Kort and Utkarsh Shigihalli for reporting this, and to David Corbin for helping me beta test this fix!
Now, this release wasn't just a hotfix. There were several other enhancements and updates that made it in, thanks to suggestions from my friend Max Knor:
- Changed PowerShell execution to PowerShell3 in task.json
- Included vsts-task-sdk in Build/Release Task template
- Added Trace-VstsEnteringInvocation and Trace-VstsExitingInvocation to example task PowerShell scripts
- Updated versions for Grunt, Jasmine
For some great contributions to the VSTS extension pool, check out Max's extensions on the VS Marketplace:
Patching previous versions
If you've run into a roadblock with running or building your existing extension project, the easiest way to get back on track is to create a folder under the typings folder in the project for requirejs, and in that folder place a copy of the require.d.ts file:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/requirejs/require.d.ts
If you've run into a roadblock with running or building your existing extension project, the easiest way to get back on track is to create a folder under the typings folder in the project for requirejs, and in that folder place a copy of the require.d.ts file:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/requirejs/require.d.ts
Friday, April 29, 2016
Dashboard Widgets and Charting
Recently I was asked a question by someone in the community around how to properly construct a dashboard widget that contained custom charting/graphing components. Specifically, the high-level functional requirements centered around:
- Using TypeScript to manage the code versus inline JS in the widget's HTML
- Using a charting library like Chart.js or HighCharts
The choice was made by the inquiring party to look into using HighCharts. Now as a caveat, please keep in mind that using HighCharts for personal use is completely free. If you plan on publishing a widget to the Marketplace, however, you will need to purchase the appropriate license to ensure you are in compliance. Licensing in general can be a complex topic and is well beyond the scope of this post.
The idea behind this example is to make sure that someone with little experience can adequately use the VSTS Extension Project Template to:
- create a new extension
- add a dashboard widget to that project
- add the appropriate libraries, and
- wire up the widget to consume what it needs
Let's start with the basics, after creating a new extension project.
Right-click on the project and go to Add -> New Item. We're going to add a new custom dashboard widget.
Name the widget whatever you like. For the sake of this example, I have named it "SampleChartWidget". The item template will add a generic image and generic HTML file underneath a folder named SampleChartWidget. Let's go ahead and right-click on that new folder and add a new TypeScript file, which we'll call SampleChartWidget.ts for the sake of simplicity.
Now that we have the basic skeleton set up, let's update a couple of items that we'll need to make HighCharts work. First stop will be the package.json file, where we will need to add a reference to
One will be the task that performs the typings initialization (exec:tsdinit), which will require running that task after the file has been saved:
The other will be the task that copies the needed library file to the scripts folder (copy:main):
As a reminder, the Grunt file is already set up to run the npm update, copy step, and package step anytime you issue a build command in Visual Studio.
Once that editing is complete, build the project to pull in the newly added dependencies. This will pull down the HighCharts library from npm, copy the HighCharts.js file to your scripts folder, and pull down the typings file for HighCharts as well. We still need to make sure they are a part of the project, so don't forget to include them in the project by clicking on "Show all Files":
This will show you the newly copied JS file in your scripts directory (above) as well as the typings folder that you will need for constructing the TypeScript file:
Now that we have our prerequisites, we can move on to wiring up the chart. Let's first start by adding some meat to our widget's TypeScript file. We will want to add in two reference lines at the top, one to pull in the typings referenced in the tsd.d.ts file (consolidated links for the VSS, TFS and RMO typings supplied by the vss-web-extension-sdk) and the other for the typing file we just downloaded for HighCharts. Once that has been added, a class declaration can be added for a very simple widget class, with one method for initializing the chart. Next, we will add a variable to the exports section that will hold a new instance of our SampleChartWidget class, making it ready to be used by the VSS SDK. Finally, we can dump in some simple initialization code to turn a named element into a chart. Sample code is courtesy of the HighCharts JSFiddle.
Having completed the working bits, we can now move on to setting up the HTML that will display this new chart. We need to wire up the section that registers the widget, allowing for the new TypeScript file to be injected via Require. We also need to include an element in the body that will act as the target for HighCharts to render the chart to. Once that's complete, ensure that the references to VSS.SDK.js and highcharts.js are properly marked in your HTML file. I've optionally added the rel to a central stylesheet.
A couple of additional caveats to pay attention to...one is the sizing of the widget itself. Some graphs or charts may require a specific amount of screen real estate. Being mindful of how you're rendering the graph is important as you have a maximum of four rows and four columns on any dashboard. I chose to use a 4x3 for this example, but this can be adjusted based on need. Resizing the widget will mean needing to resize the container element as well, so extra care and testing needs to go into that prior to releasing anything into the wild. Another thing to be mindful of is the project's TypeScript build settings. In order to have this solution build and create the right JS, you will need to make sure that the build setting is pointed at AMD.
Again, this is an example and is not meant to be taken as anything but an illustrative way to begin hooking up charting and graphics libraries in dashboard widgets. Please be mindful of any licensing and/or component performance concerns while developing. Official documentation from Microsoft in relation to authoring widgets with charts and graphs will be forthcoming, so stay tuned and watch the space.
For those interested, source code can be found here.
"highcharts": "^4.2.4" in order to pull in the latest JS file the next time the project is built. Once that's been saved, the next stop will be the Grunt file. There are two things in here that will need to be altered. One will be the task that performs the typings initialization (exec:tsdinit), which will require running that task after the file has been saved:
The other will be the task that copies the needed library file to the scripts folder (copy:main):
As a reminder, the Grunt file is already set up to run the npm update, copy step, and package step anytime you issue a build command in Visual Studio.
Once that editing is complete, build the project to pull in the newly added dependencies. This will pull down the HighCharts library from npm, copy the HighCharts.js file to your scripts folder, and pull down the typings file for HighCharts as well. We still need to make sure they are a part of the project, so don't forget to include them in the project by clicking on "Show all Files":
This will show you the newly copied JS file in your scripts directory (above) as well as the typings folder that you will need for constructing the TypeScript file:
Now that we have our prerequisites, we can move on to wiring up the chart. Let's first start by adding some meat to our widget's TypeScript file. We will want to add in two reference lines at the top, one to pull in the typings referenced in the tsd.d.ts file (consolidated links for the VSS, TFS and RMO typings supplied by the vss-web-extension-sdk) and the other for the typing file we just downloaded for HighCharts. Once that has been added, a class declaration can be added for a very simple widget class, with one method for initializing the chart. Next, we will add a variable to the exports section that will hold a new instance of our SampleChartWidget class, making it ready to be used by the VSS SDK. Finally, we can dump in some simple initialization code to turn a named element into a chart. Sample code is courtesy of the HighCharts JSFiddle.
Having completed the working bits, we can now move on to setting up the HTML that will display this new chart. We need to wire up the section that registers the widget, allowing for the new TypeScript file to be injected via Require. We also need to include an element in the body that will act as the target for HighCharts to render the chart to. Once that's complete, ensure that the references to VSS.SDK.js and highcharts.js are properly marked in your HTML file. I've optionally added the rel to a central stylesheet.
A couple of additional caveats to pay attention to...one is the sizing of the widget itself. Some graphs or charts may require a specific amount of screen real estate. Being mindful of how you're rendering the graph is important as you have a maximum of four rows and four columns on any dashboard. I chose to use a 4x3 for this example, but this can be adjusted based on need. Resizing the widget will mean needing to resize the container element as well, so extra care and testing needs to go into that prior to releasing anything into the wild. Another thing to be mindful of is the project's TypeScript build settings. In order to have this solution build and create the right JS, you will need to make sure that the build setting is pointed at AMD.
Again, this is an example and is not meant to be taken as anything but an illustrative way to begin hooking up charting and graphics libraries in dashboard widgets. Please be mindful of any licensing and/or component performance concerns while developing. Official documentation from Microsoft in relation to authoring widgets with charts and graphs will be forthcoming, so stay tuned and watch the space.
For those interested, source code can be found here.
Tuesday, April 19, 2016
Version 2.4.0 of the VSTS Extension Project Template released
I've just released version 2.4.0 of the VSTS Extension Project Template extension for Visual Studio. This release includes a new Item Template for the Dashboard Widget. Special thanks to Utkarsh Shigihalli for the suggestion! The template itself is quite basic but will get you moving in the right direction. For more information on dashboard widget development, please refer to the fabulous VS integration documentation. You can also refer to the ALM Rangers blog post on creating widgets.
As always, candid feedback is welcome!
As always, candid feedback is welcome!
Saturday, February 27, 2016
A Two-Fer Release
I've just released version 2.3 of the VSTS Extension Project Templates, following a silent release of version 2.2 a few days ago. Updates include:
- Updated manifest for build extension to highlight specifics on task contributions
- Modified gruntfile in build extension to allow for task publish, extension package, and extension publish
- Added support for parameters with gruntfile in both project templates
Sunday, February 21, 2016
Updates to Build.vNext agent Docker images
I've just released some new updates to my VSTS Build.vNext Docker images, including:
- Support for the Azure xplat CLI
- Specific image for Ruby-based applications
Friday, February 19, 2016
RadioTFS - What an honor!
Episode 107 of RadioTFS was just released, wherein yours truly was the "special" guest. I had a blast talking with Greg, Martin and Paul and delving into some great topics. Cruise on by the RadioTFS site and check it out!
Thursday, February 18, 2016
VSTS Extension Project Templates - Version 2.1.1
I've just released an update to my Visual Studio extension, which adds a new project template for VSTS build/release tasks as well as an item template for an individual build/release task. Stay tuned for more updates--I've had some feature requests come in and can't wait to get started on them!
Wednesday, November 18, 2015
VSTS Extensions - Requirements Integrator
In his presentation at Microsoft's Connect(); event, Brian Harry revealed the new VS Marketplace, where a wide variety of VSTS (the ALM tool formerly known as VSO) extensions are available for download. I was fortunate enough to participate in dogfooding the extensibility model for VSTS, and my extension is now available on the Marketplace.
The Requirements Integrator extension is meant to bridge the gap between external requirements management systems and VSTS for Agile and Scrum projects. Since CMMI already has the notion of requirements, I didn't see the inherent value in allowing my extension to import requirements into that type of project. Having worked with external systems that manage business requirements as well as systems that manage the SDLC process, I could see where a tool that enabled traceability between requirements and Epics, Features, PBIs and Tasks might come in handy.
For now, import functionality is limited to MS Excel. The plan is to expand that to encompass products like HP ALM, Sparx Enterprise Architect, and others. Please feel free to visit the main page for the extension's repo on GitHub to see roadmap items, log issues, or create pull requests of your own. Candid feedback is always welcome!
The Requirements Integrator extension is meant to bridge the gap between external requirements management systems and VSTS for Agile and Scrum projects. Since CMMI already has the notion of requirements, I didn't see the inherent value in allowing my extension to import requirements into that type of project. Having worked with external systems that manage business requirements as well as systems that manage the SDLC process, I could see where a tool that enabled traceability between requirements and Epics, Features, PBIs and Tasks might come in handy.
For now, import functionality is limited to MS Excel. The plan is to expand that to encompass products like HP ALM, Sparx Enterprise Architect, and others. Please feel free to visit the main page for the extension's repo on GitHub to see roadmap items, log issues, or create pull requests of your own. Candid feedback is always welcome!
Friday, September 18, 2015
Visual Studio Online Extension Project Template - Channel9
My video for the Visual Studio Online Extension project template has gone live on Channel9! Please have a look at the Channel9 page, and feel free to download the extension from the VS Gallery!
Friday, August 14, 2015
Windows 10: Tools, Utilities and Information for Developers
There has been a lot of buzz recently about the release of Windows 10. Aside from the consumer hype, there has also been a great deal of love shown to developers. It’s easier to get involved in developing for Windows 10 than it has been for any other operating system. Following is a compilation of links that will get you the tools, the know-how and the means by which you can design, develop and publish great applications for Windows 10. Enjoy!
Design: Design Windows 10 apps
Develop: Develop Windows 10 apps
Publish: Getting your apps published to the Windows Store
Windows 10 courses in MVA: Great site to get online courses on Windows 10
Channel 9: Another great online resource for Windows 10 related videos
Developer Tools Download: Download any Visual Studio sku, including VS 2015
Developer for Windows 10 – What’s New: What's new for Windows 10 Developers
Get Started: Getting started with Windows 10 Development
Design: Design Windows 10 apps
Develop: Develop Windows 10 apps
Publish: Getting your apps published to the Windows Store
Windows 10 courses in MVA: Great site to get online courses on Windows 10
Channel 9: Another great online resource for Windows 10 related videos
Developer Tools Download: Download any Visual Studio sku, including VS 2015
Developer for Windows 10 – What’s New: What's new for Windows 10 Developers
Get Started: Getting started with Windows 10 Development
Monday, June 15, 2015
BeeBot Makes his Debut
Today I had a really great opportunity to see my daughter in action. She had a special show-and-share day in her kindergarten class, and the item she wanted to show off was a robot that she and I designed, programmed and built.
That’s right. She’s in kindergarten. And she helped me design and build a robot. Now for a little backstory. About three months ago, my daughter came to me and said “Daddy, I want to build a robot.” How could I possibly deny that dream? I had picked up an Arduino Uno board a few months prior and had set up some basic projects, but nothing quite like a robot. This was going to give me a chance to work with the Arduino controller more, and incorporate a Raspberry Pi, which was another device I wanted to get some experience with. Not to mention the greater opportunity of having a daddy-daughter tech project.
The first thing we did was go through requirements gathering and design. Heavy stuff for a six year old, I know, but I tried to keep it light. I asked her to grab a piece of paper and something to draw/write with. We started by talking about what she would want the robot to do. Should it talk? Should it move? Were there specific “look and feel” items she wanted (i.e. different colored buttons, number of wheels)? I let her go through her wish list of features and once complete, we ran back through it to see what was going to make the cut. A few things got knocked out simply due to complexity, as I was planning on coding this in the Arduino IDE initially. Plus, I wasn’t sure exactly what type of parts I would be able to get and I wanted to keep the requirements in a place where they were realistic. I also asked her to draw what she thought the robot would look like once it was all done.
Next I set out to find anything I could that would help achieve the goals set forth on the list. I ended up getting:
That’s right. She’s in kindergarten. And she helped me design and build a robot. Now for a little backstory. About three months ago, my daughter came to me and said “Daddy, I want to build a robot.” How could I possibly deny that dream? I had picked up an Arduino Uno board a few months prior and had set up some basic projects, but nothing quite like a robot. This was going to give me a chance to work with the Arduino controller more, and incorporate a Raspberry Pi, which was another device I wanted to get some experience with. Not to mention the greater opportunity of having a daddy-daughter tech project.
The first thing we did was go through requirements gathering and design. Heavy stuff for a six year old, I know, but I tried to keep it light. I asked her to grab a piece of paper and something to draw/write with. We started by talking about what she would want the robot to do. Should it talk? Should it move? Were there specific “look and feel” items she wanted (i.e. different colored buttons, number of wheels)? I let her go through her wish list of features and once complete, we ran back through it to see what was going to make the cut. A few things got knocked out simply due to complexity, as I was planning on coding this in the Arduino IDE initially. Plus, I wasn’t sure exactly what type of parts I would be able to get and I wanted to keep the requirements in a place where they were realistic. I also asked her to draw what she thought the robot would look like once it was all done.
Next I set out to find anything I could that would help achieve the goals set forth on the list. I ended up getting:
- A Raspberry Pi B+ (I would later swap this out for my Raspberry Pi 2 for reasons I’ll include in my technical follow-up to this post)
- A SainSmart L293D motor control shield
- Several micro servos
- A ton of solderless wires (male/male, male/female and female/female)
- A 3.5″ LCD screen that ended up being a dud – later replaced by an Adafruit compatible screen intended for an Esplora device
- Four colored pushbuttons that were special ordered from China
- A four-wheel motorized car base that came with a clear acrylic frame and four DC motors
- A yellow bucket for the body
Saturday, June 6, 2015
Apache Cordova Demo is LIVE!
Yesterday I was fortunate enough to have my Apache Cordova demo go live on the main Channel9 website. The demo covers setting up builds on all major operating systems so that when you commit a change, it builds on all OSes simultaneously. In addition, I sat in (virtually) with Anisha Pindoria from the ALM Rangers to discuss sprint 83 highlights, my demo and other get-to-know-you type questions.
To find the S83 review, use this link.
To find the Apache Cordova demo video, use this link.
Candid feedback is welcome! Please leave comments here or on the respective Channel9 pages.
To find the S83 review, use this link.
To find the Apache Cordova demo video, use this link.
Candid feedback is welcome! Please leave comments here or on the respective Channel9 pages.
Tuesday, May 19, 2015
TFS Build vNext: Mind Your P's and Q's
With the recent movement of the new TFS Team Build (also known as Build.vNext) into public preview, a lot of excitement is building in the ALM community about the features, ease of use and improved experience that the new build system is bringing. There are blog posts and articles starting to surface about how to set up agents and builds, deploy applications to Azure and set up continuous integration and continuous delivery pipelines.
This is not one of those posts.
Instead, I want to focus on one of the behind-the-scenes features that make vNext tick. Specifically, I’m talking about minding your P’s (agent pools) and Q’s (agent queues). Queues are what process incoming messages (triggers) for build requests, and pools are collections of build agents that are available to process the requests coming in from the queue.
There isn’t any official guidance from Microsoft on how queues and pools should be established. That’s not to say there should be, per se: the queue/pool setup is pretty straightforward and maintains a 1:1 relationship. That being said, it may behoove you to set up separate queues in certain situations. For example, you may want to create queues per application to funnel triggers toward a specific pool of agents for development teams or products. You might also want to split up queues by operating system, in the event you are building apps with cross platform capabilities, and require the native OS components to build them. In my walkthrough “Building Cross Platform Apps with Apache Cordova and Build.vNext“, I decided to use the OS approach to illustrate how multiple queues would work, as well as helping to isolate the OS-specific functions needed to complete the tutorial.
Does that mean you have to do that? Nope. In fact, for a lot of situations you could just stick with the default queue/agent pool setup and allow the build agents to be selected based on the requirements laid out in the Demands section:

The demands listed (such as visualstudio, vstest, and java) will route the build to any agents that are online and able to satisfy those demands. There are other settings that also factor into what agent is selected, but the easiest way to control what build goes where is to set up the demands section to have specific needs that match up with agents you have in your build ecosystem.
This is not one of those posts.
Instead, I want to focus on one of the behind-the-scenes features that make vNext tick. Specifically, I’m talking about minding your P’s (agent pools) and Q’s (agent queues). Queues are what process incoming messages (triggers) for build requests, and pools are collections of build agents that are available to process the requests coming in from the queue.
There isn’t any official guidance from Microsoft on how queues and pools should be established. That’s not to say there should be, per se: the queue/pool setup is pretty straightforward and maintains a 1:1 relationship. That being said, it may behoove you to set up separate queues in certain situations. For example, you may want to create queues per application to funnel triggers toward a specific pool of agents for development teams or products. You might also want to split up queues by operating system, in the event you are building apps with cross platform capabilities, and require the native OS components to build them. In my walkthrough “Building Cross Platform Apps with Apache Cordova and Build.vNext“, I decided to use the OS approach to illustrate how multiple queues would work, as well as helping to isolate the OS-specific functions needed to complete the tutorial.
Does that mean you have to do that? Nope. In fact, for a lot of situations you could just stick with the default queue/agent pool setup and allow the build agents to be selected based on the requirements laid out in the Demands section:
The demands listed (such as visualstudio, vstest, and java) will route the build to any agents that are online and able to satisfy those demands. There are other settings that also factor into what agent is selected, but the easiest way to control what build goes where is to set up the demands section to have specific needs that match up with agents you have in your build ecosystem.
Sunday, May 10, 2015
TFS Storyboarding: Give your Vision a Visual!
While the concept of storyboarding has been around for quite some time, it’s not entirely clear that the practice outweighs the theory when it comes to usage in the field. In addition, some tools can be costly and may not be able to integrate well with your SDLC. One tool that is free of charge, and integrates nicely into an existing SDLC with a minimal learning curve, is the TFS storyboarding add-in for PowerPoint.
The add-in allows you to leverage PowerPoint to put together a step-by-step flow of your concept that is easy to understand and gives developers and other technical colleagues a reference point when reviewing PBIs. Having that visual helps quite a bit when you are trying to establish work items to go along with those PBIs, and gives all parties involved a better sense of security that requirements are being properly conveyed to the team whose responsibility it is to bring them to life. While not true of every organization, many companies do have Office 2007 or greater, which is half the battle. In order to install and use the TFS storyboarding add-in you must also have a copy of Visual Studio Premium, Ultimate or Test Professional (2012 and 2013 are supported currently).
You do not need to have TFS in order to use this add-in. It relies more on Visual Studio than it does TFS or Visual Studio Online. You can launch storyboarding from both of these platforms, though, which is convenient. You can also link a storyboard directly to a TFS work item. A great overview of how to use the add-in can be found on the Microsoft Developer Network’s site. One of the key features of this add-in is the ability to create, import and export custom storyboarding shapes. These can be anything from your company logo to screen mock-ups that are specific to internal applications you work with to icons and device types. There are some great community-backed shapes posted in the Visual Studio Gallery, including iPad/iPhone shapes, Windows 8 shapes and even a nifty branching and merging shape which could be used to storyboard existing or new branching/merging strategies for your code base. You can also find some re-sizable storyboard shapes in the Microsoft Visual Studio Team Foundation Server 2013 Power Tools extension.
Despite there being a slight learning curve on using the add-in and getting storyboarding started for your team, I guarantee that once you do, figuring out what the customer wants will no longer be a gamble and will more likely be a sure bet.
The add-in allows you to leverage PowerPoint to put together a step-by-step flow of your concept that is easy to understand and gives developers and other technical colleagues a reference point when reviewing PBIs. Having that visual helps quite a bit when you are trying to establish work items to go along with those PBIs, and gives all parties involved a better sense of security that requirements are being properly conveyed to the team whose responsibility it is to bring them to life. While not true of every organization, many companies do have Office 2007 or greater, which is half the battle. In order to install and use the TFS storyboarding add-in you must also have a copy of Visual Studio Premium, Ultimate or Test Professional (2012 and 2013 are supported currently).
You do not need to have TFS in order to use this add-in. It relies more on Visual Studio than it does TFS or Visual Studio Online. You can launch storyboarding from both of these platforms, though, which is convenient. You can also link a storyboard directly to a TFS work item. A great overview of how to use the add-in can be found on the Microsoft Developer Network’s site. One of the key features of this add-in is the ability to create, import and export custom storyboarding shapes. These can be anything from your company logo to screen mock-ups that are specific to internal applications you work with to icons and device types. There are some great community-backed shapes posted in the Visual Studio Gallery, including iPad/iPhone shapes, Windows 8 shapes and even a nifty branching and merging shape which could be used to storyboard existing or new branching/merging strategies for your code base. You can also find some re-sizable storyboard shapes in the Microsoft Visual Studio Team Foundation Server 2013 Power Tools extension.
Despite there being a slight learning curve on using the add-in and getting storyboarding started for your team, I guarantee that once you do, figuring out what the customer wants will no longer be a gamble and will more likely be a sure bet.
Friday, February 13, 2015
A Call to Action: Feedback Needed!
One of the best parts of being involved in the Visual Studio ALM Rangers is giving (and receiving) feedback from the field in relation to solutions that have been released, are in flight, or are mere glimmers waiting to be started. Yet another is being able to reach out to other colleagues to request the same level of feedback!
Please see the links below, which are chock full of great content. Your feedback, ratings and general enthusiasm around these and other Rangers projects help to keep the community going and gives those of us working on these solutions some great ways to make things better for everyone.
Here are the latest Channel 9 videos:
• Extracting Effective Permissions from TFS
• Monthly Catch-up: S77
Here are the latest announcements:
• Extracting effective permissions and Security Auditing for TFS
• Understanding migrations from on-premises TFS to Visual Studio Online
• Git support included with the extracting effective permissions sample and research completed
• Understanding TFS migrations from on-premises to Visual Studio Online – Part 2: Walkthrough
Feedback for any of the aforementioned items can be left directly on the video or blog pages. Questions? Feel free to reach out to me directly. Suggestions for gap-fillers? Please submit them via the Visual Studio page on UserVoice!
Please see the links below, which are chock full of great content. Your feedback, ratings and general enthusiasm around these and other Rangers projects help to keep the community going and gives those of us working on these solutions some great ways to make things better for everyone.
Here are the latest Channel 9 videos:
• Extracting Effective Permissions from TFS
• Monthly Catch-up: S77
Here are the latest announcements:
• Extracting effective permissions and Security Auditing for TFS
• Understanding migrations from on-premises TFS to Visual Studio Online
• Git support included with the extracting effective permissions sample and research completed
• Understanding TFS migrations from on-premises to Visual Studio Online – Part 2: Walkthrough
Feedback for any of the aforementioned items can be left directly on the video or blog pages. Questions? Feel free to reach out to me directly. Suggestions for gap-fillers? Please submit them via the Visual Studio page on UserVoice!
Tuesday, February 3, 2015
Migrating TFS to VSO: A Whitepaper Walkthrough
Recently I was fortunate enough to work with some fellow Visual Studio ALM Rangers on a whitepaper detailing the migration of an on-premises Team Foundation Server (TFS) instance to Visual Studio Online (VSO). It’s a good read and the team did a great job putting the narrative together so that it’s easy to follow along. Check it out here: TFS to VSO Migration Walkthrough
Candid feedback is welcome!
Candid feedback is welcome!
Labels:
ALM,
ALM Rangers,
Azure,
Cloud,
TFS,
Visual Studio,
VSO
Subscribe to:
Posts (Atom)









